color leaves out data
2 ビュー (過去 30 日間)
古いコメントを表示
The command
pcolor(1:4, 1:4, randn(4,4))
produces a tiled plot with 9 colors even though
randn(4,4)
is a collection of 16 numbers. What happened to the other 5?
0 件のコメント
採用された回答
Image Analyst
2015 年 6 月 4 日
Yes. pcolor() leaves off the last row and column. Don't use it - I never do. Use imshow() instead. Or, if you have an old version of MATLAB, or don't have the Image Processing Toolbox, use image() or imagesc().
0 件のコメント
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Red についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!