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 ianlh  
#1 Posted : 19 November 2021 14:57:26(UTC)
ianlh


Rank: Advanced Member

Groups: Registered
Joined: 18/12/2014(UTC)
Posts: 38

Hi All,

I have a worksheet that I am trying to simplify for the data input, what I would like to do is combine all the relevant input data into one matrix, but avoiding the use of augment or stack functions, so effectively using the single data matrix as shown below, its the extraction of each row or column data to do the various calculations in an easy format, I know I can call each matrix element, but that would create a lot of work. I have attached the worksheet. Thanking in advance
Combining Test V2.sm (22kb) downloaded 10 time(s).
combined.JPG

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

Offline ianlh  
#2 Posted : 19 November 2021 20:49:00(UTC)
ianlh


Rank: Advanced Member

Groups: Registered
Joined: 18/12/2014(UTC)
Posts: 38

Hi Jean,

I might not have explained it well enough, maybe the below is clearer, the matrix "data" is to be used and will be the only part filled in by the user, I know how to use the stack function, and as I said in my first post, I do not want to use this.
combined 2.JPG
Offline uni  
#3 Posted : 19 November 2021 21:08:52(UTC)
uni


Rank: Advanced Member

Groups: Registered, Advanced Member
Joined: 10/11/2010(UTC)
Posts: 1,494
Man
Russian Federation

Was thanked: 1274 time(s) in 745 post(s)
Indexes and function range(2) can be used.

2021-11-19_23-07-17.png
Russia ☭ forever
Viacheslav N. Mezentsev
Offline ianlh  
#4 Posted : 19 November 2021 21:23:06(UTC)
ianlh


Rank: Advanced Member

Groups: Registered
Joined: 18/12/2014(UTC)
Posts: 38

Hi Uni,

That is brilliant, never knew that there was a function range for matrices, is this documented anywhere?
Offline overlord  
#5 Posted : 19 November 2021 21:26:04(UTC)
overlord


Rank: Advanced Member

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

Was thanked: 509 time(s) in 339 post(s)
If this not satisfy all your requests, please inform.
PS: Oops, it seems uni is already answered your question.
Shall delete if you think this post is unnecessary.

Regards

Combining Test V2_r1.sm (22kb) downloaded 8 time(s).

Edited by user 19 November 2021 23:51:14(UTC)  | Reason: Not specified

thanks 1 user thanked overlord for this useful post.
on 19/11/2021(UTC)
Offline uni  
#6 Posted : 19 November 2021 21:32:39(UTC)
uni


Rank: Advanced Member

Groups: Registered, Advanced Member
Joined: 10/11/2010(UTC)
Posts: 1,494
Man
Russian Federation

Was thanked: 1274 time(s) in 745 post(s)
Originally Posted by: ianlh Go to Quoted Post
That is brilliant, never knew that there was a function range for matrices, is this documented anywhere?

Probably about a year ago there was a discussion of this possibility and somewhere there is a document that shows all the use cases. Unfortunately, I cannot remember this topic.

Russia ☭ forever
Viacheslav N. Mezentsev
Offline Razonar  
#7 Posted : 20 November 2021 06:23:25(UTC)
Razonar


Rank: Advanced Member

Groups: Registered
Joined: 28/08/2014(UTC)
Posts: 1,356
Uruguay

Was thanked: 815 time(s) in 516 post(s)
Originally Posted by: uni Go to Quoted Post
Originally Posted by: ianlh Go to Quoted Post
That is brilliant, never knew that there was a function range for matrices, is this documented anywhere?

Probably about a year ago there was a discussion of this possibility and somewhere there is a document that shows all the use cases. Unfortunately, I cannot remember this topic.



Hi. Maybe from here: https://en.smath.com/for...atrix-from-a-matrix.aspx

Best regards.
Alvaro.
thanks 1 user thanked Razonar for this useful post.
on 20/11/2021(UTC)
Offline ianlh  
#8 Posted : 20 November 2021 12:51:03(UTC)
ianlh


Rank: Advanced Member

Groups: Registered
Joined: 18/12/2014(UTC)
Posts: 38

Originally Posted by: Jean Giraud Go to Quoted Post
Originally Posted by: ianlh Go to Quoted Post
I might not have explained it well enough, maybe the below is clearer, the matrix "data" is to be used and will be the only part filled in by the user, I know how to use the stack function, and as I said in my first post, I do not want to use this.

Easy to extract the numeric values from the string matrix.
As the missing row for the suite, extract this one as well.
Your summation code does not work in my Smath version.
As it looks, your summation is the vector sum.
Does not look correct vs my proposal...
Visit below the red separator.
Cheers ... Jean.

Combining Test V2.sm (50kb) downloaded 7 time(s).


Not sure what you mean by the "summation is the vector sum", if you are referring to the "A weighting" then this is just a simple addition, then the log summation is preformed to obtain the total sound level
SPL-Addition03.gif

an example:
A-weight.JPG
Offline ianlh  
#9 Posted : 20 November 2021 14:56:30(UTC)
ianlh


Rank: Advanced Member

Groups: Registered
Joined: 18/12/2014(UTC)
Posts: 38

Originally Posted by: Jean Giraud Go to Quoted Post
... simply go back post 9 ... comment/continue.


There is no need to do a log addition when adding the "A weighting", the log addition comes when you need the the total overall sound level, plus the "mean" value you show has no bearing on acoustics. it is nothing.

Thanks for all your help and insights into matrix manipulation.


Offline Jean Giraud  
#10 Posted : 20 November 2021 19:50:31(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: ianlh Go to Quoted Post
Thanks for all your help and insights into matrix manipulation.

Deleted previous attachments.
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.