Community Profile

photo

Ryan O Malley


Last seen: 4 months ago Active since 2022

Statistics

  • Thankful Level 2

View badges

Content Feed

View by

Question


Is there a way to set the range of values when using the magic function?
Lets say I have M=magic(5) The values randomly assigned to each positon in the matrix will range from 1 to 25. Is there any...

8 months ago | 1 answer | 0

1

answer

Question


How to set the value of a variable in one function from another?
I have a function in its own file that has the variable n. I want to run the function in a loop incrementing the value for n eac...

8 months ago | 1 answer | 0

1

answer

Question


What am I doing wrong when returning the value from the function to my loop?
I have wriiten the program in c++ and verified that it works but am struggling with the loop part when converting it to MATLAB. ...

8 months ago | 1 answer | 0

1

answer