- #1
zhaniko93
- 13
- 0
I have such MATLAB problem: I create variables R1 RF R2 and w so:
then I write expression:
which gives:
why sqrt(-1) and not i? furthermore? if I want real part of the expression and write:
it gives:
can anyone please help me??
Code:
syms RF R1 R2 w
Code:
3*R1*w*(RF + 200)/((R2*w*29*i + 3)*(3*R1*w - 2*i))
Code:
(3*R1*w*(RF + 200))/((3*R1*w - 2*sqrt(-1))*(R2*w*29*sqrt(-1) + 3))
Code:
real(ans)
Code:
3*real((R1*w*(RF + 200))/((3*R1*w - 2*sqrt(-1))*(R2*w*29*sqrt(-1) + 3)))