Skip to main content
15-Moonstone
September 2, 2020
Solved

Stack of Element of matrix

  • September 2, 2020
  • 2 replies
  • 6758 views

Dear all
1.When i substitute all variables results of y(i,x) matrix in matrix and hard to plot, How can plot y(i,x) ?

2.After I can not do 1 above I try to manual by stack but Results still  Matrix in matrix,Can we automatic stack the element of matrix y(i,x) (red circle in attachment) ?
3.Or you can revise my technique to better and easy?

thank you

SPRstructur_0-1599041157397.png

SPRstructur_1-1599041169437.png

 

Best answer by Werner_E

Here is a variant that tries to suppress the vertical line segments between the parabolic segments.

Werner_E_0-1599136959452.png

 

 

2 replies

21-Topaz II
September 2, 2020

Hi,

There are predefined functions stack() and augment().

Look them up in help as they are pretty self explanatory.

 

Cheers

Terry

15-Moonstone
September 2, 2020

Can you plot the function y(i,x) ? Without user input one by one 

25-Diamond I
September 2, 2020

1) What you get are not pure vectors  or matrices because you mix ranges (i) and vectors

2)a) Whats the reason for defining vectors with three times the same value

2)b) What kind of plot do you expect with all values being the same?

Werner_E_0-1599056288781.png

3) It looks to me that you are not aware the when you define

Werner_E_1-1599056344217.png

you are already defining a nested vector

Werner_E_2-1599056395953.png

 

15-Moonstone
September 3, 2020

Dear Werner_E
After I remove i (iteration) it still be nest matrix.
My purpose i wanna construct Parabolic Equation continue (n metric)  y=a(x-h)^2+k in single matrix and then we can do matrix operation.
Thank you

SPRstructur_0-1599103084468.png

 

25-Diamond I
September 3, 2020

Not sure, but if the goal is to plot a periodic function, you may use the "mod" function to do the job:

Werner_E_0-1599115442499.png

Prime 6 sheet attached