![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/172838/image.png)
Bar from logical matrix [0*1]
1 回表示 (過去 30 日間)
古いコメントを表示
Hi Guys, Can anyone help me to obtain this Fig. below from logical matrix thx
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/146735/image.png)
0 件のコメント
採用された回答
Image Analyst
2015 年 1 月 9 日
Try this:
fontSize = 20;
Matrix = [1, 1, 1, 0, 0, 1, 1, 0, 0, 1]
bar(Matrix, 'FaceColor', 'r');
ylim([0, 6]);
ylabel('Magn.', 'FontSize', fontSize, 'FontName', 'Times new roman', 'FontWeight', 'Bold');
xlabel('Time', 'fontSize', fontSize, 'FontName', 'Times new roman', 'FontWeight', 'Bold');
title('Matrix = [1, 1, 1, 0, 0, 1, 1, 0, 0, 1]', 'FontSize', fontSize, 'FontName', 'Times new roman', 'FontWeight', 'Bold');
If you really want to erase the 5 and the 6 from the y axis tick marks, let me know.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/172838/image.png)
その他の回答 (1 件)
Edward Groce
2020 年 5 月 28 日
Bar and logics have been investigated for the division the goals for humans. Matrix and writing services australia is elevated for the challenges for the individuals. process is filed for the top of the new mode for all good moves for the true ways for the field work.
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Graphics Object Properties についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!