Struct contents reference from a non-struct array object

L=10000;
fs=48000;
[y,fs] = audioread('pp.wav');
left_channel = y(:,1);
right_channel = y(:,2);
b = left_channel - right_channel;
x_noise=b.val(1,1:L)/200;
and i'm getting 'Struct contents reference from a non-struct array object' error in line "x_noise=b.val(1,1:L)/200;". Please tell me the solution.

2 comentarios

pankaj gupta
pankaj gupta el 26 de Mzo. de 2019
Editada: pankaj gupta el 26 de Mzo. de 2019
b is the signal which is difference between left and right signal of an audio signal.

Iniciar sesión para comentar.

Respuestas (0)

Categorías

Más información sobre MATLAB en Centro de ayuda y File Exchange.

Preguntada:

el 26 de Mzo. de 2019

Editada:

el 26 de Mzo. de 2019

Community Treasure Hunt

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

Start Hunting!

Translated by