# Do the rows of a matrix have any symbols of continuity between rows of a matrix?

jospercomp shared this question 2 years ago

The rows of a matrix have some symbol as "..." or "+" of continuity between rows of a matrix when creating the rows manually for each row for each line.

Mrow={{1,2,3},

{4,5,6},

{7,8,9}}

This gives row error in Geogebra Scripting.

1

Sorry, I don't understand what you mean. Mrow={{1,2,3},{4,5,6},{7,8,9}} defines a 3x3 matrix. Where or how did you use '...' or "+" in scripting and what do you mean by 'creating the rows manually'?

1

In the windows scripting must be writing all list in the same row. But if my list is very big and take several lines. There are any form of separate the list several lines?

1

m=[[1,2,3], ...

[4,5,6], ....

[7,8,9]]

2

You can define separate lists l1, l2 and l3 and define m={l1,l2,l3} if this can help you

Nevertheless I'm still wondering about the 'problem'. First a definition m={{1,2,3}, ...} is not a typical scripting syntax but a 'normal' definition. Second what's the problem about a limited scripting window and in which version? If you're talking about the scripting tab of a button, you can just keep on typing. The definition just appears on different lines but that doesn't cause any problem for the definition itself in situations like following in which I just kept on typing, not bothering about separating lines:

1

1

Lcolor = {{85,85,0},{85,170,0},{85,255,0},{170,85,0},{170,170,0},

{170,255,0},{255,85,0},{255,170,0},{255,255,0},{0,85,128},

{0,170,128},{0,255,128},{85,0,128},{85,85,128},{85,170,128},

{85,255,128},{170,0,128},{170,85,128},{170,170,128},{170,255,128},

{255,0,128},{255,85,128},{255,170,128},{255,255,128},{0,85,255},

{0,170,255},{0,255,255},{85,0,255},{85,85,255},{85,170,255},

{85,255,255},{170,0,255},{170,85,255},{170,170,255},{170,255,255},

{255,0,255},{255,85,255},{255,170,255},{43,0,0},{85,0,0},{128,0,0},

{170,0,0},{212,0,0},{255,0,0},{0,43,0},{0,85,0},{0,128,0},{0,170,0},

{0,212,0},{0,255,0},{0,0,43},{0,0,85},{0,0,128},{0,0,170},{0,0,212},

{0,0,255},{0,0,0},{36,36,36},{73,73,73},{109,109,109},{146,146,146},

{182,182,182},{219,219,219},{255,255,255}}

1

toggle the window script for longer lines of code in one line

2

- why do you explicitly want to define it this way in a script of a button instead of a normal input command, which is no problem? (see added file)

- In a file instead of a serie of screenshots one can see where your input comes from. Are they in a spreadsheet and how and isn't there any more convenient way to make a matrix out of it? I learned that although I though abaout a specific way it happens that alternatives can be better than sticking by my first idea.

2

The command has to be on a single line. This works fine:

`Lcolor = {{85,85,0},{85,170,0},{85,255,0},{170,85,0},{170,170,0},{170,255,0},{255,85,0},{255,170,0},{255,255,0},{0,85,128},{0,170,128},{0,255,128},{85,0,128},{85,85,128},{85,170,128},{85,255,128},{170,0,128},{170,85,128},{170,170,128},{170,255,128},{255,0,128},{255,85,128},{255,170,128},{255,255,128},{0,85,255},{0,170,255},{0,255,255},{85,0,255},{85,85,255},{85,170,255},{85,255,255},{170,0,255},{170,85,255},{170,170,255},{170,255,255},{255,0,255},{255,85,255},{255,170,255},{43,0,0},{85,0,0},{128,0,0},{170,0,0},{212,0,0},{255,0,0},{0,43,0},{0,85,0},{0,128,0},{0,170,0},{0,212,0},{0,255,0},{0,0,43},{0,0,85},{0,0,128},{0,0,170},{0,0,212},{0,0,255},{0,0,0},{36,36,36},{73,73,73},{109,109,109},{146,146,146},{182,182,182},{219,219,219},{255,255,255}}`

2

as Mike said put in a button it works the same way as a normal input. So what you didn't show in your screenshots is that one way or another you did use line ends in your input instead of just keep on typing as I wrote before

1

Thank you so much!!

2

A possibility in the attachment (using TextTool and Execute())

(obviously the line breaks in the text within Execute are not taken into account, I suspect that this (reasonable) behavior is not necessarily guaranteed in future releases)