Skip to main content
1-Visitor
March 10, 2020
Question

Change part of a table

  • March 10, 2020
  • 1 reply
  • 2492 views

I would like to shift the values of the last part of a table. Is that possible?

Table.PNG

1 reply

23-Emerald IV
March 10, 2020

Use the submatrix() function, possibly together with the stack() function.

Or do you mean to change their values instead of their position?

 

Success!

Luc

MWinther1-VisitorAuthor
1-Visitor
March 10, 2020

I would like to change the values of the last third or so, by a tiny bit.

I suppose I could maybe use the submatrix and stack to: disassemble, manipulate and reassemble.

Or is there an easier way?

25-Diamond I
March 10, 2020

if you wan to change the value of a vecor v, lets say at position 123, you can simply write v[123:=<any value you want>.

Or if you want it to increase by 1% you may write v[123:=1.01*v[123.

 

The "[" is the keyboard short for the vector index.