2d matrix column plot

4 次查看(过去 30 天)
Jiung Shin
Jiung Shin 2020-12-6
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?

回答(1 个)

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

类别

Help CenterFile Exchange 中查找有关 Line Plots 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by