Plotting Data of a Matrix with multiple values on the X-Axis.

Hello everyone.I have a matrix with 731 row & 31 column as you can see in attachment, and i wanna plot all the data in every column with one specific value on the x-axis.
in other word,all the data in first column with the value -30 on the x-axis, all the data in second column with the value -28 on the x-axis, all the data in third column with the value -26 on the x-axis, and so on till the last column, which is the column 31 with the value 30 on the x-axis.
thanks a lot.

 Accepted Answer

load AmplitudeRe75
plot(-30:0,Amplitude)

4 Comments

Thanks a lot.it works.But in other form,if i have a matrix with 31 row and 731 column, and i wanna plot all the data in every row with one specific value on the x-axis like the last one(between -30 & 30), how should i write it?!!
I mean,all the data in first row with the value -30 on the x-axis, all the data in second row with the value -28 on the x-axis, all the data in third row with the value -26 on the x-axis, and so on till the last row, which is the row 31 with the value 30 on the x-axis.
just transpose:
plot(-30:0,Amplitude')
Thanks Buddy.
Anytime :) , if my answer helped make sure to accept the answer

Sign in to comment.

More Answers (0)

Categories

Community Treasure Hunt

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

Start Hunting!