Saarland University
Lehrstuhl für Automatisierungstechnik

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> ?How to extract data from a mat-file and create a 3d plot?, Is it possible to create 3d plots with dymola? How to read a single re
saiph74
post Sep 20 2012, 06:49 AM
Post #1


Newbie
*

Group: Members
Posts: 6
Joined: 9-August 12
Member No.: 625,862



I've created a model and programmed a simple mos-script (see code) to simulate this model multiple times for two parameters (j0 and u). The simulations results are saved in 253 .mat-files(SimResults-0.mat to SimResults-252.mat).
Now i would like to
1. get (extract) the final values of each of these files,
2. save these values in a .mat or .csv file and
3. create a 3d plot (is this possible?)
but i have no idea how to realize this! sad.gif

CODE
openModel("LLKReg.mo")
for i in 0:22 loop
for j in 0:10 loop
cd simresults
simulateExtendedModel("LLKReg", 0.0, 10000.0, initialNames={"u","j0"}, initialValues={i,j}, finalNames={"T2"}, resultFile="SimResults-"+String(i+j*23));        
// T2 is an unknown model variable, u and j0 some parameters
end for;
end for;


I hope you can help me smile.gif
THANX in advance saiph
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



Lo-Fi Version Time is now: 19th June 2019 - 10:51 PM