MATLAB Answers

Lou Jan
0

[student] Asking your help to solve an issue with a function creating algebric loop

Asked by Lou Jan
on 18 Apr 2019
Latest activity Answered by Lou Jan
on 19 Apr 2019
Hi,
I am a french student (it might be senior year for you), and iam working on a project for my Ingeniors science class.
I need your help to know if I can change a function that I need ( or not I don't know ) in my simulation. ( The fact is that i wanted to speed up the simulation but the algebric loop forbids me from doing it
Here is the function
function MW = fcn(consigne)
if consigne >= 0
k = 128/100;
else
k = 127/100;
end
MW= round(k*consigne) +127;
end
if you need any precision feel free to ask me
Have a nice day

  0 Comments

Sign in to comment.

3 Answers

Answer by Walter Roberson
on 18 Apr 2019

The problem is not that block: the problem is that you have blocks in which the output is connected to the input, but the calculations are not marked as taking time.

  0 Comments

Sign in to comment.


Answer by Lou Jan
on 19 Apr 2019

Thanks for your answer, I don't quite get it for the moment but i will take a look on it.
Have a nice day

  0 Comments

Sign in to comment.


Answer by Lou Jan
on 19 Apr 2019

moreover do you have any idea for me to find the location of the algebraic loop ?

  0 Comments

Sign in to comment.