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 Kommentar

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

Melden Sie sich an, um zu kommentieren.

Antworten (0)

Kategorien

Mehr zu Audio I/O and Waveform Generation finden Sie in Hilfe-Center und File Exchange

Gefragt:

am 15 Apr. 2015

Kommentiert:

Jan
am 16 Apr. 2015

Community Treasure Hunt

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

Start Hunting!

Translated by