plot of a cell array
Show older comments
HELLO there.
I want to get the plot of a cell but it appears to be empty plot could someone help me?
7 Comments
DGM
on 24 Apr 2021
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
on 25 Apr 2021
Walter Roberson
on 25 Apr 2021
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
on 25 Apr 2021
Walter Roberson
on 25 Apr 2021
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
on 25 Apr 2021
im is a cell array that contains columns vectors of eigenvalues. What should the plot look like?
Answers (1)
Categories
Find more on Annotations in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!