assignment problem caused by size misfit between two sides

조회 수: 1 (최근 30일)
Elinor Ginzburg
Elinor Ginzburg 2020년 9월 3일
답변: Cris LaPierre 2020년 9월 4일
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.

채택된 답변

Cris LaPierre
Cris LaPierre 2020년 9월 4일
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.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Pulsed Waveforms에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by