Matrix Manipulation

Matrix Manipulation - Messaggi

#1 Pubblicato: 19/11/2021 08:57:26
ianlh

ianlh

0 apprezzamenti in 38 post.

Gruppo: User

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 (21,12 KiB) scaricato 1295 volta(e).
combined.JPG
#2 Pubblicato: 19/11/2021 14:49:00
ianlh

ianlh

0 apprezzamenti in 38 post.

Gruppo: User

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
#3 Pubblicato: 19/11/2021 15:08:52
Вячеслав Мезенцев

Вячеслав Мезенцев

1.558 apprezzamenti in 1.868 post.

Gruppo: Moderator

Indexes and function range(2) can be used.

2021-11-19_23-07-17.png
Russia ☭ forever, Viacheslav N. Mezentsev
#4 Pubblicato: 19/11/2021 15:23:06
ianlh

ianlh

0 apprezzamenti in 38 post.

Gruppo: User

Hi Uni,

That is brilliant, never knew that there was a function range for matrices, is this documented anywhere?
#5 Pubblicato: 19/11/2021 15:26:04
overlord

overlord

600 apprezzamenti in 1.381 post.

Gruppo: Moderator

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 (21,18 KiB) scaricato 1282 volta(e).
1 utenti hanno apprezzato questo post
#6 Pubblicato: 19/11/2021 15:32:39
Вячеслав Мезенцев

Вячеслав Мезенцев

1.558 apprezzamenti in 1.868 post.

Gruppo: Moderator

Wrote

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
#7 Pubblicato: 20/11/2021 00:23:25
Alvaro

Alvaro

1.139 apprezzamenti in 1.805 post.

Gruppo: User

Wrote

Wrote

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/forum/yaf_postst7741_Extracting-matrix-from-a-matrix.aspx

Best regards.
Alvaro.
1 utenti hanno apprezzato questo post
#8 Pubblicato: 20/11/2021 06:51:03
ianlh

ianlh

0 apprezzamenti in 38 post.

Gruppo: User

Wrote

Wrote

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 (49,22 KiB) scaricato 1307 volta(e).



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
#9 Pubblicato: 20/11/2021 08:56:30
ianlh

ianlh

0 apprezzamenti in 38 post.

Gruppo: User

Wrote

... 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.


#10 Pubblicato: 20/11/2021 13:50:31
Jean Giraud

Jean Giraud

983 apprezzamenti in 6.866 post.

Gruppo: User

Wrote

Thanks for all your help and insights into matrix manipulation.


Deleted previous attachments.
  • Nuovi post
  • Nessun nuovo post