how to solve "Undefined function" problem?

74 vues (au cours des 30 derniers jours)
mohanish
mohanish le 24 Sep 2018
Commenté : Stephen23 le 10 Avr 2024 à 10:01
I am writing a code where i used melcepsta function and it worked fine for the first time. Later I closed Matlab completely and opened it 3 days later to run the same program, but it did not run and it gave me this error.. "Undefined function 'Melcepsta'". Before running the program after 3 days it asked whether to change the path of the .m file or add to the path.. I selected add to the path.. I have attached the .m and .fig file along. Please, any help will be appreciated.
  1 commentaire
mohanish
mohanish le 24 Sep 2018
the files which I am working on are these

Connectez-vous pour commenter.

Réponse acceptée

OCDER
OCDER le 24 Sep 2018
Add the path where your missing function is to your Matlab working path. Read more here.
  6 commentaires
mohanish
mohanish le 26 Sep 2018
Thank you so much Man! It worked. That was a stupid mistake!
OCDER
OCDER le 26 Sep 2018
You're welcome!

Connectez-vous pour commenter.

Plus de réponses (1)

Wilbert Clarke
Wilbert Clarke le 10 Avr 2024 à 9:23
J = 0.02;
b = 0.1;
K = 0.01;
R = 1.1;
L = 0.5;
numerator = K;
denominator = [J, b, K^2];
M = tf(numerator, denominator);
T = feedback(M, 1);
C = 1/s;
one_minus_T = 1 - T;
E_ss = limit(s * C * one_minus_T, s, 0)
  1 commentaire
Stephen23
Stephen23 le 10 Avr 2024 à 10:01
What value do you expect s to have?

Connectez-vous pour commenter.

Catégories

En savoir plus sur Search Path dans Help Center et File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by