2d matrix column plot

1 visualización (últimos 30 días)
Jiung Shin
Jiung Shin el 6 de Dic. de 2020
Respondida: Setsuna Yuuki. el 6 de Dic. de 2020
Hi, I'm new to matlab so my question may sound almost stupid.
If I want to select two cloumn from a matrix and plot it on xy plane, how can i do it?

Respuestas (1)

Setsuna Yuuki.
Setsuna Yuuki. el 6 de Dic. de 2020
You can make a plot with comand plot():
x(:,1) = 0:pi/100:2*pi;
x(:,2) = sin(x);
plot(x(:,1),x(:,2))

Categorías

Más información sobre Formatting and Annotation en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by