Unrecognized function or variable in app designer
3 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
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
0 comentarios
Respuestas (1)
Hiro Yoshino
el 24 de Mayo de 2022
methods(Access == public)
I suspect the access attribute was set wrongly.
Ver también
Categorías
Más información sobre Simulation, Tuning, and Visualization en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!