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 ?

Respuestas (1)

Adam
Adam el 29 de Mzo. de 2016
Editada: Adam el 29 de Mzo. de 2016

0 votos

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

Categorías

Más información sobre SimEvents en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 29 de Mzo. de 2016

Editada:

el 29 de Mzo. de 2016

Community Treasure Hunt

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

Start Hunting!

Translated by