Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
SysBiOThe
/
CRA-Matlab
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit f01c946d
authored
2019-03-31 21:52:16 +0200
by
Chiara Antonini
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Upload new file
1 parent
0185a9e1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
0 deletions
CRA_Updated_Version/CRA_Toolbox_bash/plotpdf_param.m
CRA_Updated_Version/CRA_Toolbox_bash/plotpdf_param.m
0 → 100644
View file @
f01c946
%Function that plots and saves the figures of the conditional pdfs of parameters that are
%used for computing MIRI. It takes in input the struct of the model, the
%folder where the results are saved, the output node of interest and the
%number of independent realizations
function
plotpdf_param
(
folder
,
variable_name
,
model
,
Nr
)
nominal_parameters
=
model
.
nominal_parameters
;
parameters_name
=
model
.
parameters_name
;
try
load
(
fullfile
(
folder
,
variable_name
,
'pdf_param.mat'
));
for
i
=
1
:
length
(
nominal_parameters
)
figure
for
k
=
1
:
Nr
plot
(
xbin_param
{
1
,
k
}(
i
,:),
ks_param
{
1
,
k
}(
i
,:),
'b'
,
xbin_param
{
2
,
k
}(
i
,:),
ks_param
{
2
,
k
}(
i
,:),
'r'
);
hold
on
end
xlabel
(
parameters_name
{
1
,
i
},
'Interpreter'
,
'none'
);
ylabel
(
'pdf'
);
legend
(
'Conditional upper density'
,
'Conditional lower density'
);
savefig
(
fullfile
(
folder
,
variable_name
,
parameters_name
{
1
,
i
}));
end
catch
ME
errordlg
(
ME
.
message
)
end
end
\ No newline at end of file
\ No newline at end of file
Write
Preview
Styling with
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment