Filter löschen
Filter löschen

what is the meaning of following code? temp=[];te​mp1=1:230;​temp=[temp​;temp1];

7 Ansichten (letzte 30 Tage)
Anu  Sri
Anu Sri am 30 Nov. 2018
Beantwortet: KSSV am 30 Nov. 2018
i am not getting what will be the value of temp n the codes mentioned above.can anyone lease help me?

Antworten (1)

KSSV
KSSV am 30 Nov. 2018
It seems thabove code is in a for loop. Every time a variable temp is calculated and it is expanded/ joined along with temp1.
temp = [];
temp1 = 1:230 ;
for i = 1:10
temp = [temp temp1] ;
end
The above coding is not a good practise. Show us the whole code to get help.

Kategorien

Mehr zu Schedule Model Components finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by