What it is means 'Params = zeros(15,3); Params(15,3) = 1;'
7 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Hi all...
Can anyone help me..what is the function of
Params = zeros(15,3); Params(15,3) = 1;
thanks
0 Kommentare
Akzeptierte Antwort
Walter Roberson
am 7 Jun. 2013
create a 15 row and 3 column numeric array that is all zero, and assign the array to the variable named Params (which does not happen to be a special variable to MATLAB)
Then, assign 1 to the single array location which is at the 15th row at the 3rd column.
Weitere Antworten (1)
Jan
am 7 Jun. 2013
Bearbeitet: Jan
am 7 Jun. 2013
You can find this outby yourself: Simply omit the trailing semicolons to let Matlab show the results, when you type this inot the command line:
Params = zeros(15,3)
Params(15,3) = 1
4 Kommentare
Walter Roberson
am 13 Jun. 2013
... and which consists of letters chosen from A to Z or a to z or the 10 digits or the underscore.
Siehe auch
Kategorien
Mehr zu Matrix Indexing 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!