how to write mathematical equation in matlab script (given in description)?
3 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
programming in matlab
4 Kommentare
Torsten
am 10 Mär. 2022
Bearbeitet: Torsten
am 10 Mär. 2022
In your workspace, h is listed as a function handle. You can call this function handle as h(i,j) and it will return a double evaluated at theta=i and z=j, but you cannot set this value to another double value, namely ((1+E*cos(theta(i)))...
What you could do in the loop is to write
H(i,j) = h(theta(i),z(i));
instead of
h(i,j) = ((1+E*cos(theta(i)))...
and continue working with the array H consisting of doubles.
Antworten (0)
Siehe auch
Kategorien
Mehr zu Loops and Conditional Statements 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!
