Any help "Not enough input arguments"?

1 回表示 (過去 30 日間)
Hebat-Allah Saber
Hebat-Allah Saber 2021 年 1 月 2 日
コメント済み: Hebat-Allah Saber 2021 年 1 月 6 日
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

採用された回答

Walter Roberson
Walter Roberson 2021 年 1 月 3 日
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
  1 件のコメント
Hebat-Allah Saber
Hebat-Allah Saber 2021 年 1 月 6 日
Thank you!

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

その他の回答 (1 件)

Ritankar Sahu
Ritankar Sahu 2021 年 1 月 3 日
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

カテゴリ

Help Center および File ExchangeGet Started with MATLAB についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by