フィルターのクリア

I'm using Matlab 7.0. How can I call a function? "File/New/Function" is missing.

2 ビュー (過去 30 日間)
Übel
Übel 2014 年 10 月 25 日
回答済み: Zoltán Csáti 2014 年 10 月 25 日
Or should I write an .m file instead beginning with:
function F = magic(x)
...
end
?

採用された回答

Stalin Samuel
Stalin Samuel 2014 年 10 月 25 日
you need to create a .m file .And the file name must same as the function name

その他の回答 (3 件)

Zoltán Csáti
Zoltán Csáti 2014 年 10 月 25 日
The syntax of writing a function is what you have written. When you want to call it, do
out = magic(in)
Be careful though, magic is a function that already exists.

Zoltán Csáti
Zoltán Csáti 2014 年 10 月 25 日
Not a problem. It is just a help for you so that MATLAB creates a sample in advance. I never use this feature because it is not cumbersome to type function.

Übel
Übel 2014 年 10 月 25 日
Okay, thank you. Is it a problem that the "File/New/Function" label is missing in my version?

カテゴリ

Help Center および File ExchangeGet Started with MATLAB についてさらに検索

タグ

製品

Community Treasure Hunt

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

Start Hunting!

Translated by