cancel
Showing results for
Did you mean:
cancel
Showing results for
Did you mean:

Community Tip - If community subscription notifications are filling up your inbox you can set up a daily digest and get all your notifications in a single email. X

15-Moonstone

## Matrix In Mathca Prime

Dear everyone,

Please solve this in Attachment Picture

Step1
How to Auto-create Matrix with nxn ?

Step2

Put  Matrix provide in Step 1 by Column and Rows User Instruct.

Many thank

1 ACCEPTED SOLUTION

Accepted Solutions
23-Emerald III
(To:SPRstructur)

Here's a function that does what you want in one go. It creates the empty matrix (rows and columns as provided by the first parameter Size), and puts each of the elements of the provided matrix (second parameter  Data) on the respective column and row node positions (as specified by the third and fourth parameters Cnodes and Rnodes respectively).

You'll have to type the function in Prime yourself, since I'm limited to Prime express.

But I can view your Prime sheets, so if you need more help, just come back here.

Success!

Luc

13 REPLIES 13
24-Ruby III
(To:SPRstructur)

One way

20-Turquoise
(To:SPRstructur)

Hi,

autoCreating an nxn matrix.

Just set the last element to zero.

Watch the value of ORIGIN which will change the outcome.

File enclosed to demonstrate this.

20-Turquoise
(To:SPRstructur)

Hi,

Here is how to do the insertion you asked for.

File enclosed

15-Moonstone
(To:terryhendicott)

@terryhendicott wrote:

Hi,

Here is how to do the insertion you asked for.

File enclosed

I have seen your comment. It also work well

Are you Civil Engineer?

20-Turquoise
(To:SPRstructur)

Hi

I am retired civil/structural and project engineer

15-Moonstone
(To:terryhendicott)

@terryhendicott wrote:

Hi

I am retired civil/structural and project engineer

So Nice to know you,

Many thank for your sharing.

23-Emerald III
(To:SPRstructur)

Here's a function that does what you want in one go. It creates the empty matrix (rows and columns as provided by the first parameter Size), and puts each of the elements of the provided matrix (second parameter  Data) on the respective column and row node positions (as specified by the third and fourth parameters Cnodes and Rnodes respectively).

You'll have to type the function in Prime yourself, since I'm limited to Prime express.

But I can view your Prime sheets, so if you need more help, just come back here.

Success!

Luc

15-Moonstone
(To:LucMeekes)
Ok 👍
It seems work, I will try in Prime
15-Moonstone
(To:LucMeekes)

@LucMeekes wrote:

Here's a function that does what you want in one go. It creates the empty matrix (rows and columns as provided by the first parameter Size), and puts each of the elements of the provided matrix (second parameter  Data) on the respective column and row node positions (as specified by the third and fourth parameters Cnodes and Rnodes respectively).

You'll have to type the function in Prime yourself, since I'm limited to Prime express.

But I can view your Prime sheets, so if you need more help, just come back here.

Success!

Luc

After I did your Formula in Prime, show as below+Attachment

23-Emerald III
(To:SPRstructur)

Stupid error message of Prime, you're not using units here !

I guess the error is due to the autolabelling feature of Prime, Sometimes a blessing, Now it isn't.

Check your labels. ORIGIN should always be the same ORIGIN, the bold upright one, which is labelled as a 'system' type. So the Italic ORIGIN's need their labels changed.

Success!
Luc

15-Moonstone
(To:LucMeekes)

hahaha......
Wrong 'c', The origin is Correct!
Cheer! Success

23-Emerald III
(To:SPRstructur)

So now it works?

15-Moonstone
(To:LucMeekes)

Yes

I reattach to other need this for Someone use Prime

Many Thank!

Announcements