How to design GUI in MATLAB using AppDesigner - create a Simple Calculator

  Рет қаралды 26,831

Programmer World

Programmer World

Күн бұрын

Пікірлер: 30
@alikocaman5858
@alikocaman5858 5 жыл бұрын
you are a big man dude.You save my life thanks ++
@prasadadavi6618
@prasadadavi6618 3 жыл бұрын
Good one sir🙏
@riricruz9082
@riricruz9082 3 жыл бұрын
So good at explaining and very helpful
@sunilgiri7718
@sunilgiri7718 4 жыл бұрын
Hello there! Can you please guide me on 'how to control, I mean access and edit the values of an n-D look up table which is present there in a Simulink model' using the callback function in MATLAB App Designer. Thank you.
@architabhattacharjee3400
@architabhattacharjee3400 3 жыл бұрын
Hello I am getting an error stating "Brace indexing is not supported for variables of this type. " After I got error with TextArea I have written as "app.EditField.Value = [app.EditField.Value{1} event. Source. Text] ; Can you please help?
@ProgrammerWorld
@ProgrammerWorld 3 жыл бұрын
Complete code of this project is shared in the below link for reference: programmerworld.co/matlab/design-a-gui-in-matlab-using-appdesigner-create-a-simple-calculator/ I hope it is useful. Cheers Programmer World programmerworld.co -
@victoriamccrary50
@victoriamccrary50 2 жыл бұрын
I had to do this instead using an EditField: % Saves the desired value into result result = [app.EditField.Value '1']; % Concatenates what's already in the edit field with result app.EditField.Value = result;
@vinaykvk1760
@vinaykvk1760 3 жыл бұрын
How can I take the input values as complex numbers
@dhkhan4613
@dhkhan4613 3 жыл бұрын
Hello sir I want to find root of arithmatic polynomial expression, in matlab appdesigner . My code is like that, Input1=app.Input2EditField.Value; Input2=app.Input2EditField.Value; . . . x=[Input1,Input2,....]; C=roots(x); app.textArea.Value=C; But It doesnot work ?Can you helpme please?
@nikhilpatil42
@nikhilpatil42 3 жыл бұрын
Is there any tutorial available to run GUI with already written scripts?
@alejandro_bme
@alejandro_bme 6 жыл бұрын
Good video, thanks for sharing. I have a question. How can you create a button that display a warning with a sound or beep? like for example, i have a temperature reader, I can show the room temperate but i would like to set an alarm if temperature reaches 30 celcius.
@ProgrammerWorld
@ProgrammerWorld 6 жыл бұрын
Please watch my below video. This would help you to design the alarm. How to create an Alarm Clock in MATLAB App Designer in Simple Steps? kzbin.info/www/bejne/e3mpnqR9n7mWn9k If you still have any questions then let me know.
@soupayandas1847
@soupayandas1847 Жыл бұрын
I want to make a button which can delete only the last entry.Can anyone help me with the function?
@ProgrammerWorld
@ProgrammerWorld Жыл бұрын
Just use "extractBefore" on "app.TextArea.Value" by leaving the last value. Then update the value back to this. Something like below would work: >> app.TextArea.Value = extractBefore(app.TextArea.Value, strlength(app.TextArea.Value)); Details of this video is also available at: programmerworld.co/matlab/design-a-gui-in-matlab-using-appdesigner-create-a-simple-calculator/
@bibekgiri3015
@bibekgiri3015 5 жыл бұрын
Error using horzcat Dimensions of arrays being concatenated are not consistent. I am getting this problem in first value. Solution?
@ProgrammerWorld
@ProgrammerWorld 5 жыл бұрын
I am not sure why you are using horzcat. To concetanate and form a string you can directly use big square brackets [ ]. However, for the error you are getting, I guess you are not converting all the elements in horzcat to same datatype or are of same size. Like probably you are missing num2string for certain numerical values or are having variables with different dimensions. If you can send your complete code then I can quickly check and let you know about the issue.
@adarshmishra6379
@adarshmishra6379 6 жыл бұрын
If I want to include a button named 'Advance' such that when I click on it ANOTHER app(AdvncedCalculator) with more function(sin, cos etc) opens. Similarly on this Advanced Calculator I want to include a button named 'Simple' such that when I click on it the PREVIOUS app(SimpleCalculator) opens again. How to make this?
@ProgrammerWorld
@ProgrammerWorld 6 жыл бұрын
I understand your requirement. So, basically what you can do is first design your calculator. And then from callback of your ‘Advance’ button you control the visibility of the buttons you want to display.
@ProgrammerWorld
@ProgrammerWorld 6 жыл бұрын
In fact you can also control the text of the button in the callback and rename/ toggle the name between ‘Advance’ and ‘Basic’ based on the usage. I will try to make a video to show this today. Will let you know once I create it.
@ProgrammerWorld
@ProgrammerWorld 6 жыл бұрын
If needed you can watch my below video: kzbin.info/www/bejne/maeWmX6Vq6iBnck This video shows how you can toggle between simple and advance calculator buttons.
@adarshmishra6379
@adarshmishra6379 6 жыл бұрын
thanks for such quick response.
@shubhamforeverything
@shubhamforeverything 5 жыл бұрын
app.TextArea.Value=[app.TextArea.Value{1} event.Source.Text]; Showing error what to do bro..??
@ProgrammerWorld
@ProgrammerWorld 5 жыл бұрын
What is the error message? Can you copy the complete function of your code which is giving error?
@shubhamforeverything
@shubhamforeverything 5 жыл бұрын
@@ProgrammerWorld No appreciate method, property,or field'TextArea' for class 'SIMPLE_CALCULATOR'.
@ProgrammerWorld
@ProgrammerWorld 5 жыл бұрын
@@shubhamforeverything From the error message, it seems that the name of the widget in your gui is not TextArea but something else. So, the tool throws the error that the variable not found. Please check the name of text box in the layout. Also please note, the name may be case sensitive. So add the letters in the same case.
@angelgabrielortiz-rodrigue2937
@angelgabrielortiz-rodrigue2937 5 жыл бұрын
Where can I find documentation for app designer?
@ProgrammerWorld
@ProgrammerWorld 5 жыл бұрын
You can check it on Matlab help or you can refer to the respective webpage with the below link: mathworks.com/help/matlab/app-designer.html Hope it helps. Cheers.
@robertwolak5282
@robertwolak5282 5 жыл бұрын
Vey good video, but if You want to multiply 2 and 6, You won't get a summary called: "2*6=12", but just "12", so You could modify Your code in "=" button, it will be just: app.TextArea.Value = [num2str(eval(app.TextArea.Value{1}),'%.3f')];
@ProgrammerWorld
@ProgrammerWorld 5 жыл бұрын
Yes, you are right. But I also wanted to retain and show the operation done to get a result. So, it displays complete 2*6=12. However, you are right. We could only display the final result also which is 12. Thanks for your comment.
MATLAB AppDesigner | Tutorial 1 | Getting Started and Hello World app
7:17
1% vs 100% #beatbox #tiktok
01:10
BeatboxJCOP
Рет қаралды 67 МЛН
The Best Band 😅 #toshleh #viralshort
00:11
Toshleh
Рет қаралды 22 МЛН
Quando eu quero Sushi (sem desperdiçar) 🍣
00:26
Los Wagners
Рет қаралды 15 МЛН
How to treat Acne💉
00:31
ISSEI / いっせい
Рет қаралды 108 МЛН
How to Build a GUI in MATLAB using App Designer
10:26
MATLAB
Рет қаралды 201 М.
MATLAB app designer ( import data using a dialog box , working with Text Area and Text Edit Field )
12:59
Darci ー On My Own (Tik tok Remix Neutrino)
5:53
Tsukiyomi
Рет қаралды 36 МЛН
Introduction to GUI in MATLAB | Calculator in GUI in MATLAB || Urdu
30:58
Robocam: MATLAB App-Designer Calculator-Code view | part2
31:10
RoboCam Edu
Рет қаралды 10 М.
Log Temperature Data from Arduino into MATLAB
7:32
MATLAB
Рет қаралды 29 М.
Getting Started with App Designer
4:50
MATLAB
Рет қаралды 57 М.
1% vs 100% #beatbox #tiktok
01:10
BeatboxJCOP
Рет қаралды 67 МЛН