Community Tip - Have a PTC product question you need answered fast? Chances are someone has asked it before. Learn about the community search. X
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
Solved! Go to Solution.
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.
Please attach the file
can I send me mathcad prime?
Yes, you can.
haha sorry
fast typing. Can you send mathcad ?
@SPRstructur wrote:
Can you send mathcad ?
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:
wow great! in mathcad 15
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.
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.
@ttokoro , if i try to give different (x1# x2 # x3) (y1 # y2 #y3) and (z1 # z2 #....z11) but error as pic below.
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.
longitudinal wave