Borrar filtros
Borrar filtros

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

1 visualización (últimos 30 días)
Babacar Dieng
Babacar Dieng el 24 de Sept. de 2017
Movida: DGM el 22 de Feb. de 2023
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'.

Respuesta aceptada

Steven Lord
Steven Lord el 24 de Sept. de 2017
The function is numel with a lower-case L as the last character. Think of it as NUMber of ELements.
  1 comentario
Babacar Dieng
Babacar Dieng el 30 de Sept. de 2017
Movida: DGM el 22 de Feb. de 2023
thanks! i I misspelled the function

Iniciar sesión para comentar.

Más respuestas (1)

Nandan Bapat
Nandan Bapat el 21 de Oct. de 2018
It is small letter 'L' l and not 1. I was stuck in same problem lol

Categorías

Más información sobre Programming en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by