Link to home
Start Free TrialLog in
Avatar of vinodha22
vinodha22

asked on

analysis of emotional speech signal for gender classification

i want to read and write 5 wav file using for loop code
for i=1:5
    for j=1:5
        fnsil=fprintf('sad%d%d.wav'i,j);
        fid=fopen(fnsil,'r');
        fr=fscanf(fid,'%f',1);
        fclose(fid)
        for a=1;fr
            kk=fscanf(fid,'%f',1);
            ex(i)=kk
        end;
    end;
end
 i run this code it shows an error
Avatar of jmcg
jmcg
Flag of United States of America image

I don't immediately recognize what language you're writing in, but does it really allow you to use both colons (:) and semi-colons (;) in a for statement? Making those consistent to conform to the language you're using might make an error message go away.

Next time, it would help to show the error message.
This question needs an answer!
Become an EE member today
7 DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform.
View membership options
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.