how can i write a function?

how can i write a function using X1 and X2 as variables where X2 subject to 1/6*pi<=X2<=1/3*pi ?

回答 (1 件)

Adam
Adam 2016 年 3 月 29 日
編集済み: Adam 2016 年 3 月 29 日

0 投票

function someFunction( X1, X2 )
validateattributes( X2, { 'double', 'single' }, { '>=', pi/6, '<=', pi/3 } )
...
end

カテゴリ

ヘルプ センター および File ExchangeSimEvents についてさらに検索

質問済み:

2016 年 3 月 29 日

編集済み:

2016 年 3 月 29 日

Community Treasure Hunt

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

Start Hunting!

Translated by