change the color of curve from blue to any color and make it bold
Ältere Kommentare anzeigen
2 Kommentare
Since your question is pretty straight forward, I would suggest you to go through the MATLAB Documentation:
Ghazi
am 12 Jun. 2024
Akzeptierte Antwort
Weitere Antworten (1)
You can specify the color as a 3 element vector with values between 0 and 1, or use one of the built in colors like 'r':
y = rand(1, 8)+5; % Sample data
darkGreen = [0.1, 0.5, 0.2]; % Define your custom color.
plot(y, 'Color', darkGreen, 'LineWidth', 4); % Plot using numerical vector
hold on;
plot(1:8, 'm-', 'LineWidth', 4); % Plot using built-in color code.
1 Kommentar
Ghazi
am 12 Jun. 2024
Kategorien
Mehr zu Annotations finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!


