save changes in variable pass in timer function
显示 更早的评论
I want to change the value of a variable ( Precio) that i pass to a function in a timer. In the following call that variable don't update. How can update this variable. Here is the function of my timer and the arguments. Thanks
function leer_ofertas_nuevas( hObject, eventdata,Fecha, Contrato, Zona, Agente, Unidad, Precio, Cantidad, handles)
6 个评论
Jan
2021-7-19
Please post some code, which reproduces the situation you have. Currently you show us, how the callback function is defined, but not its code.
FRANCISCO JAVIER
2021-7-19
FRANCISCO JAVIER
2021-7-20
Walter Roberson
2021-7-20
When Precios is changed in the code, have your code store a copy of it in the UserData property of the timer object, and do not pass it in. Have the function pull the value out of the UserData of hObject.
FRANCISCO JAVIER
2021-7-21
回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Programmatic Model Editing 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!