Any help "Not enough input arguments"?

1 view (last 30 days)
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

Accepted Answer

Walter Roberson
Walter Roberson on 3 Jan 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

More Answers (1)

Ritankar Sahu
Ritankar Sahu on 3 Jan 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

Categories

Find more on Get Started with MATLAB in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!