Filter löschen
Filter löschen

Fill vector with function

3 Ansichten (letzte 30 Tage)
Adam Tomasek
Adam Tomasek am 1 Okt. 2019
Beantwortet: Dinesh Yadav am 4 Okt. 2019

I have this assignment. Can you please help me how to solve that? Create vector xx1 0,1 of lenght 100, % create vector yy1 and fill it with y = x*x use 3x3 subplot and plot graph xx1 vs. yy1 on top center position.

  1 Kommentar
darova
darova am 1 Okt. 2019
Show us what you have already done

Melden Sie sich an, um zu kommentieren.

Antworten (1)

Dinesh Yadav
Dinesh Yadav am 4 Okt. 2019
Kindly try to solve and show what you have attempted before posting a question. The following code might help
a=randn(1,100);
y= a.^2;
figure;
for n = 1:9
subplot(3,3,n)
end
subplot(3,3,8);
plot(a,y);
Try to modify this code to get what you want.

Kategorien

Mehr zu Graphics Performance finden Sie in Help 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