Matrix dimensions must agree

I'm having trouble with my script
clc;
clear;
close all;
[audio1, Fs] = audioread('1812 overture 256.mp3');
[audio2] = audioread('1812 overture 320.mp3');
[dlsd1, dskl1, dmfcc1] = distance(audio1, audio2, Fs);
Every time I run this script I get the error:
Error using .* Matrix dimensions must agree.
Error in distance (line 21) S1=Sig1.*window;
Error in CW_2(line 6) [dlsd1, dskl1, dmfcc1] = distance(audio1, audio2, Fs);
While searching around I have seen that it may be an issue with Fs and length of clip but I have made sure that both are the same.
Any solutions?

1 commentaire

Jan
Jan le 16 Avr 2015
The function distance is not part of the Matlab toolboxes. So you have to tell us more details about this function.

Connectez-vous pour commenter.

Réponses (0)

Catégories

En savoir plus sur Audio I/O and Waveform Generation dans Centre d'aide et File Exchange

Commenté :

Jan
le 16 Avr 2015

Community Treasure Hunt

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

Start Hunting!

Translated by