Error in a matrix operation
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Tamia Eli
am 21 Jul. 2020
Kommentiert: Star Strider
am 21 Jul. 2020
Can you explain me what is the problem?, I want to operate with my column matrix c, I tried to conver it to row matrix.
c =
Columns 1 through 5
-0.0465421133865154 -0.0349065850398866 -0.0174532925199433 6.93889390390723e-18 0.0174532925199433
Columns 6 through 7
0.0349065850398866 0.0465421133865154
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/334680/image.jpeg)
0 Kommentare
Akzeptierte Antwort
Star Strider
am 21 Jul. 2020
Assuming that everything except ‘c’ is a scalar, it is still necessary to use element-wise operations to calculate ‘d’.
Try this:
d = N.*cos(prr).*log(tan(pi/4+c/2).*((1-e*sin(c))./(1+e*sin(c))).^(e/2));
.
2 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Get Started with MATLAB 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!