Length of a Matrix

Length of a Matrix - Messages

#1 Posted: 2/27/2019 8:41:15 PM
Alvaro Diaz Falconi

Alvaro Diaz Falconi

992 likes in 1674 posts.

Group: User

Hi. Is this the expected behavior?

append.gif

Append.sm (6 KiB) downloaded 42 time(s).

I hope not. I expect A' = [1 2 3 4]

Best regards.
Alvaro.
#2 Posted: 2/27/2019 9:32:07 PM
Jean Giraud

Jean Giraud

983 likes in 6866 posts.

Group: User

Alvaro: maybe like this ?

Append.PNG
#3 Posted: 2/27/2019 9:53:45 PM
Alvaro Diaz Falconi

Alvaro Diaz Falconi

992 likes in 1674 posts.

Group: User

Hi Jean. Nope, maybe more like this:

append.gif

BTW, this is a workaround. I expect this result but for the previous syntax.

Best regards.
Alvaro.
#4 Posted: 2/27/2019 10:20:41 PM
Jean Giraud

Jean Giraud

983 likes in 6866 posts.

Group: User

Wrote

Hi Jean. Nope, maybe more like this:


You just append, my code inserts wherever needed.
My mistake I named Append(,,,)
OK, you are imitating MCD.
Simpler Append: transpose the row, stack, re-transpose.

AppendStack.PNG


#5 Posted: 2/27/2019 10:25:09 PM
Alvaro Diaz Falconi

Alvaro Diaz Falconi

992 likes in 1674 posts.

Group: User

Wrote


...
OK, you are imitating MCD.
...



I'm trying to imitate Wolfram's Mathematica Append.
#6 Posted: 2/28/2019 1:59:51 AM
Jean Giraud

Jean Giraud

983 likes in 6866 posts.

Group: User

Wrote

I'm trying to imitate Wolfram's Mathematica Append.


Not that much miraculous Mathematica 4.0
Mathcad APENDPRN was almost never used.
Useful to compact/file a data set with wisely
collected the fitting coefficients.
On that application, Smath is far superior ... Explain
Smath can save same stuff + the formula ... WOW !

Saludad Alvaro [is that correct ?]

Page24 Alvaro.sm (15 KiB) downloaded 36 time(s).



#7 Posted: 2/28/2019 5:48:34 AM
Davide Carpi

Davide Carpi

1415 likes in 2872 posts.

Group: Moderator

Yes it is correct, or at least it conforms with the general approach of the program (vectors are single column matrices, anything else is a matrix). You might see it better in a 2 rows matrix:

2019-02-28 09_38_57-Window.png
The new indices are added expanding the matrix vertically; there is no special case for single-row matrices.

For your task, one way could be this:

2019-02-28 09_34_31-Window.png

Or this:

2019-02-28 09_46_40-Window.png
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
3 users liked this post
frapuano 2/28/2019 6:06:00 AM, Alvaro Diaz Falconi 2/28/2019 6:07:00 AM, NDTM Amarasekera 2/28/2019 12:13:00 PM
#8 Posted: 2/28/2019 1:22:34 PM
Jean Giraud

Jean Giraud

983 likes in 6866 posts.

Group: User

...
JoBlo.PNG
#9 Posted: 2/28/2019 2:42:13 PM
Jean Giraud

Jean Giraud

983 likes in 6866 posts.

Group: User

... append this Jacobian matrix.

AppendJacob.PNG
#10 Posted: 2/28/2019 3:05:51 PM
Alvaro Diaz Falconi

Alvaro Diaz Falconi

992 likes in 1674 posts.

Group: User

Wrote


Saludad Alvaro [is that correct ?]



Close. Correct it's Saludos Jean.

Wrote

Yes it is correct, or at least it conforms with the general approach of the program (vectors are single column matrices, anything else is a matrix). You might see it better in a 2 rows matrix:



Thanks for the explain. You give to me the rule for understand the result. Just as comment, matlab don't follow that, and gives this results:

File not found. File not found.
Best regards.
Alvaro.
#11 Posted: 3/1/2019 1:03:18 AM
Jean Giraud

Jean Giraud

983 likes in 6866 posts.

Group: User

Wrote

Just as comment, matlab don't follow that, and gives this results:


What Matlab does Smath does as well with lot more user specifics.
Matlab => MDA [Muliti Dimensional Array]
Mathematica => Cell Array
They just have their system. I can do whatever from this example
and very quick too, just few more modules.

MDA_1.bmp


  • New Posts New Posts
  • No New Posts No New Posts