Manual scaling via matlab scripting
Posted: Thu Apr 27, 2023 9:52 am
Hello,
I'm trying to scale a generic model 2392 manually but I'm having problems getting to the right solution via Matlab script. Should I use the Model class and the function scale to perform the scaling? Or should I create a ScaleTool? In both cases (see below) I get stuck.
Could you please give me a hint on how to proceed?
Via the Model
Via ScaleTool
I'm trying to scale a generic model 2392 manually but I'm having problems getting to the right solution via Matlab script. Should I use the Model class and the function scale to perform the scaling? Or should I create a ScaleTool? In both cases (see below) I get stuck.
Could you please give me a hint on how to proceed?
Via the Model
Code: Select all
Model2 = Model(generic_model);
Model2.initSystem;
% How do I get the states? How do I define the scaleSet?
Model2.scale(states,scaleSet, true, mass);
Model2.print(output);
Code: Select all
scale_tool = ScaleTool(scale_template);
% How do I connect the ScaleTool to a specific model to scale?
scale_tool.setPathToSubject(unscaled_model);
scale_tool.run();