What it is means 'Params = zeros(15,3); Params(15,3) = 1;'

7 visualizaciones (últimos 30 días)
Hi all...
Can anyone help me..what is the function of
Params = zeros(15,3); Params(15,3) = 1;
thanks

Respuesta aceptada

Walter Roberson
Walter Roberson el 7 de Jun. de 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.
  1 comentario
noor shahida
noor shahida el 7 de Jun. de 2013
thanks...can i ask you another Q?Sir, if i don't want use function 'Params', what else function i can use?
thanks again

Iniciar sesión para comentar.

Más respuestas (1)

Jan
Jan el 7 de Jun. de 2013
Editada: Jan el 7 de Jun. de 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 comentarios
Walter Roberson
Walter Roberson el 13 de Jun. de 2013
... and which consists of letters chosen from A to Z or a to z or the 10 digits or the underscore.
noor shahida
noor shahida el 17 de Jun. de 2013
ooo..Thanks..because i got confuse here..now i understand..

Iniciar sesión para comentar.

Categorías

Más información sobre Matrix Indexing en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by