how to solve "Undefined function" problem?

조회 수: 75 (최근 30일)
mohanish
mohanish 2018년 9월 24일
댓글: Stephen23 2024년 4월 10일 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
mohanish
mohanish 2018년 9월 24일
the files which I am working on are these

댓글을 달려면 로그인하십시오.

채택된 답변

OCDER
OCDER 2018년 9월 24일
Add the path where your missing function is to your Matlab working path. Read more here.
  댓글 수: 6
mohanish
mohanish 2018년 9월 26일
Thank you so much Man! It worked. That was a stupid mistake!
OCDER
OCDER 2018년 9월 26일
You're welcome!

댓글을 달려면 로그인하십시오.

추가 답변 (1개)

Wilbert Clarke
Wilbert Clarke 2024년 4월 10일 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
Stephen23
Stephen23 2024년 4월 10일 10:01
What value do you expect s to have?

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Search Path에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by