Matrices question

Matrices question - Messages

#1 Posted: 3/28/2021 10:02:08 AM
sando99

sando99

0 likes in 12 posts.

Group: User

I'm having a little difficulty using matrices. How can I tell SMath to take the first row value from matrix "Pin" (0,2) and calculate formula "C0,2" with each value from matrix "Tin". I then want the result displayed as a new matrix 1x6, if possible (see pictures below). Thanks!





Here is what I want to achieve:

#2 Posted: 3/28/2021 12:25:53 PM
sando99

sando99

0 likes in 12 posts.

Group: User

After some tinkering this is what I came up with:


#3 Posted: 3/28/2021 4:11:23 PM
Jean Giraud

Jean Giraud

983 likes in 6866 posts.

Group: User

Wrote

After some tinkering this is what I came up with:


Quite correct, you can plot the family vs the Pin.

Inst_Isentropic Discharge.sm (173 KiB) downloaded 29 time(s).
#4 Posted: 3/29/2021 3:41:11 AM
NDTM Amarasekera

NDTM Amarasekera

130 likes in 352 posts.

Group: User

Extended to Nested Array.
Cheers.....

Matrices_Question.png
Look within!... The secret is inside you. Best Regards Eng. NDTM Amarasekera - Sri Lanka
#5 Posted: 3/29/2021 5:33:49 AM
sando99

sando99

0 likes in 12 posts.

Group: User

Thanks to both of you, definetely some nice suggestions there!

Edit: I cannot give you "Thanks" - the forum gives me an error.
#6 Posted: 3/29/2021 10:02:14 AM
Jean Giraud

Jean Giraud

983 likes in 6866 posts.

Group: User

Wrote

Thanks to both of you, definitively some nice suggestions there!


... more for your project.
You have to work the units that were ignored in this demo.
Cheers ... Jean

Page5 Pin_Kin.sm (428 KiB) downloaded 30 time(s).
#7 Posted: 4/2/2021 11:15:39 AM
sando99

sando99

0 likes in 12 posts.

Group: User

I cannot, for the life of me, figure out what this means:




Can someone lend me a hand with this? Thanks!


Edit: I seem to have figured it out.


#8 Posted: 4/2/2021 2:00:59 PM
overlord

overlord

552 likes in 1332 posts.

Group: Moderator

Wrote

Edit: I seem to have figured it out.


A humble suggestion,
Putting vectorize into function prevents further writing errors.
And a subjective perspective, it also looks better.

Regards

2021-04-02_19-58.png
#9 Posted: 4/2/2021 6:06:13 PM
Jean Giraud

Jean Giraud

983 likes in 6866 posts.

Group: User

Wrote

Can someone lend me a hand with this? Thanks!


As you give it, there is no immediate suite [interpolation ...]
As given not sorted, the suite is the "Colibri" path.
Once sorted, you can linterp, only.
You can also fillet at will polyline CAD style.
From there, fit and you have something much easier to understand.
You can even have a surface plot.
Cheers ... Jean

Sort.PNG



#10 Posted: 4/4/2021 4:22:02 PM
sando99

sando99

0 likes in 12 posts.

Group: User

New head-scratcher with my project. The circled value should be equal to 34,8 not 34,7. I am open to suggestions where my mistake might be. See screenshot:


#11 Posted: 4/4/2021 5:55:15 PM
Jean Giraud

Jean Giraud

983 likes in 6866 posts.

Group: User

Unknown.PNG
#12 Posted: 4/5/2021 1:12:38 PM
Jean Giraud

Jean Giraud

983 likes in 6866 posts.

Group: User

Otherwise generalized ...

Algo.PNG
  • New Posts New Posts
  • No New Posts No New Posts