assignment problem caused by size misfit between two sides
1 回表示 (過去 30 日間)
古いコメントを表示
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.
0 件のコメント
採用された回答
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 件のコメント
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Pulsed Waveforms についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!