Reagarding dyamic running of matlab model

1 次查看(过去 30 天)
I have deisgned a simscape model and i am running the model using sim command by script . I have two pressures p1 and p2 .I am able to run the model and calculate the flow correctly when i give single values for p1 and p2.Then i created a database like p1 =[20 30 40]; p2= [15 10 30]; for i=1:length(db_p1) P1=db_p1(i); P2=db_p2(i); q= simout.signals(1,1).values; disp(q(end,1)); but now i getting the same flow rate for different combinations of p1 and p2 ie for p1=15, p2= 20. the same output is coming for the remaining 2 cases.please help to get the correct values.

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Simscape 的更多信息

标签

产品

Community Treasure Hunt

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

Start Hunting!

Translated by