Adding matrices

Adding matrices - How to put a matrix 5x5 to a matrix 15x15 - Сообщения

#1 Опубликовано: 05.10.2016 11:06:07
Rafal

Rafal

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

Группа: User

Helo Everyone!

I have one question: imagine the matrix of size 15x15 filled with zeros. I want to put smaller matrix 5x5 to the bigger one but from column 2 to 6 and to rows 4 to 8. How can I do this?

matrices.png
#2 Опубликовано: 05.10.2016 11:29:16
Davide Carpi

Davide Carpi

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

Группа: Moderator

Hello [USERLINK]rafalSM[/USERLINK],

You can use a loop: example
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
#3 Опубликовано: 05.10.2016 11:35:50
Rafal

Rafal

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

Группа: User

Oh, thank You a lot. It seems that this activity is much more complicated than in case of MathCad. But where can I take function "merge" from?
#4 Опубликовано: 05.10.2016 11:44:29
Davide Carpi

Davide Carpi

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

Группа: Moderator

It is the first function in the worksheet linked above (you can download it and copy the function in your own worksheet)

How it works in Mathcad?
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
1 пользователям понравился этот пост
Rafal 06.10.2016 06:54:00
#5 Опубликовано: 05.10.2016 12:00:02
Rafal

Rafal

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

Группа: User

I attached a pdf file (polish language ) which presents calculations of critical factor "alfa cr" for steel frame (see: Eurocode 1993-1-1). The most interesting formulas can be found on page 10 of this document.

projekt16.pdf (320 КиБ) скачан 80 раз(а).
#6 Опубликовано: 05.10.2016 13:00:12
Jean Giraud

Jean Giraud

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

Группа: User

Forum Matrix Insert.gif
#7 Опубликовано: 05.10.2016 13:02:36
Jean Giraud

Jean Giraud

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

Группа: User

... next: try NOT to isolate "M"
#8 Опубликовано: 05.10.2016 19:10:07
Mike Kaganski

Mike Kaganski

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

Группа: User

Wrote

but from column 2 to 6 and to rows 4 to 8



Please note that SMath's count of rows/columns starts from 1, not 0 (as your question implied).
С уважением, Михаил Каганский
#9 Опубликовано: 05.10.2016 23:32:45
Jean Giraud

Jean Giraud

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

Группа: User

Wrote

Please note that SMath's count of rows/columns starts from 1, not 0 (as your question implied).



Quite right:

Davide "merge" is Smath style based on index ORIGIN = 1
Jean "replace" is Mathcad style based on default ORIGIN = 0

#10 Опубликовано: 05.10.2016 23:43:53
Jean Giraud

Jean Giraud

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

Группа: User

Converting your *.PDF [Mathcad] to Smath looks quite an entreprise.
In the mean time, the "Matrix Treasury" may content useful modules.

Jean

Utilities Matrix Treasury Copy.sm (315 КиБ) скачан 71 раз(а).
#11 Опубликовано: 06.10.2016 06:54:51
Rafal

Rafal

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

Группа: User

Wrote

It is the first function in the worksheet linked above (you can download it and copy the function in your own worksheet)

How it works in Mathcad?



But you was able to create such a type of function. How did you do it?
#12 Опубликовано: 06.10.2016 09:35:23
Jean Giraud

Jean Giraud

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

Группа: User

Wrote

But you were able to create such a type of function. How did you do it?



Something I don't understand: OK you are new to Smath and presumably you
may not be familiar about it. The Mathcad PDF, did you do it yourself ?
If so: you are already in Smath. Am immense amount of Mathcad stuff is
convertible in Smath by many similarities in the programme code and
algorthmic construction. I glanced through the PDF and noticed "eigvec
& eigval". If you need, there is an Smath document doing.

Cheers, Jean

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