Reagarding dyamic running of matlab model

1 visualizzazione (ultimi 30 giorni)
Shashikanth
Shashikanth il 12 Gen 2015
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.

Risposte (0)

Categorie

Scopri di più su Simscape in Help Center e File Exchange

Prodotti

Community Treasure Hunt

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

Start Hunting!

Translated by