Is it possible to plot all combinations of parameters automatically?

3 visualizaciones (últimos 30 días)
Teshan Rezel
Teshan Rezel el 20 de Sept. de 2022
Comentada: Matt J el 20 de Sept. de 2022
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 comentarios
Teshan Rezel
Teshan Rezel el 20 de Sept. de 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 el 20 de Sept. de 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'.

Iniciar sesión para comentar.

Respuestas (0)

Categorías

Más información sobre 2-D and 3-D Plots en Help Center y File Exchange.

Productos


Versión

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by