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.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Reporting and Database Access에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by