Borrar filtros
Borrar filtros

Long scripts in thingspeak.

17 visualizaciones (últimos 30 días)
Marc Hanssens
Marc Hanssens el 10 de Jul. de 2024 a las 2:38
Comentada: Marc Hanssens el 15 de Jul. de 2024 a las 21:47
I use Thingspeak scripts which run in Matlab analysis are geting quite long. is there a way to have functions in one Matlab analysis called by another Matlab analysis?
thanks in advance

Respuestas (1)

Amish
Amish el 10 de Jul. de 2024 a las 5:35
Hi Marc,
Yes, you can call functions from one MATLAB analysis in another by organizing your functions into separate files or scripts. This can be done by having seperate function files where each of the functions is a ".m" file. These functions an then be called directly as long as the files are in the MATLAB path.
Alternatively, you can alos pass function handles to other functions or scripts. This is useful if you want to dynamically call different functions.
If you have a set of related functions, you can also consider organizing them into a class. This allows you to call methods from an instance of the class.
These are some of the methods you can use to keep your code organized and make it easier to manage longer scripts.
Hope this helps.
  1 comentario
Marc Hanssens
Marc Hanssens el 15 de Jul. de 2024 a las 21:47
In thingspeak there are no *.m files that I know of , only in Matlab. Thingspeak has only these

Iniciar sesión para comentar.

Categorías

Más información sobre ThingSpeak en Help Center y File Exchange.

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by