Plot Matrices
1 回表示 (過去 30 日間)
古いコメントを表示
*I want to plot the k no. of matrices, but I am getting error as; ??? Error using ==> plot Data may not have more than 2 dimensions.
Plz, sort out it.*
1 件のコメント
Image Analyst
2012 年 2 月 3 日
No, I'm not going to sort it out for you. There is nothing to sort out - at least not HERE. You haven't given us a single thing to sort. Are you going to post your code? How else could anyone sort anything out? I don't even know what "the k no." is!
回答 (1 件)
Walter Roberson
2012 年 2 月 3 日
You are working with a 3D array in your recent questions. plot() can only handle 2D arrays. Loop over one of your dimensions, plot()'ing the 2D slice, with "hold on" if you want them all in the same plot.
One of your earlier questions involves fft(). fft() usually produces complex values. You will need to use real() or imag() or abs() to transform the complex values to real values that can be plotted.
You should give more thought as to whether line plots are appropriate for your data. You should be considering surface plots, perhaps using mesh() or surf().
4 件のコメント
参考
カテゴリ
Help Center および File Exchange で Matrices and Arrays についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!