assignment problem caused by size misfit between two sides
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
Elinor Ginzburg
il 3 Set 2020
Risposto: Cris LaPierre
il 4 Set 2020
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 Commenti
Risposta accettata
Cris LaPierre
il 4 Set 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.
0 Commenti
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Pulsed Waveforms in Help Center e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!