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

Community Tip - When posting, your subject should be specific and summarize your question. Here are some additional tips on asking a great question. X

Translate the entire conversation x

Undefined variable using code blocks, vectors and matrices

FH_10054575
2-Explorer

Undefined variable using code blocks, vectors and matrices

Hi!

 

First of all... I'm kind of a n00b in Mathcad so please bear with me.

 

I am writing a sheet thats supposed to calculate resisting moment in concrete slab using vectors and matrices and some code blocks. Or I didn't write it... Google AI studio did 😕

As you can see in the attached image and the attached file I', getting "Undefined variable" when trying to visualize the matrix, wich accoring to Google should work. Further down it will result in i a table the for export to Excel.

As I'm pretty lost, and Google cant fix it (neither do ChatGPT) can you spot the error(s) 😉

 

I'm using Mathcad Prime 10.0.1.0

 

Best regards,

Fredrik

FH_10054575_0-1758136656615.png

 

ACCEPTED SOLUTION

Accepted Solutions

AI would still seem to have some way to go.  It has a number of "newbie" errors and misunderstandings.

 

2025 09 17 C.png

 

2025 09 17 D.png

 

Stuart

View solution in original post

3 REPLIES 3

AI would still seem to have some way to go.  It has a number of "newbie" errors and misunderstandings.

 

2025 09 17 C.png

 

2025 09 17 D.png

 

Stuart

First of all.

A big thank you for taking your time to go trough the document and explain it for me 💚

 

I think that AI is kind of a lazy mans take in some cases, like this one 😁

I know I should sit down and take my time to learn Mathcad properly. But I find it hard to get the time to do it.

 

Once again. Thank you!

Werner_E
25-Diamond I
(To:FH_10054575)

If you want to continue using Prime for your work, I would advise you to familiarize yourself a little with how it works and its syntax using tutorials and help files, rather than letting AI do a (rather poor) job. Not everything in life is convenient and easy.
If you encounter problems and limitations during your own attempts, you can certainly get help here in the forum.

Announcements

Top Tags