writting function that returns an array

1 visualizzazione (ultimi 30 giorni)
Mohamed Jamal
Mohamed Jamal il 30 Lug 2020
Modificato: Mohamed Jamal il 31 Lug 2020
Hi , this thread must be deleted, there's no effective questions.
thanks beforehand

Risposte (1)

Mohamed Jamal
Mohamed Jamal il 30 Lug 2020
Modificato: Mohamed Jamal il 30 Lug 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

Categorie

Scopri di più su Data Type Conversion 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