Calling SimMechanics which requires input variables from matlab function
显示 更早的评论
I am calling my simMech model from my matlab function using sim('mymodel.mdl') in a matlab function file. Only problem is that the model cannot run because I need it to take parameters that are defined in my function (e.g. initial conditions on a joint is specified as 'jointIC' in the simMech model and in my matlab function I have jointIC = 0;) Furthermore I need to pass the outputs of the model back to my function.
I know that you can do what I have described for script files in matlab i.e the variables are passed back and forth from the matlab workspace. But in my case it is very important that I pass them via my function!
Any input would be appreciated, thanks!
3 个评论
Azzi Abdelmalek
2012-10-29
your tags are not correct (simulink & simechanics are products).
your question is not clear for me
Dave
2012-11-1
Walter Roberson
2012-11-2
The tags should be descriptive of the problem to be solved; see http://www.mathworks.co.uk/matlabcentral/answers/43073-a-guide-to-tags
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Programmatic Model Editing 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!