Extra term in "min" function in while loop
Ältere Kommentare anzeigen
I was given a piece of code to work on and edit but I'm running into a few errors because I am unsure what this extra piece of term means in the code, the code looks like this:
while DC1(1,j) ~= min(DC1(:,450:Xep)),DC1(1,j);
Xbp = j;
j=j+1;
end
I can understand the fact that DC1 is searching for the position of the minimum value term in itself by comparing it using the "min" function. What I do not understand is why there is that extra
",DC1(1,j)" bit. Do you know what it is? Thanks.
Akzeptierte Antwort
Weitere Antworten (2)
lvn
am 27 Mai 2014
1 Stimme
I guess it is a remainder of some old code. It can be removed, it does nothing!
George Papazafeiropoulos
am 27 Mai 2014
The extra
,DC1(1,j)
bit is the next command. You can erase the initial comma and press enter to get it in the next line.
Kategorien
Mehr zu Whos finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!