フィルターのクリア

n = nume1(y); on the Matlab OnRamp dosen't work ?

1 回表示 (過去 30 日間)
Babacar Dieng
Babacar Dieng 2017 年 9 月 24 日
移動済み: DGM 2023 年 2 月 22 日
Task 1 ✔ fs=10
fs = 10
Task 2 ✔
t=[0:1/fs:20];
Task 3 ✔
y = sin(1.8*2*pi*t)+sin(2.1*2*pi*t)
Task 4 ✔
plot(t,y,'r-')
Task 5 ✘
Task 5 ✔
yfft = fft(y)
Task 6 ✘
n = nume1(y)
Undefined function 'nume1' for input arguments of type 'double'.
n = nume1(y); Undefined function 'nume1' for input arguments of type 'double'. Task 6 ✘ n = size(y) n = 1 201 Task 6 ✘ N = nume1(y); Undefined function 'nume1' for input arguments of type 'double'.

採用された回答

Steven Lord
Steven Lord 2017 年 9 月 24 日
The function is numel with a lower-case L as the last character. Think of it as NUMber of ELements.
  1 件のコメント
Babacar Dieng
Babacar Dieng 2017 年 9 月 30 日
移動済み: DGM 2023 年 2 月 22 日
thanks! i I misspelled the function

サインインしてコメントする。

その他の回答 (1 件)

Nandan Bapat
Nandan Bapat 2018 年 10 月 21 日
It is small letter 'L' l and not 1. I was stuck in same problem lol

カテゴリ

Help Center および File ExchangeProgramming についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by