Azzera filtri
Azzera filtri

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

1 visualizzazione (ultimi 30 giorni)
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...

Risposta accettata

Steven Lord
Steven Lord il 1 Apr 2019
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 Commenti
Darko Kulic
Darko Kulic il 2 Apr 2019
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 il 2 Apr 2019
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

Accedi per commentare.

Più risposte (1)

Darko Kulic
Darko Kulic il 2 Apr 2019
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

Categorie

Scopri di più su Audio Processing Algorithm Design in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by