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

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

Programmer World

Programmer World

Күн бұрын

Пікірлер: 30
@alikocaman5858
@alikocaman5858 4 жыл бұрын
you are a big man dude.You save my life thanks ++
@prasadadavi6618
@prasadadavi6618 3 жыл бұрын
Good one sir🙏
@riricruz9082
@riricruz9082 2 жыл бұрын
So good at explaining and very helpful
@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.
@sunilgiri7718
@sunilgiri7718 3 жыл бұрын
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;
@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.
@vinaykvk1760
@vinaykvk1760 3 жыл бұрын
How can I take the input values as complex numbers
@nikhilpatil42
@nikhilpatil42 3 жыл бұрын
Is there any tutorial available to run GUI with already written scripts?
@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?
@soupayandas1847
@soupayandas1847 10 ай бұрын
I want to make a button which can delete only the last entry.Can anyone help me with the function?
@ProgrammerWorld
@ProgrammerWorld 9 ай бұрын
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.
@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.
@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.
Building MATLAB Apps with App Designer
28:31
MATLAB
Рет қаралды 98 М.
这三姐弟太会藏了!#小丑#天使#路飞#家庭#搞笑
00:24
家庭搞笑日记
Рет қаралды 125 МЛН
Nastya and balloon challenge
00:23
Nastya
Рет қаралды 54 МЛН
Шок. Никокадо Авокадо похудел на 110 кг
00:44
Magic or …? 😱 reveal video on profile 🫢
00:14
Andrey Grechka
Рет қаралды 86 МЛН
How to design a simple Game in MATLAB using App Designer?
18:49
Programmer World
Рет қаралды 27 М.
MATLAB GUI simple calculator in detail
16:59
LecTrick
Рет қаралды 33 М.
How to Build a GUI in MATLAB using App Designer
10:26
MATLAB
Рет қаралды 191 М.
6 UI Hacks I Wish I Knew As A Beginner
11:11
Tim Gabe
Рет қаралды 806 М.
MATLAB AppDesigner | Tutorial 2 | Simple Calculator (Newton's 2nd Law)
7:10
EASILY Create Awesome Animated Tickers in Framer
16:40
DesignCourse
Рет қаралды 4,3 М.
这三姐弟太会藏了!#小丑#天使#路飞#家庭#搞笑
00:24
家庭搞笑日记
Рет қаралды 125 МЛН