Skip to main content
Best answer by ttokoro

Requires long time to make plot.

 

image.pngimage.png

3 replies

ttokoro
21-Topaz I
ttokoro21-Topaz IAnswer
21-Topaz I
July 12, 2023

Requires long time to make plot.

 

image.pngimage.png

t.t.
fahmed-214-AlexandriteAuthor
14-Alexandrite
July 13, 2023

Thank you @ttokoro . What is purpose of using third brackets " [  ]". Is this for assigning the matrix values in each corresponding cells inside the "Ans"

ttokoro
21-Topaz I
21-Topaz I
July 13, 2023

Your sheet shows error mesage for x and y data must have no unit. So I make Ans as [x y z-value with unit]. 

And stack all S and Df  and  its Ans.

I try to use [NaN NaN NaN] to stack. In this plot, z axis also has no unit.

 

 

image.pngimage.png

t.t.
25-Diamond I
July 13, 2023

In fact, the error message reveals the cause and also gives the hint to the solution of the problem:
The variables for the independent variables (x, y) must (unfortunately) be unitless. Only the dependent variable (z), i.e. the function result, may have a unit.

So omit the unit meter at the range variables and add them when calling the function.

Werner_E_0-1689212173357.png

 

The plot takes "endless" to finish because the function seems to be defined quite inefficient.

You sure should consider to implement the improvement I suggested in another thread of yours which at least speeds up the calculation for the factor 5.

Personally I would prefer using CreateMesh() instead of range variables

 

fahmed-214-AlexandriteAuthor
14-Alexandrite
July 13, 2023

Thank you @Werner_E . Is it possible to make the plot as individual dots 

25-Diamond I
July 13, 2023

@fahmed-2 wrote:

Thank you @Werner_E . Is it possible to make the plot as individual dots 


Sure! Simply format the plot that way

Werner_E_0-1689214590189.png

Werner_E_1-1689214627130.png

I used the data  structure created with CreateMeashj() but you can do the same with the plot using the range variables.

 

ttokoro
21-Topaz I
21-Topaz I
July 14, 2023

image.pngimage.pngimage.png

t.t.
fahmed-214-AlexandriteAuthor
14-Alexandrite
July 15, 2023

Thank you @ttokoro.  Looks amazing!!