My codes are
k=2.67*10^-4;
a=0.73;
n=1.687;
log(m)=(log(n)-log(k))./a;
disp(m)
Why am i get Undefined function or variable 'm'. ERROR ?

 채택된 답변

Roger Wohlwend
Roger Wohlwend 2014년 5월 21일

2 개 추천

The syntax you used is not correct. You can only assign values to variables, not to transformed variables. You have to do your calculation in two steps. First introduce a new variable logm and calculate logm = (log(n)-log(k))/a, then calculate m = exp(logm).

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Logical에 대해 자세히 알아보기

질문:

cem
2014년 5월 21일

댓글:

cem
2014년 5월 21일

Community Treasure Hunt

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

Start Hunting!

Translated by