Matrix dimensions must agree

2 views (last 30 days)
Conor Kinnaird
Conor Kinnaird on 15 Apr 2015
Commented: Jan on 16 Apr 2015
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 Comment
Jan
Jan on 16 Apr 2015
The function distance is not part of the Matlab toolboxes. So you have to tell us more details about this function.

Sign in to comment.

Answers (0)

Community Treasure Hunt

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

Start Hunting!