Using XY Data from this example? Help please

5 Ansichten (letzte 30 Tage)
Jonathan Charron
Jonathan Charron am 11 Mai 2021
What I mean is I am running the following example:
I'll keep it simple: can someone explain how I extract the XY Data?
I am trying to write a function that will receive an XY position to test, and return the relevant values at that position in the solution plot, such as for Von Mises stress at that XY position. However the model doesn't seem to have a readily available vector or matrix of corresponding XY values, and 'XYdata' looks like a special call to model, so not necessarily stored in the format useful to what I am doing.
"At [4.6783, 10.4534], what is the stress in the X-direction?" etc.

Akzeptierte Antwort

Ravi Kumar
Ravi Kumar am 11 Mai 2021
You can use interpolateStress to find values of stress at a given query coordinates (xq,yq,zq),.
  1 Kommentar
Jonathan Charron
Jonathan Charron am 21 Mai 2021
Ah! Yes, I think this is the type of function I was fearful I was going to have to engineer myself. Thank you so much.

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (1)

Walter Roberson
Walter Roberson am 11 Mai 2021
After the call to
will give you the initial geometric coordinates as an 8 x 2 array.
After the call to
will be a 2 x 16048 array of coordinates, and
will be a 6 x 7856 array of integers, minimum value 1 and maximum value 16048 -- so we can tell that those are indices into the model.Mesh.Nodes array.
  3 Kommentare
Jonathan Charron
Jonathan Charron am 21 Mai 2021
To be fair, I'm probably confused about what I really want :D

Melden Sie sich an, um zu kommentieren.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by