Skip to main content
8-Gravel
February 16, 2023
Solved

How to define xy axis in 3D plot drawing by matrix

  • February 16, 2023
  • 3 replies
  • 2591 views

Hi all

Please, see the attchd.file.

There is a graph where I would like to represent parameters x and y related to z.

I have no idea how to define the x and y axis.

Does anybody have an idea how to do that? Thx

 

 

 

Best answer by terryhendicott

Hi,

Yes it is necessary to establish a nested vector of the x, y, and z coordinates like this

Capture.JPG

3 replies

21-Topaz II
February 16, 2023

Hi,

Yes it is necessary to establish a nested vector of the x, y, and z coordinates like this

Capture.JPG

21-Topaz II
February 16, 2023

Hi,

A contour plot is the best way to visualize the resulting nested M matrix

Capture.JPG

Cheers

Terry

24-Ruby IV
February 16, 2023

I use paint

See Egg of Columbus - Wikipedia

ValeryOchkov_0-1676523535069.png

 

Aary8-GravelAuthor
8-Gravel
February 16, 2023

HI ValeryOchkov

could you share the .mcdx file ,thx

25-Diamond I
February 16, 2023

How about creating an interpolation function? See attached sheet.

As your data matrix is square its not clear if x would relate to the columns or to the rows.

In the attached sheet I assume that x would relate to the rows, and y to the columns.

If it should be the other way round (as Terry assumed), you simply have to exchange X and Y when calling linterp_2D().