12-Amethyst
February 2, 2024
Solved
Issue: Range behaviour
- February 2, 2024
- 3 replies
- 1179 views
Hi,
*** I attached a Mathcad sheet exemplifying the issue***
I have a variable j defined below:

This variable can take values like [1], [2], etc. except when type is 12, in which case j=[0,1,2,...,11]
My idea is that the user can select an individual type or select type=12, which includes all types from 0 to 11..
When I multiply two vectors using j to access their elements, it works as intended:

The problem occurs when I want to store this result in a variable.

I want to get rid of those zeros and mimic the C_j * M1_j results shown above. I tried to create a another variable i but for some reason it gives an error:

I wonder if there is a cleaner/easier way of doing this?
Regards,




