How can i create these two graphs in matlab , rough idea please
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
plots![](https://www.mathworks.com/matlabcentral/discussions/uploaded_files/26463/image.png)
![](https://www.mathworks.com/matlabcentral/discussions/uploaded_files/26463/image.png)
0 Commenti
Risposte (1)
Austin M. Weber
il 24 Feb 2024
This is only half an answer, but you can reproduce the plot on the left using the following code:
% Define data
x = 0 : 0.01 : 0.48;
y = 0.5 : 0.1 : 5;
% Visualize the data
figure(1)
% Define axes limits
xlim([min(x) max(x)]), xticks(0:0.05:0.45)
ylim([min(y) max(y)]), yticks(0.5:0.5:5)
% Plot red vertical lines and blue horizontal lines
xline(x,'r')
hold on
yline(y,'b')
hold off
% Add labels to the axes
ylabel('\phi_0')
xlabel('{\bf\Phi}_1/{\bf\Phi}_1^{{\itmax}}')
0 Commenti
Vedere anche
Categorie
Scopri di più su 2-D and 3-D Plots in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!