I want to plot the eigenvalue trajectory when one of the system parameters is changed. I obtained a Matrix where each column represents the eigenvalues for a different value of K_q (check figure please). How can I proceed?

 Akzeptierte Antwort

Image Analyst
Image Analyst am 23 Aug. 2018

1 Stimme

You can use plot(). Just plot each marker one at a time with the proper color
markerColor = [....3 numbers ]; % Whatever color you want...
plot(x, y, '.', 'MarkerSize', 20, 'Color', markerColor);
hold on;

2 Kommentare

Khaled Almunem
Khaled Almunem am 23 Aug. 2018
It works! Thanks for the help! Really appreciate it. Do you know how to generate the bar next to the plot?
I got the bar also by using
if true
% code
end
colormap jet(500); c= colorbar;

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Mathematics finden Sie in Hilfe-Center und File Exchange

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by