Properties
Similar Topics
Statistics
Comments
8
Participants
6
Subscribers
30
Votes
2
Views
980
Share
How change element of matrix in script?
Answered
M={{0,0,0,0},{0,0,0,0},{0,0,0,0},{0,0,0,0}}.
How change M(2,3) on value 1, to become M={{0,0,0,0},{0,0,1,0},{0,0,0,0},{0,0,0,0}}?
M(2,3)=1 not work.
SetValue work for list, not for matrix.
 GeoGebra
 Help
 Partners

Contact us
 Feedback & Questions
 This email address is being protected from spambots. You need JavaScript enabled to view it.
 +43 677 6137 2693
© 2021 International GeoGebra Institute
What do you need that for exactly?
Maybe use the spreadsheet for the numbers and define the matrix from that
Hi, try :
and/or :
A workaround with scriptlist (Execute()) in the attachment.
======================================
@GGBTeam (as idea)
I think that an extension of the script command
SetValue(<list>,<ndx1>, <ndx2>..<ndxn>, <value>)
would be the best solution.
Hi rami,
I need help with changing values from a list of numbers {61, 23, 23, 21, 5, 32, 23, 34}, eg to detect number 23, and replace with 64 so that the new list becomes {61, 64, 64, 21, 5, 32, 64, 34}.
Is there any Geogebra command to do this directly?
If not any solutions to help?
Regards,
lewws
Comments have been locked on this page!