cancel
Showing results for
Did you mean:
cancel
Showing results for
Did you mean:

14-Alexandrite

## Create 2plot &3D

Dear all

I have no idea to write program for plot 2D&3D in mathcad prime  just know

+ For 2D plot

X=3@5,Z=11@4 for all grid

+For 3D plot

X=3@5,Z=11@4 Y=3@5 for all grid

picture attachments

thank you

1 ACCEPTED SOLUTION

Accepted Solutions
24-Ruby IV
(To:SPRstructur)

Found some spare time to modify ttokoros function to work with distance vectors as you need

It still works using scalars for even spaced grids and if the vector is too small, its last value is repeated as often as necessary.

An alternative approach would be to just provide the three vectors as the number of grid planes can be detected by calculating the vector length.

13 REPLIES 13
23-Emerald I
(To:SPRstructur)

17-Peridot
(To:SPRstructur)

14-Alexandrite
(To:ttokoro)

can I send me mathcad prime?

17-Peridot
(To:SPRstructur)

Yes, you can.

14-Alexandrite
(To:ttokoro)

haha  sorry
fast typing. Can you send mathcad ?

24-Ruby IV
(To:SPRstructur)

@SPRstructur wrote:

Not sure what you mean? You asked for a solution done in Prime and ttokoro finally already has attached his sheet.

If you are now looking for a solution done in real Mathcad (=MC15 or below), you must be aware that ttokoro's solution won't work in Mathcad for two reasons:

1) Mathcad's 3D component won't accept the simple data structure created by ttokoros fucntion (this could easily be repaired)

2) Mathcad's 3D plot unfortunately does not accept NaN's. Thats severe and would require some major changes or a complete rewrite

Here's a possible solution done in MC15:

14-Alexandrite
(To:Werner_E)

14-Alexandrite
(To:Werner_E)

Hello, @Werner_E , if i try to give different (x1# x2 # x3)  (y1 # y2 #y3) and (z1 # z2 #....z11)  but error as pic below. if can, you please do in Mathcad prime. Big Thank.

24-Ruby IV
(To:SPRstructur)

Both my and also ttokoros solution work just for an equally spaced grid along each axis as in your first request.

It sure should be possible to change the functions to do what you obviously want, but it would require putting some additional work into it.

As you seem to look just for a Prime solution, I'll leave up to ttokoro to modify his function.

14-Alexandrite
(To:ttokoro)

, if i try to give different (x1# x2 # x3)  (y1 # y2 #y3) and (z1 # z2 #....z11)  but error as pic below.

24-Ruby IV
(To:SPRstructur)

Found some spare time to modify ttokoros function to work with distance vectors as you need

It still works using scalars for even spaced grids and if the vector is too small, its last value is repeated as often as necessary.

An alternative approach would be to just provide the three vectors as the number of grid planes can be detected by calculating the vector length.

17-Peridot
(To:Werner_E)

longitudinal wave

17-Peridot
(To:ttokoro)

Announcements
Check out the latest