Is it possible to change a comparison of an existing variable in Matlab?

Asked

Viewed 74 times

0

You can change/change the equality (comparison) of an existing variable in Matlab?.

The variable eq of my program has as value the first highlight below. This variable is compared to 0. I want to know if you can change that comparison: instead of being 0, would like to compare with 1 (after, of course, passing -1 from the first to the second member of the comparison).

How is it:

eq = A1/6 + (35*A2)/36 + (325*A3)/216 + (2375*A4)/1296 + (15625*A5)/7776 - 1 == 0

How I wanted it to stay:

eq = A1/6 + (35*A2)/36 + (325*A3)/216 + (2375*A4)/1296 + (15625*A5)/7776 == 1

Someone knows how to do it?

  • You created this variable eq?

  • yes, it was me. You know how to solve my problem???

  • What exactly is your problem? If we have eq=a-1==0 and eq=a==1, the two produce the same output of eq as a logical variable, not a numerical variable. You must be using this for something, put a little context that can help solve the problem."

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.