Is it possible to plot all combinations of parameters automatically?

조회 수: 4 (최근 30일)
Teshan Rezel
Teshan Rezel 2022년 9월 20일
댓글: Matt J 2022년 9월 20일
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