writting function that returns an array

1 visualización (últimos 30 días)
Mohamed Jamal
Mohamed Jamal el 30 de Jul. de 2020
Editada: Mohamed Jamal el 31 de Jul. de 2020
Hi , this thread must be deleted, there's no effective questions.
thanks beforehand

Respuestas (1)

Mohamed Jamal
Mohamed Jamal el 30 de Jul. de 2020
Editada: Mohamed Jamal el 30 de Jul. de 2020
The name of the function doesn't matter for me lets assume I want to call my function func1 which gets in its input fm.dat file and it outputs the array Out what I show in my command window, Im trying to do one complete function without using command window in order to get the output (array called Out), thanks alot !!!
I didn't succeed to write one function to include the load file function (first section code) with second section code and output the array Out .. in simple words I want to write like this func1('fm.dat') and the output is immediately will be the array Out ..without writting in my command window in matalab all what I've done in my second section .. in other words I want to write one complete function that gets an input and return me an output (array Out in my case)
at the end I want to do one function to do what I want, gets an inputs fm.dat file and output is an array called Out as I shown in my second section code

Categorías

Más información sobre Data Type Conversion en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by