Creating a plot where my x and y values are defines by equations of another variable
38 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Hopefully a simple enough problem to solve, and possibly just something obvious which slipped my mind. I have a pair of equations and want to plot their outputs such that equation 1 gives my x values and equation 2 gives my y values. Both have the same number of points, as both take in the same variable to generate their values, so there shouldn't be any discrepency there.
Thank you!
0 comentarios
Respuestas (1)
the cyclist
el 2 de Dic. de 2021
Editada: the cyclist
el 2 de Dic. de 2021
Here is a simple example.
z = 1:10;
x = 2.*z;
y = 3.*z;
figure
plot(x,y)
xlabel('x')
ylabel('y')
Ver también
Categorías
Más información sobre 2-D and 3-D Plots en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!