vector input to wrldmagm

조회 수: 7 (최근 30일)
Oday Shahadh
Oday Shahadh 2020년 12월 22일
답변: Oday Shahadh 2020년 12월 22일
Hi All,
HI I am trying to model the earth magnetic field of a stellite orbit, for that I have all input values for the (heigh, Long, Lat ) as a vector with (9249 1) size,
but when trying to run I have this error
Operands to the || and && operators must be convertible to logical scalar values.
Error in wrldmagm (line 144)
if ((nargin < 5) && ( dt < 0.0 && dt >= -5.0 ))
pls help

채택된 답변

Asad (Mehrzad) Khoddam
Asad (Mehrzad) Khoddam 2020년 12월 22일
The function only accepts scalar values not vectors. You may use a loop to extract the magnetic field for every element of your data.

추가 답변 (1개)

Oday Shahadh
Oday Shahadh 2020년 12월 22일
Thanks ASAD in this case I have to extract the values out of the loop and this is another issue for me

카테고리

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

태그

Community Treasure Hunt

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

Start Hunting!

Translated by