Is it possible to plot all combinations of parameters automatically?

4 views (last 30 days)
Hi folks,
I am using regionprops to generate all the parameters to do with a binary mask.
Is there an automated way to generate plots of each of the combinations of these parameters? Such as area with orientation, circularity etc...
I've tried to do this manually but am worried I might have missed a combination!
  5 Comments
Teshan Rezel
Teshan Rezel on 20 Sep 2022
@KSSV thanks! I've tried the following but get the error below due to the use of legend. May I please ask what I'm doing wrong?
Also, the reason I wanted to initially plot each graph seperately and not on the same plot was because of the scale of each graph being different. Is there a way to automatically scale them or plot them on a yy-axis based on their scale?
Thanks
figure
hold on
for i = 1
for j = 1:15
if i~=j
plot(myData{i}, myData{j});
xlabel(myIDData{i});
legend(myIDData{j});
end
end
end
hold off
myData = {myArea, MaxAL, MinAL, Eccen, Orien, Circ, EqDiam, Sol, Extent, newPerim, oldPerim, ...
minFeretDiam, maxFeretDiam, minFeretAngle, maxFeretAngle};
myIDData = {AreaID, MaxALID, MinALID, EccenID, OrienID, CircID, EqDiamID, SolID, ExtentID, ...
newPerimID, oldPerimID, minFeretDiamID, maxFeretDiamID, minFeretAngleID, maxFeretAngleID};
AreaID = 'Area';
MaxALID = 'Major Axis Length';
MinALID = 'Minor Axis Length';
EccenID = 'Eccentricity';
OrienID = 'Orientation';
CircID = 'Circularity';
EqDiamID = 'Equiv. Diameter';
SolID = 'Solidity';
ExtentID = 'Extent';
newPerimID = 'New Perimeter';
oldPerimID = 'Old Perimeter';
minFeretDiamID = 'Min Feret Diameter';
maxFeretDiamID = 'Max Feret Diameter';
minFeretAngleID = 'Min Feret Angle';
maxFeretAngleID = 'Max Feret Angle';
Matt J
Matt J on 20 Sep 2022
I've tried the following but get the error below
I don't see where you've included the error.
Also, the reason I wanted to initially plot each graph seperately and not on the same plot was because of the scale of each graph being different
If you don't want them on the same plot, omit 'hold on'.

Sign in to comment.

Answers (0)

Categories

Find more on 2-D and 3-D Plots in Help Center and File Exchange

Products


Release

R2022b

Community Treasure Hunt

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

Start Hunting!