plot of a cell array
显示 更早的评论
HELLO there.
I want to get the plot of a cell but it appears to be empty plot could someone help me?
7 个评论
DGM
2021-4-24
It might help if you posted the code you were trying to use. I'm not very good at guessing, and your screen is too far away for me to read.
Nara Lee
2021-4-25
Walter Roberson
2021-4-25
You do not show us any attempt to plot.
Have you confirmed that you are not getting infinity or nan from your inv() ?
Why are you calculating T1*inv(T2) and assigning it to a variable, and then immediately calculating it again on the next line to take the eig of it?
Is there a good reason you are using T1*inv(T2) instead of using T1/T2 ?
Nara Lee
2021-4-25
Walter Roberson
2021-4-25
You have
T{n}=T1*inv(T2);
That is T1 on the left, and inv(T2) on the right.
On the next line you have
ei{n}=eig(T1*inv(T2));
Inside the eig() you have T1*inv(T2) which is T1 on the left and T2 on the right, exactly the same as on the line above. Why did you not code
ei{n} = eig(T{n});
??
And why did you use
T1*inv(T2)
instead of
T1/T2
?? Why are you using the less-accurate method of making that calculation? Do you have a special reason for deliberately reducing the accuracy of the calculation compared to T1/T2 ?
... And you still have not said anything about how you are doing the plotting, and whether you have confirmed that your results are finite.
Walter Roberson
2021-4-25
im is a cell array that contains columns vectors of eigenvalues. What should the plot look like?
回答(1 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Annotations 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
