Plotting specified columns using plot function

1 view (last 30 days)
if I have a matrix that is A(33x120), how would you plot column 3 vs. columns 25,27,30,32,35 in one syntax?
thanks

Accepted Answer

Kevin Phung
Kevin Phung on 29 Jan 2019
Edited: Kevin Phung on 29 Jan 2019
plot(A(:,3),A(:,[25 27 30 32 35]))

More Answers (0)

Tags

Community Treasure Hunt

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

Start Hunting!