function Number_of_Plies(app, event)
value = app.NumberofPliesLaminasEditField.Value;
delete(app.TypeOfPlyLabels);
delete(app.TypeOfPlyEdidFields);
yPos = app.NumberofPliesLaminasEditField.Position(2);
for ind=1:value
app.TypeOfPlyLabels(ind) = uilabel(app.TypesofUniquePliesTab);
app.TypeOfPlyLabels(ind).HorizontalAlignment = 'right';
app.TypeOfPlyLabels(ind).Text = 'Type of Ply';
app.TypeOfPlyLabels(ind).Position = [4 yPos-ind*22 148 22];
app.TypeOfPlyEdidFields(ind) = uieditfield(app.TypesofUniquePliesTab, 'numeric');
app.TypeOfPlyEdidFields(ind).HorizontalAlignment = 'right';
app.TypeOfPlyEdidFields(ind).ValueDisplayFormat = '%.0f';
app.TypeOfPlyEdidFields(ind).Position = [164 yPos-ind*22 168 22];
end
end
4 Comments
Direct link to this comment
https://la.mathworks.com/matlabcentral/answers/373094-edit-field-labels-and-edit-field-numeric-loop#comment_516476
Direct link to this comment
https://la.mathworks.com/matlabcentral/answers/373094-edit-field-labels-and-edit-field-numeric-loop#comment_516476
Direct link to this comment
https://la.mathworks.com/matlabcentral/answers/373094-edit-field-labels-and-edit-field-numeric-loop#comment_516620
Direct link to this comment
https://la.mathworks.com/matlabcentral/answers/373094-edit-field-labels-and-edit-field-numeric-loop#comment_516620
Direct link to this comment
https://la.mathworks.com/matlabcentral/answers/373094-edit-field-labels-and-edit-field-numeric-loop#comment_516643
Direct link to this comment
https://la.mathworks.com/matlabcentral/answers/373094-edit-field-labels-and-edit-field-numeric-loop#comment_516643
Direct link to this comment
https://la.mathworks.com/matlabcentral/answers/373094-edit-field-labels-and-edit-field-numeric-loop#comment_516646
Direct link to this comment
https://la.mathworks.com/matlabcentral/answers/373094-edit-field-labels-and-edit-field-numeric-loop#comment_516646
Sign in to comment.