What is the meaning of [0.0;-1.5] in the following lines?

조회 수: 5 (최근 30일)
mathru
mathru 2020년 8월 27일
편집: Michael Croucher 2020년 8월 27일
Tcenter = interpolateTemperature(result,[0.0;-1.5],1:numel(tlist));
Touter = interpolateTemperature(result,[0.2;-1.5],1:numel(tlist));
What does it mean by [0.0;-1.5]?
  댓글 수: 1
Stephen23
Stephen23 2020년 8월 27일
"What does it mean by [0.0;-1.5]?"
Very basic MATLAB concepts, such as how to create vectors and matrices, are explained in the introductory tutorials:

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

채택된 답변

Michael Croucher
Michael Croucher 2020년 8월 27일
편집: Michael Croucher 2020년 8월 27일
[0.0;-1.5] is a column vector with the two values 0.0 and -1.5. Mathematically, it looks like this:
  댓글 수: 2
mathru
mathru 2020년 8월 27일
Thanks Michael.
Then what does result,[0.0;-1.5] means?
Rik
Rik 2020년 8월 27일
Commas separte inputs in Matlab. So both the variable result and the vector [0;1.5] are inputs to the interpolateTemperature function.

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Boundary Conditions에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by