photo

Fun Dan


Active since 2015

Followers: 0   Following: 0

Statistics

  • Thankful Level 3

View badges

Feeds

View by

Question


How do I preallocate memory in a For loop code?
How do I preallocate memory for the for loop below? And does preallocating memory makes a simulation run faster? #1 for M...

9 years ago | 1 answer | 0

1

answer

Question


Need Help fixing a for loop for iteration
Hi, I have the following code but it is not giving me the values I want. The loop is not working. Basically, I want the varia...

9 years ago | 1 answer | 0

1

answer

Answered
How do I generate distances between a varying object within a grid and 5 fixed locations.
Thank you Joseph. You are right. I was told I could use the pdist() but I do not know how to use it either. I tried but it's not...

9 years ago | 0

Question


How do I generate distances between a varying object within a grid and 5 fixed locations.
How do I generate a code that would *calculate the distances of the 4 stations and EU to the DC for every given location of the ...

9 years ago | 2 answers | 0

2

answers

Question


I need help with fixing the error in my for loop equation
Please how do I fix the error message: Attempted to access ID(3); index out of bounds because numel(ID)=2. I am trying to get...

9 years ago | 2 answers | 0

2

answers

Question


If...elseif Statement Not Pulling Variables
Please I need help. I am trying to run the following arguments for three different cases using the if..elseif statement but it i...

9 years ago | 1 answer | 0

1

answer

Question


How can I pull or link a matrix output from m-file into simulink?
I have an output in matrix format in m-file. For example, I have the values a11, a12, a21, a22 calculated already, and I want to...

9 years ago | 2 answers | 0

2

answers