필터 지우기
필터 지우기

Unrecognized function or variable in app designer

조회 수: 3 (최근 30일)
Luqman Hadiwinata
Luqman Hadiwinata 2022년 5월 24일
댓글: Luqman Hadiwinata 2022년 5월 24일
Hello, so in this case, i'm trying to make an app that receive an audio file as input and then said file will be processed by DTFT to find its noise. However, when i try to read the audio using audioread, the log says that my variable (fullpathnames) is unrecognized. Any idea how or why this happens? Here's a snippet from my code in app editor:
% Callbacks that handle component events
methods (Access = private)
% Button pushed function: MasukkanFileSuaraButton
function MasukkanFileSuaraButtonPushed(app, event)
[file, folder] = uigetfile({"*.*"; "*.wav";"*.mp3";"*.ogg"}, 'File Selector');
fullpathnames = fullfile(folder, cellstr(file));
end
% Button pushed function: SuaraAsliButton
function SuaraAsliButtonPushed(app, event)
[x, Fs] = audioread(fullpathname);
sound(x, Fs)
end
end

답변 (1개)

Hiro Yoshino
Hiro Yoshino 2022년 5월 24일
methods(Access == public)
I suspect the access attribute was set wrongly.
  댓글 수: 1
Luqman Hadiwinata
Luqman Hadiwinata 2022년 5월 24일
how do i change it? the code section is grayed out and i can't edit it

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

카테고리

Help CenterFile Exchange에서 Simulation, Tuning, and Visualization에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by