Matrix dimensions must agree
2 views (last 30 days)
Show older comments
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
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.
Answers (0)
See Also
Categories
Find more on Audio and Video Data in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!