I enter the matrix with i to denote the imaginary part.
But it seems that Matlab has ttaken it as a symbol.
Ohter symbols were defined.
And I read in a book that i is predefined for the imaginary parts.
Why can't it work in matrix?
And when I caculate a linear matrix, some of the variation answers even have "conj" part??
How could it be that?
Thanks!!!
Hi
Be careful yorande.If you use the '*' sign between i and other variables,it will consider it as a variable if you have asigned it some value before.
So check whther you have not defined it as a variable before and also use it as echo14 has showed.I hope your problem cab be solved.
Be careful while using variable names i and j in matlab, because by at start they r initialized as sqrt(-1) so to declare imaginary variable just write - 1+2*i.
u van declare matrix of imag nos in similar manner to that of real nos and perform simple mathematical operations such as add,substract,division .
Also u can use inbuilt funs such as conj for imaginary nos and to convert into polar form u can get angle and magnitude directly.
I'm trying to caculate a matrix with something like:
[1/r1 c1*f*i 0 0 1;
0 0 g2*i 1 1]
You see, there are many symbols except numbers.
and the r1 c1 and g2 are not variables.
The problem is now the matlab just take i as a sybol as c1 too.
I have defined the r1 c1 and g2, but not i.
I thought it should take it as the imaginary part. but it did not.
And things like c1*fi or (c1*f)i did not work either.
by the way, conj means i too??
could i use conj to define the imaginary part?
most common operations on a real matrix have a slightly different form for the complex matrix. like At[i,j] = conj(A[j,i]) for a complex matrix. and MATLAB will calculate this form.