How to change methods access to public in App Designer

29 ビュー (過去 30 日間)
Norma
Norma 2024 年 4 月 29 日
コメント済み: Cris LaPierre 2024 年 4 月 29 日
Hello, I'm currrently creating an app in App Designer MATLAB. I'm trying to change the header names of a table that is being read in. There are 27 columns so my approach is to read in a MAT file with the header names. App Designer is making it difficult to load the file. I saw an example where the method was switched to public instead of private to make it accessible. How is this possible? The area is grayed out and I'm unsure how to switch it to public.

回答 (1 件)

Cris LaPierre
Cris LaPierre 2024 年 4 月 29 日
To Answer your specific question, use the interface to create a public function.
However, I'd be surprised if you needed to do this to load a file. Can you share your current code for reading the file along with a sample file (copy/paste the code; use the paperclip icon to attach a sample file).
  4 件のコメント
Norma
Norma 2024 年 4 月 29 日
It is within the same folder as the app along with other files that have no problem being read in. I'm unsure why the MAT file is the only one giving an error.
Cris LaPierre
Cris LaPierre 2024 年 4 月 29 日
Share the actual error message (all the red text).

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

カテゴリ

Help Center および File ExchangeDevelop Apps Using App Designer についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by