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

pankaj gupta
pankaj gupta 2019년 3월 26일
편집: pankaj gupta 2019년 3월 26일
b is the signal which is difference between left and right signal of an audio signal.

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

도움말 센터File Exchange에서 MATLAB에 대해 자세히 알아보기

질문:

2019년 3월 26일

편집:

2019년 3월 26일

Community Treasure Hunt

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

Start Hunting!

Translated by