Skip to main content
1-Visitor
November 26, 2016
Question

x-y plot rectangular coordinates

  • November 26, 2016
  • 5 replies
  • 5544 views

Hi

Newbie to Mathcad Prime, How do I plot a straight line from the origin using complex numbers.

Eg 10+5i complex number.

Straight line between (0,0) and (10,5) using x-y plot.

Any assistance much appreciated.

5 replies

25-Diamond I
November 27, 2016

Write the column vector consisting of the x-coordinates of the two points in the placeholder for the abscissa and the column vector consisting of the y-coordinates in the placeholder for the ordinate.

Here is what it looks like in Mathcad15, but it should work similarly in Prime, too.

23-Emerald IV
November 27, 2016

And it does, in Prime:

Success!
Luc

23-Emerald IV
November 28, 2016

Or in another incarnation:

25-Diamond I
November 29, 2016

OK, so here is yet another one 😉

24-Ruby IV
November 29, 2016

Thanks, Werner, for the picture.

See please Arrow on plots

arrow.png

24-Ruby IV
November 29, 2016

How do I plot a straight line?

Any assistance much appreciated.

A general way to plot lines (curves) and points

2a-parabola.png

1-Visitor
November 29, 2016

Thanks for the feedback. Is it possible to fix the axis to a certain length?

23-Emerald IV
December 1, 2016

Yes, that happens automatically.

Below is an empty plot (nothing filled in yet). You can set the size of the plot container by pulling the small square at the lower right side of it, pointed to by the red arrow in the drawing below. That sets the length of both the x- and y-axes:

When you actually put expressions to plot, this is what you get:

The plot container grows, but the length of x- and y-axes remain the same.

But notice that the scales are different now. If you want those to be fixed, that's anothe matter.

Prime does not seem to have a way set those (like Mathcad 15 or before do have). What you can do is add another trace with the (minimum) axis limits you want, and make the trace invisible by setting its colour. below I've changed the scales back to + and -10 for both axes The trace colour is set to white, and the line type is dashed to minimally interfere with the blue trace:

Success!
Luc