Not understanding the error, why is abs not a function!

1 次查看(过去 30 天)
Hello,
im am writing a little App. It is a project for my schoolarship.
I want to create an rocker switch, which can create the fuzz sound and an overdrive sound.
But everytime i try to do it, it doesent work. Matlab brings always the same error. I have tried anonymous function, setting only a var for the val, create abs as a own function in my app and so....
Please someone helps me... I m really frustrated...

采纳的回答

Steven Lord
Steven Lord 2019-4-1
You're trying to call abs on the audioin property of your app, which is not a number but some sort of audio importing object. Try importing the audio data from that object then call abs on that data rather than the object.
  2 个评论
Darko Kulic
Darko Kulic 2019-4-2
Hey! Thank you very much for your fast answer! The Service ist awesome.
I think it will work, but help me to safe my work first!
Now I have a bigger problem.
I started the app today and now i cant run anything because of a change in the fixed matlab code! I dont know how, but somehow it was changed and now i cant do anything, and i dont want to write it again! please Help me! Bildschirmfoto 2019-04-02 um 21.58.49.png
Darko Kulic
Darko Kulic 2019-4-2
okej, i wrote it again, but it didnt helped.
The if statement is the problem, but why?
I dont get it.
Bildschirmfoto 2019-04-02 um 23.26.55.png
tha

请先登录,再进行评论。

更多回答(1 个)

Darko Kulic
Darko Kulic 2019-4-2
Hej,
so i solved all these problems, but now i got a new one....
Why does it say, too many input arguments?
The funtion works fine, out of app designer.
And also i changed the input, it is not longer an audio file, i got the data, with uigetfile.
It is frustrating, please help me out!
Thany you alot!
br
Darko Kulic
Bildschirmfoto 2019-04-03 um 01.00.04.png

类别

Help CenterFile Exchange 中查找有关 Audio Processing Algorithm Design 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by