vector input to wrldmagm
4 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Oday Shahadh
am 22 Dez. 2020
Beantwortet: Oday Shahadh
am 22 Dez. 2020
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
0 Kommentare
Akzeptierte Antwort
Asad (Mehrzad) Khoddam
am 22 Dez. 2020
The function only accepts scalar values not vectors. You may use a loop to extract the magnetic field for every element of your data.
0 Kommentare
Weitere Antworten (1)
Siehe auch
Kategorien
Mehr zu Environment finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!