how to include both the positive and negative sign for a given expression
Show older comments
I am working on inverse kinematic problem for a planar 3r robot where i needed to include the following expression.

i am not able to figure out how to incorporate +,- sign to the expression.
any help in this regard is appreciated
5 Comments
Rohan Kale
on 14 Feb 2020
Hi Prajwal, I do not clearly understand the expected outcome of the problem statement. In my understanding this problem could be either printing the expression in laTex or Tex, or actually involve computing aspect of MATLAB to compute theta2. It will be helpful for the community to address your problem if the problem statement is clearly mentioned.
prajwal prabhu
on 14 Feb 2020
Adam
on 14 Feb 2020
Jut compute it without the sign then add the negation of the result too, e.g.
theta2 = ...
theta2 = [1 -1] .* theta2
or
theta2 = [theta2 -theta2];
Walter Roberson
on 14 Feb 2020
To be clear: MATLAB does not have a ± operator so you have to do the equivalent yourself.
prajwal prabhu
on 3 Apr 2020
Answers (0)
Categories
Find more on Aerospace Blockset in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!