Creating a new function in App Designer places the new function inside of another function

2 ビュー (過去 30 日間)
Austin Burritt
Austin Burritt 2022 年 1 月 18 日
編集済み: Austin Burritt 2022 年 1 月 18 日
When I create a new function using the add function button, the function is always placed at the end of one of my other functions example:
function results = oldFunction(app)
%Code
function results = func2(app)
end
end
Cutting and pasting or moving the old function doesn't solve this issue, the next new function will still initially appear inside the same old function. I can move the new function out of the old one but it is annoying and tedious. Anyone have an idea as to why this is happening?
  4 件のコメント
Austin Burritt
Austin Burritt 2022 年 1 月 18 日
This is the only app I have under development currently, but yes it is just this app and one specific function. Through a fortunate refactor that bothersome function doesn't exist any longer in the code so I don't have plans to do more troubleshooting, I'll leave that to the support team. Opening and closing MATLAB or App Designer did not change anything, but it's possible a full computer restart could've done the trick. It wasn't in the way enough to invest many hours or thought into getting around it.

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

回答 (1 件)

Cris LaPierre
Cris LaPierre 2022 年 1 月 18 日
It shouldn't be doing this. Please try restarting MATLAB.
If the issue returns, please contact support.
  2 件のコメント
Cris LaPierre
Cris LaPierre 2022 年 1 月 18 日
In can be an inconvenience, but I would try reinstalling MATLAB. At best, the problem gets fixed, and at worst, you are back where you started.

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

タグ

製品


リリース

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by