Any help "Not enough input arguments"?
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
Hebat-Allah Saber
el 2 de En. de 2021
Comentada: Hebat-Allah Saber
el 6 de En. de 2021
can any one help me why my code gives me error in line 4.
many thanks in advance
function [ A ] = result1( B )
%UNTITLED Summary of this function goes here
% Detailed explanation goes here
C = mirrms(B);
D = mirlowenergy(B);
F = mirpulseclarity(B);
G = mirzerocross(B);
H = mirrolloff(B);
I = mirbrightness(B);
J = mircentroid(B);
K = mirentropy(B);
L = mirmfcc(B);
M = mirregularity(B);
f = fopen('C:\Users\Hebat-Allah-M\Desktop\Features','w');
A = mirgetdata(C);
fprintf(f,'%6f,',A);
A = mirgetdata(D);
fprintf(f,'%6f,',A);
A = mirgetdata(F);
fprintf(f,'%6f,',A);
A = mirgetdata(G);
fprintf(f,'%6f,',A);
A = mirgetdata(H);
fprintf(f,'%6f,',A);
A = mirgetdata(I);
fprintf(f,'%6f,',A);
A = mirgetdata(J);
fprintf(f,'%6f,',A);
A = mirgetdata(K);
fprintf(f,'%6f,',A);
A = mirgetdata(L);
fprintf(f,'%6f,',A);
A = mirgetdata(M);
fprintf(f,'%6f,cultural-Khaliji\n',A);
B = 'D:\phd\sampels\Elfatha-Elhosry\1.7\1.7.1.1.wav';
C = mirrms(B);
D = mirlowenergy(B);
F = mirpulseclarity(B);
G = mirzerocross(B);
H = mirrolloff(B);
I = mirbrightness(B);
J = mircentroid(B);
K = mirentropy(B);
L = mirmfcc(B);
M = mirregularity(B);
A = mirgetdata(C);
fprintf(f,'%6f,',A);
A = mirgetdata(D);
fprintf(f,'%6f,',A);
A = mirgetdata(F);
fprintf(f,'%6f,',A);
A = mirgetdata(G);
fprintf(f,'%6f,',A);
A = mirgetdata(H);
fprintf(f,'%6f,',A);
A = mirgetdata(I);
fprintf(f,'%6f,',A);
A = mirgetdata(J);
fprintf(f,'%6f,',A);
A = mirgetdata(K);
fprintf(f,'%6f,',A);
A = mirgetdata(L);
fprintf(f,'%6f,',A);
A = mirgetdata(M);
fprintf(f,'%6f,cultural-Shami\n',A);
fclose(f);
end
0 comentarios
Respuesta aceptada
Walter Roberson
el 3 de En. de 2021
You pressed the green Run button to execute the code. When you did that, the function was invoked with no arguments, which is a problem when the function needs to retrieve B to pass to mirrms
Más respuestas (1)
Ritankar Sahu
el 3 de En. de 2021
Hello,
What is mirrms()? is it any of your custom made function? If yes, then what are the parameters for that. As I could see there aren't any such function in Matlab, there is a function named 'mirr'. Did you want to use it? Good Luck!
-- Ritankar
0 comentarios
Ver también
Categorías
Más información sobre Get Started with MATLAB en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!