Skip to main content
9-Granite
September 6, 2023
Solved

Plot not working

  • September 6, 2023
  • 2 replies
  • 994 views

I guess something is not working with units for my plot can someone have a look and tell me what's wrong  

Best answer by Werner_E

Additional to what Luc already said:

.) Don't use vector/matrix indices unless you really want to create vectors. Use literal indices instead.

Werner_E_0-1694040707430.png

 

.) if you wan to create a plot with units at the x-axis, you have to define a range for the x-values:

 

Werner_E_1-1694040739909.png

 

 

Prime 9 sheet attached

 

2 replies

23-Emerald IV
September 6, 2023

Check your formulae.

y(x) adds y1 to k1x^2/2*G*Tx. y1 has units [m] and k1x^2/2*G*Tx has units [1/m].

You cannot add apples and pears.

 

Success!
Luc

Werner_E25-Diamond IAnswer
25-Diamond I
September 6, 2023

Additional to what Luc already said:

.) Don't use vector/matrix indices unless you really want to create vectors. Use literal indices instead.

Werner_E_0-1694040707430.png

 

.) if you wan to create a plot with units at the x-axis, you have to define a range for the x-values:

 

Werner_E_1-1694040739909.png

 

 

Prime 9 sheet attached