writting function that returns an array

조회 수: 1 (최근 30일)
Mohamed Jamal
Mohamed Jamal 2020년 7월 30일
편집: Mohamed Jamal 2020년 7월 31일
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