n = nume1(y); on the Matlab OnRamp dosen't work ?
1 次查看(过去 30 天)
显示 更早的评论
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'.
0 个评论
采纳的回答
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 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!