How do I convert a script into an app?

27 ビュー (過去 30 日間)
Ben
Ben 約7時間 前
コメント済み: dpb 約2時間 前
Hello,
I created an app using app designer to get inputs and run a function. I was frusturated by the inability to edit the component initializations, which were grayed out. So I saved my .mlapp file to a .m file, and everything seemed to work. The trouble is, I can't convert my script back to an app. When I change the file extension to .mlapp and try to open it in App Designer, it just says error loading 'myapp.mlapp'. I ultimately want an executable somebody with no coding knowledge can click on and run. Can anyone help?
  8 件のコメント
Image Analyst
Image Analyst 約1時間 前
Yes, @dpb is right. If your initialization is not some constant value then you cannot set it in AppDesigner's properties window because what ever you set there will be the same every time you start your app. If you want it to change, like to set the date picker to today's date, or things like that, then you'll have to get or create the current value in your startup function and then apply it (set the property) there in the startup function instead of in the property window.
dpb
dpb 35分 前
It wouldn't be a bad idea to have some more flexibility like "Today's Date" as an initialization choice for DatePicker component, but it's essentially trivial to include in the startup function so I think there are more important things to work on first...

サインインしてコメントする。

回答 (0 件)

タグ

製品


リリース

R2024a

Community Treasure Hunt

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

Start Hunting!

Translated by