Quantcast
Channel: PTC Community: Message List
Viewing all articles
Browse latest Browse all 11712

Re: How to plot a 3D vector as an array: attempts and problems

$
0
0

I tried in MC 15, and it works for more than one vector. I re-tried several times the same with v.11.2 and the following error is shown (see figure).

I get the very same error in Mathcad 15. The reason is that unless you change that a 3D plot defaults to a surface plot. If you set the plot type to "Data Points" / "Scatter Plot" for BOTH plots, it works OK. There is an age old bug in the 3D plot component so simply chosing scatter/data points does not help. You have to change the plot type to vector field first and then to scatter.

I am not sure about MC 11 but it works that way in MC15.

 

Instead of typing the various column selectors in the plot placeholder you may as well plot a data type like the following:

1.png

 

You may also plot one of the following matrices which creates just one single plot and not multiple ones, but it looks better than is is. Mathcad will connect ALL four points which just isn't seen in this example because oth vectors include the origin. So the cennection of the last point of the first with the first point of the second vector happens to be the second vector itself and this second vector is draw twice that way. Change the zero coordinates of the second vector and you will see.

In a 2D plot we would thrown in NaN's to stop Mathcad from connecting points, but unfortunately the 3D plot component in Mathcad 15 and below does not support NaNs and will throw an error.

2.png

I add the MC15 file saved in MC11 format - maybe its of help.

3.png


Viewing all articles
Browse latest Browse all 11712

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>