Using Subplot in matlab
6 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Ahmed Saleh
am 19 Okt. 2019
Beantwortet: Image Analyst
am 19 Okt. 2019
I couldn't figure how to solve that ! can anyone help me understand it ?
0 Kommentare
Akzeptierte Antwort
Image Analyst
am 19 Okt. 2019
Try this:
x = linspace(1, 10, 500);
y = sin(x) ./ x;
subplot(2, 2, 1);
plot(x, y, 'b-', 'LineWidth', 2);
grid on;
subplot(2, 2, 2);
y = .....
plot(....
etc.
subplot(2, 2, 3);
% code to compute the third y
subplot(2, 2, 4);
% code....
Since x is a vector make sure you use ./, .*, and .^ rather than the non-dotted versions /, *, and ^.
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Subplots finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!