Hello Everyone, I’m working on app designer and I wish to create an app to do some calculus but the problem I have it that some variables like “Nt” or “Nv” are been unused and this doesn’t permit the calculation, what can I do to overcome this please 🙏🏾🙏🏾
Unused variables in a function should not cause any issue or error. At best it will throw some warning messages. Anyway, you can also avoid initializing these variables (Nt, Nv). If these variables are defined as output of some other computation/ function then simply put tilde (~) symbol instead of variable name. This way you can avoid initializing these variables. Say in below example: >> a=2; >> b=3; Instead of : >> Nt = a+b Nt = 5 Use: >> [~] = a+b Hope the above helps. For reference, details shown in this video is also shared in the below link: programmerworld.co/matlab/how-to-design-radio-button-check-boxes-and-drop-down-menu-in-matlab-app-designer/ Cheers Programmer World programmerworld.co -
Thank you for the video. Is there a way we can add a common text feild in several tabs?For example I have 3 tabs and 3 text feilds to give output in my design but I want to insert a common output message feild in all the 3 tabs. How can I link them?
There is no direct way to link 3 text fields in App Designer. To solve your requirement, what you can do is to assign the output value of all the three text fields using same variable in your callback code. To automate this what you can do is to define update callback function for any of the text field. And in this function you can assign other text fields output values as well. Take an internal class variable to do all these stuffs. It will be easy. The above should be very easy to implement. I hope you succeed.
The details and code shown in this video is also available in the below webpage for reference: programmerworld.co/matlab/how-to-design-radio-button-check-boxes-and-drop-down-menu-in-matlab-app-designer/ Cheers Programmer World programmerworld.co -
Thanks 😀. Regarding transfer function, I think it should be simple. You can take the numerator and denominator separately as input from text boxes in your gui. And then you can use tf matlab command in your callback code to convert it into transfer function. The details of tf command can be found in below link : mathworks.com/help/control/ref/tf.html I hope the above explanation is helpful to you.
You are fabulous, thanks a lot for the video. it solved many of my problems in my code
best video on matlab app builder yet. can you do one wit the toggle button?
Thanks for your comments.
For toggle button usage you can refer to my below video :
th-cam.com/video/CUvby20tExk/w-d-xo.html
I hope it is helpful.
loved this one too, thanks for this video!
Thanks for video!
Hello Everyone, I’m working on app designer and I wish to create an app to do some calculus but the problem I have it that some variables like “Nt” or “Nv” are been unused and this doesn’t permit the calculation, what can I do to overcome this please 🙏🏾🙏🏾
Unused variables in a function should not cause any issue or error. At best it will throw some warning messages.
Anyway, you can also avoid initializing these variables (Nt, Nv). If these variables are defined as output of some other computation/ function then simply put tilde (~) symbol instead of variable name. This way you can avoid initializing these variables.
Say in below example:
>> a=2;
>> b=3;
Instead of :
>> Nt = a+b
Nt =
5
Use:
>> [~] = a+b
Hope the above helps.
For reference, details shown in this video is also shared in the below link:
programmerworld.co/matlab/how-to-design-radio-button-check-boxes-and-drop-down-menu-in-matlab-app-designer/
Cheers
Programmer World
programmerworld.co
-
Very helpful, thanks.
Thank you for the video. Is there a way we can add a common text feild in several tabs?For example I have 3 tabs and 3 text feilds to give output in my design but I want to insert a common output message feild in all the 3 tabs. How can I link them?
There is no direct way to link 3 text fields in App Designer.
To solve your requirement, what you can do is to assign the output value of all the three text fields using same variable in your callback code.
To automate this what you can do is to define update callback function for any of the text field. And in this function you can assign other text fields output values as well. Take an internal class variable to do all these stuffs. It will be easy.
The above should be very easy to implement. I hope you succeed.
thank you and i have small code i want to design gui for it can you help me
Can you please share some references for this design?
The details and code shown in this video is also available in the below webpage for reference:
programmerworld.co/matlab/how-to-design-radio-button-check-boxes-and-drop-down-menu-in-matlab-app-designer/
Cheers
Programmer World
programmerworld.co
-
Amazing video !!!i have a question do you know how to enter a transfer function to work with this ?
Thanks 😀.
Regarding transfer function, I think it should be simple. You can take the numerator and denominator separately as input from text boxes in your gui. And then you can use tf matlab command in your callback code to convert it into transfer function.
The details of tf command can be found in below link :
mathworks.com/help/control/ref/tf.html
I hope the above explanation is helpful to you.
No te entendí nada jajajaja yo hablo español, pero buen trabajo. Gracias :)