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

조회 수: 7 (최근 30일)
noor shahida
noor shahida 2013년 6월 7일
Hi all...
Can anyone help me..what is the function of
Params = zeros(15,3); Params(15,3) = 1;
thanks

채택된 답변

Walter Roberson
Walter Roberson 2013년 6월 7일
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
noor shahida
noor shahida 2013년 6월 7일
thanks...can i ask you another Q?Sir, if i don't want use function 'Params', what else function i can use?
thanks again

댓글을 달려면 로그인하십시오.

추가 답변 (1개)

Jan
Jan 2013년 6월 7일
편집: Jan 2013년 6월 7일
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
Walter Roberson
Walter Roberson 2013년 6월 13일
... 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 2013년 6월 17일
ooo..Thanks..because i got confuse here..now i understand..

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Matrix Indexing에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by