필터 지우기
필터 지우기

Matlab says to many Inputs calling a fucntion in app designer, even if the input is just one value.

조회 수: 2 (최근 30일)
Hello,
please help me, Im writing an app for my schoolarship.
I want to do a fuzz and a overdrive. I created a switch, which picks the right fucntion and with an aplly button, matlab should run the function and read it in as an audio, with audiorecorder.
The funtion are working fine, if im not in app designer.
Bildschirmfoto 2019-04-03 um 07.59.01.png

채택된 답변

TADA
TADA 2019년 4월 3일
편집: TADA 2019년 4월 3일
The first argument in a method (that's what functions are called in object oriented programming) of an object is the object instace (i.e self in Java or this in .Net)
Writing
app.fuzz(x)
Invokes the fuzz function the same as this line would:
fuzz(app, x)
So you actually need to have two arguments in that method, where the first one is app
Java and .Net sugar-coat it and hide the passing of instance arguments behind the scenes but Matlab doesn't. It takes some getting used to, but it makes sense
  댓글 수: 3
TADA
TADA 2019년 4월 3일
Whats the exact error you get?
copy all the red text (including the stack trace) from your command window and post here please
Darko Kulic
Darko Kulic 2019년 4월 3일
the copy paste is not working.... =/ i posted a screen shot....
probably firefox mac problem.....

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

추가 답변 (1개)

Darko Kulic
Darko Kulic 2019년 4월 3일
Bildschirmfoto 2019-04-03 um 10.27.34.png
  댓글 수: 4
Darko Kulic
Darko Kulic 2019년 4월 3일
The app.audioin1 is the overdone audio, the input is the first audio data I recorded and read it in with uigetfile.
This file was read in in fuzz and then i want to make an audiofile of it using audiorecorder.
I dont understand what you mean with instance.
Do you think i have to make an extra fuzz output wich is only data and then read it into audiorecorder? thats what i tried to do.
TADA
TADA 2019년 4월 3일
An instance is a unit of some class.
When you careated the audiorecorder you got an instance of that class.
I think your best option is to save it as a property of your app

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

카테고리

Help CenterFile Exchange에서 Filter Analysis에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by