Any help "Not enough input arguments"?
조회 수: 1 (최근 30일)
이전 댓글 표시
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
채택된 답변
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개)
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
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Get Started with MATLAB에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!