This repository has been archived by the owner on Nov 25, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
Maybe I'm missing something? Conversion issue #9
Labels
Comments
This is probably related to MATLAB using both Fixing that, however, blows up into a lot of other issues, most of which related to the regular expressions being too greedy and also a lot of differences between the new UI components and the old ones that I didn't account for. I'll poke around and implement some fixes as I have time. Here's a fixed version of your code:
I got rid of the class enforcement of the properties because it's not really necessary for this case. And it was annoying me. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hey,
Please excuse me if this has a really easy solution but I'm farily new to matlab and coding in general.
So I've been using mlapp2classdef to convert a simple app I made in App Designer just to test if I can end up with a final standalone file that works. The sample is just an axes with a push button that plots cos(x) after it is pushed. After I run the conversion,
mlapp2classdef([], 'ReplaceAppUI, true)
I get an error saying:While setting property 'UIAxes' of class 'testclick': Value must be 'matlab.ui.control.UIAxes'. Error in testclick/createComponents (line 39) app.UIAxes = axes(app.UIFigure); Error in testclick (line 79) createComponents(app)
My file name is "testclick". Here is the code that the conversion generates from my sample.
And lastly here is the code converted just with
mlapp2classdef([])
The text was updated successfully, but these errors were encountered: