Rank: Advanced Member Groups: Registered
Joined: 28/08/2014(UTC) Posts: 1,357 Was thanked: 815 time(s) in 516 post(s)
|
Hi. Is this the expected behavior? Append.sm (7kb) downloaded 16 time(s).I hope not. I expect A' = [1 2 3 4] Best regards. Alvaro.
|
|
|
|
Rank: Guest
Groups: Registered
Joined: 04/07/2015(UTC) Posts: 6,866 Was thanked: 981 time(s) in 809 post(s)
|
Alvaro: maybe like this ?
|
|
|
|
Rank: Advanced Member Groups: Registered
Joined: 28/08/2014(UTC) Posts: 1,357 Was thanked: 815 time(s) in 516 post(s)
|
Hi Jean. Nope, maybe more like this: BTW, this is a workaround. I expect this result but for the previous syntax. Best regards. Alvaro.
|
|
|
|
Rank: Guest
Groups: Registered
Joined: 04/07/2015(UTC) Posts: 6,866 Was thanked: 981 time(s) in 809 post(s)
|
Originally Posted by: Razonar 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.
|
|
|
|
Rank: Advanced Member Groups: Registered
Joined: 28/08/2014(UTC) Posts: 1,357 Was thanked: 815 time(s) in 516 post(s)
|
Originally Posted by: Jean Giraud ... OK, you are imitating MCD. ...
I'm trying to imitate Wolfram's Mathematica Append.
|
|
|
|
Rank: Guest
Groups: Registered
Joined: 04/07/2015(UTC) Posts: 6,866 Was thanked: 981 time(s) in 809 post(s)
|
Originally Posted by: Razonar 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 (16kb) downloaded 15 time(s).
|
|
|
|
Rank: Advanced Member Groups: Registered, Advanced Member Joined: 13/01/2012(UTC) Posts: 2,650 Location: Italy Was thanked: 1338 time(s) in 878 post(s)
|
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: 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: Or this: Edited by user 28 February 2019 12:43:45(UTC)
| Reason: Not specified |
If you like my plugins consider to support SMath Studio buying a plan; to offer me a coffee: paypal.me/dcprojects |
3 users thanked Davide Carpi for this useful post.
|
on 28/02/2019(UTC), on 28/02/2019(UTC), on 28/02/2019(UTC)
|
|
Rank: Guest
Groups: Registered
Joined: 04/07/2015(UTC) Posts: 6,866 Was thanked: 981 time(s) in 809 post(s)
|
...
|
|
|
|
Rank: Guest
Groups: Registered
Joined: 04/07/2015(UTC) Posts: 6,866 Was thanked: 981 time(s) in 809 post(s)
|
... append this Jacobian matrix.
|
|
|
|
Rank: Advanced Member Groups: Registered
Joined: 28/08/2014(UTC) Posts: 1,357 Was thanked: 815 time(s) in 516 post(s)
|
Originally Posted by: Jean Giraud Saludad Alvaro [is that correct ?]
Close. Correct it's Saludos Jean. Originally Posted by: Davide Carpi 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: Best regards. Alvaro. Edited by moderator 01 March 2019 21:09:41(UTC)
| Reason: marked as Solved
|
|
|
|
Rank: Guest
Groups: Registered
Joined: 04/07/2015(UTC) Posts: 6,866 Was thanked: 981 time(s) in 809 post(s)
|
Originally Posted by: Razonar 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 (1,076kb) downloaded 15 time(s).
|
|
|
|
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.