About function definition

1 回表示 (過去 30 日間)
C Zeng
C Zeng 2012 年 5 月 31 日
Hi, I want to define a function like:
function [V_max, a_max, runtime]=V(a,b,c)
If I write [x,y,z]=V(a,b,c) it will show three results.
If I write [x,y]=V(a,b,c), will it automatically show the first two results-V_max and a_max?
If [x]=V(a,b,c), will it show only V_max?
I just want to make sure whether it is defined as a convention. Thanks.

採用された回答

Walter Roberson
Walter Roberson 2012 年 5 月 31 日
That happens automatically with a normal function definition.
  1 件のコメント
C Zeng
C Zeng 2012 年 6 月 5 日
Thanks.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeReporting and Database Access についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by