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 1986max  
#1 Posted : 11 January 2022 17:21:07(UTC)
1986max

Rank: Newbie

Groups: Registered
Joined: 01/09/2021(UTC)
Posts: 9
Russian Federation
Location: Москва

Tell me please.

Question - 1

There are several arrays. a=[1;2...4], b=[7;8..10], c=[12;13...15]

How do I combine them so that it turns out as follows - d=[1,2,3,4,7,8,9,10,12,13,14,15]

Question - 2

There is an array a=[1;2...10], I need to exclude several values from it so that it turns out as follows a=[1,2,5,6,7,9,10]

q-1-2.sm (4kb) downloaded 6 time(s).

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

Offline PompelmoTell  
#2 Posted : 11 January 2022 19:12:55(UTC)
PompelmoTell


Rank: Advanced Member

Groups: Registered
Joined: 23/12/2011(UTC)
Posts: 318
Man
Italy
Location: italy

Was thanked: 109 time(s) in 93 post(s)
One way (stack use)

q-1-2_ser.sm (7kb) downloaded 28 time(s).
sergio
thanks 1 user thanked PompelmoTell for this useful post.
on 11/01/2022(UTC)
Offline Jean Giraud  
#3 Posted : 11 January 2022 19:51:29(UTC)
Jean Giraud

Rank: Guest

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

Was thanked: 980 time(s) in 808 post(s)
Originally Posted by: 1986max Go to Quoted Post
Question - 2

Make it algo style, add/remove cols.
This way you will have in-situ as desired.
Welcome to Smath Community ... Jean.

AlgoSelect.PNG
Offline 1986max  
#4 Posted : 12 January 2022 09:58:49(UTC)
1986max

Rank: Newbie

Groups: Registered
Joined: 01/09/2021(UTC)
Posts: 9
Russian Federation
Location: Москва

thank a lot, all options are excellent!)
Offline Jean Giraud  
#5 Posted : 12 January 2022 16:26:33(UTC)
Jean Giraud

Rank: Guest

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

Was thanked: 980 time(s) in 808 post(s)
Originally Posted by: 1986max Go to Quoted Post
Thank a lot, all options are excellent !

Appreciated ... more in there ... Jean.

Utilities Matrix Extractors.sm (57kb) downloaded 10 time(s).
thanks 1 user thanked Jean Giraud for this useful post.
on 12/01/2022(UTC)
Offline overlord  
#6 Posted : 14 January 2022 21:06:20(UTC)
overlord


Rank: Advanced Member

Groups: Registered
Joined: 23/07/2013(UTC)
Posts: 1,125
Turkey

Was thanked: 506 time(s) in 337 post(s)
In addition to sergio's answer, you can use an custom exclude function.
It will remove substances of a L# list from master M# list.

Regards

exclude.sm (6kb) downloaded 7 time(s).

2022-01-14_21-02.png
Users browsing this topic
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.