- Open a new instance of the app but make is invisible. All properties will be default.
- Close the current instance of the app
- Make the new instance visible.
Reset or clear property values in App Designer
42 次查看(过去 30 天)
显示 更早的评论
Hello, I would like to know if someone would know how I can do so that once I press a button all the values of the properties that I have created in my application are erased and also all the tables that I have put in my application are erased as well, that is to say, that everything would be as if I had just run the application again but without having to do it.
Thank you very much in advance.
properties (Access = private)
image1 % imagen que leemos al principio de todo
fullpathname % dirección en la que tenemos guardada nuesta image1
table_Hough_circulos % Description
dibuja % variable que se usa en la función busca_centro
coordenadas_pixel % Información de los puntos del contorno en coordenadas pixel
image_patron % Imagen a del patrón del escáner
matriz_coordenadas_u % Matriz que contiene datos en píxeles en las coordenadas u
matriz_coordenadas_v % Matriz que contiene datos en píxeles en las coordenadas v
puntos_compensados % Matriz que contiene los nuevos puntos compensados y en mm
rect2 % Posición del rectángulo de recorte
XCFit % Posición de la coordenada x del círculo de best fit
YCFit % Posición de la coordenada y del círculo de best fit
RFit % Valor del radio del círculo de best fit
THETAPA % Valor del ángulo de cada punto del círculo
puntos_compensados_00 % Matriz que contiene los nuevos puntos compensados y en mm referidos a el punto (0,0) en función de la aproximación al BestFit
datos_MMC % Almacenar datos de la máquina de medir por coordenadas
resultados_promediado % Resultados procedentes del promediado
MMC_C % Datos de la matriz de coordenadas de forma continua
MMC_D % Datos de la matriz de coordenadas de forma discreta
end
0 个评论
采纳的回答
Adam Danz
2019-11-3
编辑:Adam Danz
2019-11-3
The callback to your app button can do 3 things.
Here's an answer to nearly the same question that demonstrates this callback function.
2 个评论
Adam Danz
2019-11-3
An alternative is to reset all properties within your "reset" button callback function. You'll have to go through each app component and set the default properties.
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Develop Apps Using App Designer 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!