Azzera filtri
Azzera filtri

why is this function not working?

2 visualizzazioni (ultimi 30 giorni)
Nithish kannan
Nithish kannan il 14 Mag 2023
Modificato: Walter Roberson il 14 Mag 2023

Risposte (2)

Harsh Mahalwar
Harsh Mahalwar il 14 Mag 2023
Modificato: Harsh Mahalwar il 14 Mag 2023
Hey Nithish,
In order to call a function, you don't need to write "function" in front of it. You can simply call a function with this format:
[variable which will store the value returnded by the function] = [function name]([function parameters])
If you have to learn more about functions you can checkout this documentation.

Walter Roberson
Walter Roberson il 14 Mag 2023
Modificato: Walter Roberson il 14 Mag 2023
If you are trying to create a function named update for the purpose of processing callbacks for the slider, then you will need to create the function inside a .m file. The only kind of functions that can be created at the command line are:
  • anonymous functions
  • symbolic functions
  • inline functions

Categorie

Scopri di più su Function Creation 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