Skip to main content
1-Visitor
March 21, 2023
Solved

Scatterplot not working

  • March 21, 2023
  • 2 replies
  • 2116 views

Trying to plot a spring constant after measuring deformation due to applied weight

 

Why is this scatterplot not working?

 

Both M and S8mm have 10 values

 

Schermafbeelding 2023-03-21 085601.png

 

 

 

Best answer by ttokoro

image.pngimage.pngimage.png

2 replies

17-Peridot
March 21, 2023

Hi,

 

the issue here is that M may appear as if it's a matrix, but it is not. It is a range variable. To correct this issue:

  1. define a one columns matrix of the same length as S8mm called M
  2. fill in the values for M manually
  3. plot them

This should work

1-Visitor
March 21, 2023

OK this works but what if I need to plot 100's of points? is there a way to convert a range to a matrix?

17-Peridot
March 21, 2023

You can always multiply the range variable with a constant; say 1. The result is a matrix then; see attached image.

Raiko_0-1679390040844.png

 

ttokoro
21-Topaz I
ttokoro21-Topaz IAnswer
21-Topaz I
March 21, 2023

image.pngimage.pngimage.png

t.t.