Welcome Guest! To enable all features please Login. New Registrations are disabled.

Notification

Icon
Error

Login


Options
Go to last post Go to first unread
Offline rafalSM  
#1 Posted : 05 October 2016 17:06:07(UTC)
rafalSM

Rank: Newbie

Groups: Registered
Joined: 05/10/2016(UTC)
Posts: 4
Poland
Location: Wroclaw

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?Wallbash

matrices.png

Edited by user 05 October 2016 17:13:56(UTC)  | Reason: drawing added

Wanna join the discussion?! Login to your SMath Studio Forum forum account. New Registrations are disabled.

Offline Davide Carpi  
#2 Posted : 05 October 2016 17:29:16(UTC)
Davide Carpi


Rank: Advanced Member

Groups: Registered, Advanced Member
Joined: 13/01/2012(UTC)
Posts: 2,648
Man
Italy
Location: Italy

Was thanked: 1329 time(s) in 875 post(s)
Hello rafalSM Offline ,

You can use a loop: example
If you like my plugins consider to support SMath Studio buying a plan; to offer me a coffee: paypal.me/dcprojects
Offline rafalSM  
#3 Posted : 05 October 2016 17:35:50(UTC)
rafalSM

Rank: Newbie

Groups: Registered
Joined: 05/10/2016(UTC)
Posts: 4
Poland
Location: Wroclaw

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?
Offline Davide Carpi  
#4 Posted : 05 October 2016 17:44:29(UTC)
Davide Carpi


Rank: Advanced Member

Groups: Registered, Advanced Member
Joined: 13/01/2012(UTC)
Posts: 2,648
Man
Italy
Location: Italy

Was thanked: 1329 time(s) in 875 post(s)
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 consider to support SMath Studio buying a plan; to offer me a coffee: paypal.me/dcprojects
thanks 1 user thanked Davide Carpi for this useful post.
on 06/10/2016(UTC)
Offline rafalSM  
#5 Posted : 05 October 2016 18:00:02(UTC)
rafalSM

Rank: Newbie

Groups: Registered
Joined: 05/10/2016(UTC)
Posts: 4
Poland
Location: Wroclaw

I attached a pdf file (polish language Good ) 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 (321kb) downloaded 62 time(s).
Offline Jean Giraud  
#6 Posted : 05 October 2016 19:00:12(UTC)
Jean Giraud

Rank: Guest

Groups: Registered
Joined: 04/07/2015(UTC)
Posts: 6,866
Canada

Was thanked: 981 time(s) in 809 post(s)
Forum Matrix Insert.gif
Offline Jean Giraud  
#7 Posted : 05 October 2016 19:02:36(UTC)
Jean Giraud

Rank: Guest

Groups: Registered
Joined: 04/07/2015(UTC)
Posts: 6,866
Canada

Was thanked: 981 time(s) in 809 post(s)
... next: try NOT to isolate "M"
Offline mikekaganski  
#8 Posted : 06 October 2016 01:10:07(UTC)
mikekaganski


Rank: Advanced Member

Groups: Registered
Joined: 17/01/2013(UTC)
Posts: 296
Man
Russian Federation
Location: Khabarovsk, Russia

Was thanked: 151 time(s) in 107 post(s)
Originally Posted by: rafalSM Go to Quoted Post
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).
Best regards,
Mike Kaganski
Offline Jean Giraud  
#9 Posted : 06 October 2016 05:32:45(UTC)
Jean Giraud

Rank: Guest

Groups: Registered
Joined: 04/07/2015(UTC)
Posts: 6,866
Canada

Was thanked: 981 time(s) in 809 post(s)
Originally Posted by: mikekaganski Go to Quoted Post
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

Offline Jean Giraud  
#10 Posted : 06 October 2016 05:43:53(UTC)
Jean Giraud

Rank: Guest

Groups: Registered
Joined: 04/07/2015(UTC)
Posts: 6,866
Canada

Was thanked: 981 time(s) in 809 post(s)
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 (316kb) downloaded 53 time(s).
Offline rafalSM  
#11 Posted : 06 October 2016 12:54:51(UTC)
rafalSM

Rank: Newbie

Groups: Registered
Joined: 05/10/2016(UTC)
Posts: 4
Poland
Location: Wroclaw

Originally Posted by: Davide Carpi Go to Quoted Post
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?
Offline Jean Giraud  
#12 Posted : 06 October 2016 15:35:23(UTC)
Jean Giraud

Rank: Guest

Groups: Registered
Joined: 04/07/2015(UTC)
Posts: 6,866
Canada

Was thanked: 981 time(s) in 809 post(s)
Originally Posted by: rafalSM Go to Quoted Post
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

Users browsing this topic
Guest
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.