Length of a Matrix

Length of a Matrix - Сообщения

#1 Опубликовано: 27.02.2019 20:41:15
Alvaro Diaz Falconi

Alvaro Diaz Falconi

992 сообщений из 1674 понравились пользователям.

Группа: User

Hi. Is this the expected behavior?

append.gif

Append.sm (6 КиБ) скачан 41 раз(а).

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

Best regards.
Alvaro.
#2 Опубликовано: 27.02.2019 21:32:07
Jean Giraud

Jean Giraud

983 сообщений из 6866 понравились пользователям.

Группа: User

Alvaro: maybe like this ?

Append.PNG
#3 Опубликовано: 27.02.2019 21:53:45
Alvaro Diaz Falconi

Alvaro Diaz Falconi

992 сообщений из 1674 понравились пользователям.

Группа: 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 Опубликовано: 27.02.2019 22:20:41
Jean Giraud

Jean Giraud

983 сообщений из 6866 понравились пользователям.

Группа: 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 Опубликовано: 27.02.2019 22:25:09
Alvaro Diaz Falconi

Alvaro Diaz Falconi

992 сообщений из 1674 понравились пользователям.

Группа: User

Wrote


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



I'm trying to imitate Wolfram's Mathematica Append.
#6 Опубликовано: 28.02.2019 01:59:51
Jean Giraud

Jean Giraud

983 сообщений из 6866 понравились пользователям.

Группа: 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 КиБ) скачан 35 раз(а).



#7 Опубликовано: 28.02.2019 05:48:34
Davide Carpi

Davide Carpi

1415 сообщений из 2872 понравились пользователям.

Группа: 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 пользователям понравился этот пост
frapuano 28.02.2019 06:06:00, Alvaro Diaz Falconi 28.02.2019 06:07:00, NDTM Amarasekera 28.02.2019 12:13:00
#8 Опубликовано: 28.02.2019 13:22:34
Jean Giraud

Jean Giraud

983 сообщений из 6866 понравились пользователям.

Группа: User

...
JoBlo.PNG
#9 Опубликовано: 28.02.2019 14:42:13
Jean Giraud

Jean Giraud

983 сообщений из 6866 понравились пользователям.

Группа: User

... append this Jacobian matrix.

AppendJacob.PNG
#10 Опубликовано: 28.02.2019 15:05:51
Alvaro Diaz Falconi

Alvaro Diaz Falconi

992 сообщений из 1674 понравились пользователям.

Группа: 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:

Файл не найден. Файл не найден.
Best regards.
Alvaro.
#11 Опубликовано: 01.03.2019 01:03:18
Jean Giraud

Jean Giraud

983 сообщений из 6866 понравились пользователям.

Группа: 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


  • Новые сообщения Новые сообщения
  • Нет новых сообщений Нет новых сообщений