Reagarding dyamic running of matlab model
1 view (last 30 days)
Show older comments
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 Comments
Answers (0)
See Also
Categories
Find more on Magnetic Elements in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!