Is it possible to plot all combinations of parameters automatically?

4 次查看(过去 30 天)
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 个评论
Teshan Rezel
Teshan Rezel 2022-9-20
@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 2022-9-20
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'.

请先登录,再进行评论。

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 2-D and 3-D Plots 的更多信息

产品


版本

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by