assignment problem caused by size misfit between two sides
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
Elinor Ginzburg
el 3 de Sept. de 2020
Respondida: Cris LaPierre
el 4 de Sept. de 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 comentarios
Respuesta aceptada
Cris LaPierre
el 4 de Sept. de 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 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre Pulsed Waveforms en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!