- #1

- 24

- 0

I have been trying to solve a complex number equation for character impedance with matlab but it continues to tell me that "indexing must appear last on index addressing". I am new to matlab so I think that my code is wrong.

What I am using is

complex sqrt (R+jwL)(G+jwC)

The values for R,w,L,G,C I add in when putting it into matlab.

is complex the right word to be using here?

The equation that I am trying to solve is

[tex]y=sqrt(R+jwL)(G+jwC)[/tex]