getprojectdata
Returns all entities saved in a Project (.aprj) file: breakpoints, files, plots, source code and variables.
Syntax
R = getprojectdata(filename)
Inputs
- filename
- Project file name.
Outputs
- R
- Struct containing fields that describe each entity that is saved within the Project file:
Examples
R = getprojectdata('test1.aprj')
R = struct [
projectbreakpoints:
{
[1,1] [Matrix] 0 x 0
}
projectfiles: {}
projectplots: {}
projectsource:
{
[1,1] deter.oml
}
projectvariables: struct [ ]
]
R = textread('c:/work/test2.aprj')
R = struct [
projectbreakpoints:
{
[1,1] deter.oml
[1,2] 3
[1,3] 8
[1,4] 10
[1,5] 15
}
projectfiles:
{
[1,1] os_opt_rev0.26_gso.slk
}
projectplots:
{
[1,1] struct [
children:
{
[1,1] struct [
bargap: 10
barlabels: off
barlabelsfontangle:
barlabelsfontname:
barlabelsfontsize: 10
barlabelsfontweight:
barorientation:
children:
{
[1,1] struct [
classtype: 16
dataxoffset: 0
dataxscale: 1
datayoffset: 0
datayscale: 1
datazoffset: 0
datazscale: 1
marker: s
markerevery: 1
markerfacecolor: [Matrix] 1 x 3
0 0 255
markersize: [Matrix] 1 x 0
tag:
type: hggroup
units: pixels
visible: on
xdata: [Matrix] 1 x 2
-0.54402 -0.54402
ydata: [Matrix] 1 x 2
-0.83907 -0.83907
zdata: [Matrix] 0 x 0
]
}
classtype: 3
color: [Matrix] 1 x 3
255 255 255
colorbar: struct [
classtype: 23
clim: [Matrix] 1 x 2
0 1
colorbarscale: linear
colorlevels: [Matrix] 1 x 2
0 1
colormap: [Matrix] 9 x 3 Rows[1:6] Columns[1:3]
0 0 200
21 121 255
0 199 221
40 255 185
57 255 0
170 255 0
projectsource:
{
[1,1] deter.oml
[1,2] vsm-8074.oml
[1,3] simple_plot.oml
}
projectvariables: struct [
a: 10
b: 20
c: 30
x: -0.544021111
y: -0.839071529
]
]
Comments
If the Project file has an .mat file associated with it, from where the variables will be read, and it is not located beside the Project, an empty struct under projectvariables will be generated.