필터 지우기
필터 지우기

Undefined function or variable 'channelDepth'. Error in Untitled2 (line 6) 'ChannelDe​pth',chann​elDepth,..​.

조회 수: 1 (최근 30일)
numPaths = 5;
propSpeed = 1520;
channelDepth = 100;
clearvars
isopath{1} = phased.IsoSpeedUnderwaterPaths(...
'ChannelDepth',channelDepth,...
'NumPathsSource','Property',...
'NumPaths',numPaths,...
'PropagationSpeed',propSpeed,...
'BottomLoss',0.5,...
'TwoWayPropagation',true);
isopath{2} = phased.IsoSpeedUnderwaterPaths(...
'ChannelDepth',channelDepth,...
'NumPathsSource','Property',...
'NumPaths',numPaths,...
'PropagationSpeed',propSpeed,...
'BottomLoss',0.5,...
'TwoWayPropagation',true);
fc = 20e3; % Operating frequency (Hz)
  댓글 수: 2
Tiasa Ghosh
Tiasa Ghosh 2018년 8월 20일
Your question is too vague and unclear. You need to frame the question properly for people to understand so that they can help you with the issue. Refer this: https://de.mathworks.com/matlabcentral/answers/6200-tutorial-how-to-ask-a-question-on-answers-and-get-a-fast-answer

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

답변 (1개)

Walter Roberson
Walter Roberson 2018년 8월 20일
The
clearvars
is erasing all memory of the assignments you did above that point.

카테고리

Help CenterFile Exchange에서 App Building에 대해 자세히 알아보기

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by