0
$\begingroup$

I was doing some sort of speech recognition pattern for recognition of sound but I stuck at imread error in matlab, any advice what to change in picture below you can find code and error.

Code

Error

x=audioread ('one.wav');
x1=audioread ('two.wav');
x2=audioread ('three.wav');
x3=audioread ('four.wav');

figure, plot (x);
imwrite (x, 'one.jpg');
figure, plot (x1);
imwrite (x1, 'two.jpg');
figure, plot (x2);
imwrite (x2, 'three.jpg');
figure, plot (x3);
imwrite (x3, 'four.jpg');

AKA = imread ('one.jpg');
AKB = imread ('two.jpg');
AKC = imread ('three.jpg');
AKD = imread ('four.jpg');


AA = rgb2grey(AKA);
AB = rgb2grey(AKB);
AC = rgb2grey(AKC);
AD = rgb2grey(AKD);

aa = imcrop (AA,[200,66,50,300]);
ab = imcrop (AB,[200,66,50,300]);
ac = imcrop (AC,[200,66,50,300]);
ad = imcrop (AD,[200,66,50,300]);

figure, imshow (aa);
figure, imshow (ab);
figure, imshow (ac);
figure, imshow (ad);

p = [aa(75:15:210,:);ab(75:15:210,:);ac(75:15:210,:);ad(75:15:210,:)];
E = double (p');
T = [10 10 10 10 10 10 10 10 10 10 ...
 20 20 20 20 20 20 20 20 20 20 ...
 30 30 30 30 30 30 30 30 30 30 ...
 40 40 40 40 40 40 40 40 40 40 ];
$\endgroup$
  • $\begingroup$ Please add your code to the question as text formatted as code instead of as a picture attachment. $\endgroup$ – Ethan May 8 at 0:54
  • $\begingroup$ There it is code $\endgroup$ – Fareishuge May 8 at 11:54

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.