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 个)
function someFunction( X1, X2 )
validateattributes( X2, { 'double', 'single' }, { '>=', pi/6, '<=', pi/3 } )
...
end
类别
在 帮助中心 和 File Exchange 中查找有关 SimEvents 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!