assignment problem caused by size misfit between two sides

1 view (last 30 days)
Hello,
I'm trying to run the code showen below, where I'm using Phase Spectrum Compensation algorithm and Wiener Noise Reduction algorithm.
clear all;
input = importdata('input\input.txt');
[data, fs] = audioread(char(input(i)));
outputNSSP = NSSP(data,fs);
outputPSC = psc( data, fs, 25, 25/2, 'Griffin & Lim', 3.74 );
outputMBSS = SSMultibandKamath02(data,fs);
[esTSNR,esHRNR]=WienerNoiseReduction(outputNSSP,fs);
I was able to successfully run it on different input files yesterday and it worked. this morning I've tried to run the code again, without changin anything, and I get this error:
Unable to perform assignment because the size of the left side is 320-by-1 and the size of the right side is 320-by-160.
I've used Matlab for different things yesterday after I've finished working on with this code, could it be that I mistakenly changed some properties? How can I fix this?
Thank you.

Accepted Answer

Cris LaPierre
Cris LaPierre on 4 Sep 2020
Which line is causing the error?
There must be some code missing from what you've shared here. You get this error when your assignment variables already exist. I suspect you are reusing a variable name, either intentionally or accidentally, for the assignment of one of your functions. Use a unique name or clear the assignment variable first.

More Answers (0)

Products

Community Treasure Hunt

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

Start Hunting!