writting function that returns an array

4 次查看(过去 30 天)
Hi , this thread must be deleted, there's no effective questions.
thanks beforehand

回答(1 个)

Mohamed Jamal
Mohamed Jamal 2020-7-30
编辑:Mohamed Jamal 2020-7-30
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

类别

Help CenterFile Exchange 中查找有关 Whos 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by