私が入ります:
EDU>> %using the temporary variable levels
EDU>> levels=range/quantise_range;
levels=round(levels);
quantisation_bits=log2(levels)
注意。x 変数はどこにもありません
私のエラーは次のとおりです。
??? Input argument "x" is undefined.
Error in ==> range at 18
y = max(x) - min(x);
EDU>> %combining above process into one statement
quantisation_bits=log2(round(range/quantise_range));
??? Input argument "x" is undefined.
Error in ==> range at 18
y = max(x) - min(x);
誰かがこの問題を説明してくれませんか? 私はプログラミングの初心者で、エラー ヒントの読み方がよくわかりません。
ありがとう。
さらに、私の側の同じ原則の誤解が原因である可能性があるため、ここでこのコードに問題があり、エラーも含まれています。
%Trying to create my own function, I'm press Shift+Enter at the end of 行端:
EDU>> function what_am_i()
disp 'I am a function'
??? function what_am_i()
|
Error: Function definitions are not
permitted in this context.
EDU>>
function what_am_i()
disp' I am a function'
??? function what_am_i()
|
Error: Function definitions are not
permitted in this context.
EDU>> end
??? end
|
Error: Illegal use of reserved keyword
"end".