Info

この質問は閉じられています。 編集または回答するには再度開いてください。

how to create a 3d plot for this matrix

1 回表示 (過去 30 日間)
Iyad Al-Najjar
Iyad Al-Najjar 2020 年 10 月 27 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
Thanks in advanced
I have a matrix with zeros and ones elemants where one means the system is stable and zero means the system is unstalbe.
I used contour to get a 2d figure to see the stable and unstable regions and everything worked fine.
After that, I created a new 3by3 matrix with the same concept of zeros and ones.
I am trying to make a 3d figure of that matrix but I do not know if it is possible or not and what is the best.
it is like if there is 1 in that point(elemant) then put a colour or something and if there is zero do nothing.
I hope that the question is clear enough.

回答 (1 件)

KSSV
KSSV 2020 年 10 月 27 日
編集済み: KSSV 2020 年 10 月 27 日
Read about spy.
A = randi(10,10) ;
A(A>1) = 0 ;
spy(A)

製品

Community Treasure Hunt

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

Start Hunting!

Translated by