Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Aardvark Design Sweep
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Mikael Henriksson
Aardvark Design Sweep
Commits
11a9933d
Commit
11a9933d
authored
4 years ago
by
Mikael Henriksson
Browse files
Options
Downloads
Patches
Plain Diff
Updated csv_to_plot script.
parent
71ee2047
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
csv_to_plot.m
+30
-17
30 additions, 17 deletions
csv_to_plot.m
with
30 additions
and
17 deletions
csv_to_plot.m
+
30
−
17
View file @
11a9933d
%
% Plot results from the
%
% Read input data.
% Read input data.
in_data
=
readtable
(
'sweep_
my_divider_1_to_10
/result.csv'
);
in_data
=
readtable
(
'
../
sweep_
pe_float_2021-01-11_13:17:06
/result.csv'
);
% Extract all design names.
% Generic sweep?
design_names
=
string
(
table2array
(
unique
(
in_data
(:,
1
),
'stable'
))
);
generic_sweep
=
width
(
in_data
)
>
3
;
design_n
=
length
(
design_names
);
% Extract design names.
if
generic_sweep
designs
=
string
(
table2array
(
unique
(
in_data
(:,
1
),
'stable'
))
);
design_n
=
length
(
designs
);
else
design_n
=
1
;
end
% Generate figure plot.
figure
;
figure
;
for
n
=
1
:
design_n
for
n
=
1
:
design_n
design_name
=
design_names
(
n
);
% Generic sweep
design
=
in_data
(
table2cell
(
in_data
(:,
1
))
==
design_name
,
:);
if
generic_sweep
design_name
=
designs
(
n
);
freq_MHz
=
1000.
/
table2array
(
design
(:,
2
));
design
=
in_data
(
table2cell
(
in_data
(:,
1
))
==
design_name
,
:);
size_um2
=
table2array
(
design
(:,
3
));
freq_MHz
=
1000.
/
table2array
(
design
(:,
2
));
plot
(
freq_MHz
,
size_um2
,
'LineWidth'
,
2
);
size_um2
=
table2array
(
design
(:,
3
));
hold
on
;
plot
(
freq_MHz
,
size_um2
,
'LineWidth'
,
2
);
legend
(
designs
);
hold
on
;
% Single sweep
else
freq_MHz
=
1000.
/
table2array
(
in_data
(:,
1
));
size_um2
=
table2array
(
in_data
(:,
2
));
plot
(
freq_MHz
,
size_um2
,
'LineWidth'
,
2
);
end
end
end
xlabel
(
'Frequency MHz'
);
xlabel
(
'Frequency MHz'
);
ylabel
(
'Area um^2'
);
ylabel
(
'Area um^2'
);
grid
on
;
grid
on
;
legend
(
design_names
);
period
=
in_data
(:,
1
);
area
=
in_data
(:,
2
);
power
=
in_data
(:,
3
);
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment