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 ?

Réponses (1)

Adam
Adam le 29 Mar 2016
Modifié(e) : Adam le 29 Mar 2016

0 votes

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

Catégories

En savoir plus sur SimEvents dans Centre d'aide et File Exchange

Modifié(e) :

le 29 Mar 2016

Community Treasure Hunt

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

Start Hunting!

Translated by