Hello, I have an Edit Field box on the Design view and I opened a callback in the Code View. There is a default value in the Edit Field box that I would like to be used automatically when a user runs the app. I have this: % Value changed function: LengthEditField function LengthEditFieldValueChanged(app, event) app.L = app.LengthEditField.Value; if isempty(app.L) new_value = 3; % set default value to 3 end app.L=new_value; end But when I use this variable in an equation, it tells me that its "empty (0x0) double". How do I get it to display a value of 3 for example ?
John Williams answered .
2025-11-20

app.LengthEditField.Value = 3