# Homework Help: How to plot complex vectors in Mathcad? (Electrical)

1. May 25, 2012

### EVriderDK

1. The problem statement, all variables and given/known data

I have to plot the following complex numbers into the complex plane:
X_C=0-1350i
X_L=0+980i
R_L=100+0i

2. May 28, 2012

### NemoReally

Plot Re(complex number) in x-axis and Im(complex number) in y-axis
Set the trace type for each value as 'points'

#### Attached Files:

• ###### phys - 12 05 28 plotting complex numbers 01.zip
File size:
4.4 KB
Views:
227
3. May 28, 2012

### EVriderDK

Thank you! How do i make them vectors on the graph? You know, a line with an arrow.

4. May 28, 2012

### EVriderDK

It is like the "line" traces does not work?

I need to tell mathcad that i want a line from 0,0 to X.C

5. May 28, 2012

### NemoReally

Mathcad plots require that you specify all of the points on a line trace; it doesn't default to the origin. Consequently, you have to convert each of your complex numbers to a vector (with 0 as the first element) and then plot those vectors. Alternatively, you could create a function that takes a complex number, take the real or imaginary part and stacks it with zero - then plot the result directly.

See the attached worksheet for an example. It also shows how to use Mathcad's Math Style feature.

#### Attached Files:

• ###### phys - 12 05 28 plotting complex numbers 01.zip
File size:
12.4 KB
Views:
327
6. May 28, 2012

### EVriderDK

Wow, thank you so much Nemo!