引数なしの関数を作成する方法
27 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
呼び出すと関数内のプログラムを実行するだけの関数を作成したいのですが、
調べてみると、引数があるバージョンしかヒットしなかったので教えてほしいです。
よろしくお願いします。
0 Kommentare
Akzeptierte Antwort
Akiko
am 28 Jan. 2021
以下のページの "出力引数 (オプション)", "入力引数 (オプション)"にも記載されているように、出力や入力がない場合、省略することができます。
こんな感じです。
function myFunction
....
end
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Octave finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!