+/- signs when coding ?
4 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Jenny Andersen
am 16 Nov. 2019
Beantwortet: Image Analyst
am 16 Nov. 2019
How to type in v1 = +/- w2/((w3^2)+(w2^2)) and v2 = +/- w3/((w3^2)+(w2^2))?
The problem is that the vectors can be both positive and negative
2 Kommentare
Rik
am 16 Nov. 2019
Is this in the context of symbolic variables? Otherwise Matlab numeric arrays must have a definite value.
dpb
am 16 Nov. 2019
If it is the data itself that is positive or negative, then that is reflected in the values themselves.
If the sign of the terms in the equations themselves are to be different, then you have to code those explicitly and evalute the one of choice. Or, alternatively, code in another coefficient in the location of the sign and set that as data to plus/minus one.
Akzeptierte Antwort
Image Analyst
am 16 Nov. 2019
The answer is in your duplicate question: https://www.mathworks.com/matlabcentral/answers/491439-error-when-trying-to-modify-a-code-vectors#answer_401831
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Trigonometry 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!