could someone explain these strings?

조회 수: 1 (최근 30일)
Antonino Alesci
Antonino Alesci 2017년 4월 29일
댓글: Antonino Alesci 2017년 4월 29일
time=linspace (0 ,35 , 7000)
pla=zeros (1, length (time))

채택된 답변

Image Analyst
Image Analyst 2017년 4월 29일
편집: Image Analyst 2017년 4월 29일
Did you try running the code and looking in the command window? They're making "time" a row vector - a list of 7000 elements uniformly spaced between 0 and 35. And making a row vector called "pla" of 7000 zeros, because 7000 is the length (number of elements) of the vector called time).
And they're not "strings" (characters) - they're numerical arrays of class "double".
  댓글 수: 1
Antonino Alesci
Antonino Alesci 2017년 4월 29일
ok, thank you very much, very accurate.

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Elementary Math에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by