+/- signs when coding ?

1 次查看(过去 30 天)
Jenny Andersen
Jenny Andersen 2019-11-16
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 个评论
Rik
Rik 2019-11-16
Is this in the context of symbolic variables? Otherwise Matlab numeric arrays must have a definite value.
dpb
dpb 2019-11-16
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.

请先登录,再进行评论。

采纳的回答

Image Analyst
Image Analyst 2019-11-16

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Trigonometry 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by