Matrix within a matrix not working inside for loop?

Matrix within a matrix not working inside for loop? - Messages

#1 Posted: 12/5/2023 4:35:23 AM
Wesly Centerwall

Wesly Centerwall

26 likes in 156 posts.

Group: User

Why does this work:
2023-12-04 15_32_13-SMath Solver 1.0.8348 - [Worksheet1.sm].png

But this does not:
2023-12-04 15_32_23-SMath Solver 1.0.8348 - [Worksheet1.sm].png

Seems like this should work.
What am I missing here?

Maybe someone has a better way of doing what I'm trying to do?

Worksheet1.sm (9 KiB) downloaded 28 time(s).
#2 Posted: 12/5/2023 12:46:51 PM
Alvaro Diaz Falconi

Alvaro Diaz Falconi

992 likes in 1674 posts.

Group: User

Hi. SMath do not fully support MDA (multiple dimension arrays). This is a way to handle this case

mda-assign.sm (10 KiB) downloaded 32 time(s).

mda.png

Best regards.
Alvaro.
2 users liked this post
ioan92 12/5/2023 4:43:00 PM, Wesly Centerwall 12/6/2023 12:03:00 AM
#3 Posted: 12/6/2023 12:03:30 AM
Wesly Centerwall

Wesly Centerwall

26 likes in 156 posts.

Group: User

Thanks for the feedback.
#4 Posted: 12/6/2023 5:36:10 AM
Jean Giraud

Jean Giraud

983 likes in 6866 posts.

Group: User

Wrote

Maybe someone has a better way of doing what I'm trying to do ?


The Matlab pre-constructed array example via page(#) is simple in Smath.
Even more maneuverable ...
Jean

Utilities Matrix MDA.sm (66 KiB) downloaded 31 time(s).

  • New Posts New Posts
  • No New Posts No New Posts