how to vectorized this loop?

for k=1:0.5:10;
for a=1:0.5:10;
nump(i,:) =k*a;
denp(i,:) =[1 a 0];
i=i+1;
end
end

3 Commenti

KL
KL il 10 Ott 2017
We have answered almost the same one yesterday. Are you both from the same class?
Jan
Jan il 10 Ott 2017
This is very similar to your former question (link posted by Per Isakson). You can apply the same methods here also. If you have problems with this, please post what you have tried so far.

Risposte (0)

Questa domanda è chiusa.

Prodotti

Richiesto:

il 10 Ott 2017

Chiuso:

il 20 Ago 2021

Community Treasure Hunt

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

Start Hunting!

Translated by