Hello,

here is my code

`syms x1 x2aa=x1 == 0 & x2 == 0subs(aa, [0.5 0.5])`

the result is

`ans = [ 1/2 == 0 & x2 == 0, 1/2 == 0 & x2 == 0]`

I wanna get result like this

`1/2==0 & 1/2==0`

What's the problem?

Thanks.

Skip to content# MATLAB: Error using sym/subs with logical operation

###### Related Question

subssymbolic

Hello,

here is my code

`syms x1 x2aa=x1 == 0 & x2 == 0subs(aa, [0.5 0.5])`

the result is

`ans = [ 1/2 == 0 & x2 == 0, 1/2 == 0 & x2 == 0]`

I wanna get result like this

`1/2==0 & 1/2==0`

What's the problem?

Thanks.

- Different results in symbol integration
- Error with Subs Function
- Creating a function getting the graident and passing variables to them
- Simulating impedance using ODE45
- Undefined function or method ‘ge’ for input arguments of type ‘struct’.
- Eigen value eigen vectors in matlab
- HOW I plotted the x1 and x2 and u in optimal control poblem

## Best Answer