No video

What Is Fuzzy Logic? | Fuzzy Logic, Part 1

  Рет қаралды 278,783

MATLAB

MATLAB

Күн бұрын

This video introduces fuzzy logic and explains how you can use it to design a fuzzy inference system (FIS), which is a powerful way to use human experience to design complex systems. Designing a FIS does not require a model, so it works well for complex systems with underlying mechanisms that are not fully known. If you have some experience and intuition about the system, then you can develop and implement the rules.
Fuzzy Logic Toolbox: bit.ly/38xNy7E...
--------------------------------------------------------------------------------------------------------
Get a free product trial: goo.gl/ZHFb5u
Learn more about MATLAB: goo.gl/8QV7ZZ
Learn more about Simulink: goo.gl/nqnbLe
See what's new in MATLAB and Simulink: goo.gl/pgGtod
© 2022 The MathWorks, Inc. MATLAB and Simulink are registered trademarks of The MathWorks, Inc.
See www.mathworks.com/trademarks for a list of additional trademarks. Other product or brand names may be trademarks or registered trademarks of their respective holders.

Пікірлер: 96
@trendyprimawijaya314
@trendyprimawijaya314 3 жыл бұрын
Sir, everytime you upload matlab tech talk video, it always relevant to my current studies. It's like you always hear my inner voice: "can someone explain about this and that to me, clearly and catchy?". Then, i became more confidence that I am in the rght learning path. Very big thanks, sir. 💙
@tonnirvana
@tonnirvana 3 жыл бұрын
Hello Mr.Douglas 😊
@BrianBDouglas
@BrianBDouglas 2 жыл бұрын
Hello!
@aleksandarristic2184
@aleksandarristic2184 2 жыл бұрын
@@BrianBDouglas make more videos mr Douglas
@GiovanniBR1234
@GiovanniBR1234 3 жыл бұрын
One of my favorite subject explained by one of my favorite Controls teacher. Amazing! Wonder if you're going to introduce more advanced topics on the series, especially type-2 fuzzy logic
@BrianBDouglas
@BrianBDouglas 3 жыл бұрын
I'm not sure yet. I'm working on the last video right now and I want to cover fuzzy trees, type-2, and training a fuzzy inference system using data. It's turning out to be too much information for a single video so I'm going to start cutting things out. I don't yet what will stay. Thanks for the comment!
@GiovanniBR1234
@GiovanniBR1234 3 жыл бұрын
@@BrianBDouglas All of these topics seem very interesting either way. Really looking forward to it!
@AnilTasdemirT
@AnilTasdemirT 11 ай бұрын
Wow, just wow! Outstanding explanation! I have just started watching your videos and they are both detailed and understandable. Thank you for all 🙏
@mukeshmann3008
@mukeshmann3008 Жыл бұрын
Great Explanation ! One doubt is that when you you do defuzzification of fuzzy variables= [0 0.9 0.1] Don't we chop first graph at 0% , second graph ( Medium) at 90% and last one at 10 % . Why you have chopped the first graph( low membership) at 10 % it should be 0%. Require your expert comments on this .
@user-qi9zo5ge8r
@user-qi9zo5ge8r 7 ай бұрын
I just started studying on this topic and saw your video. A great video to understand the logic. Thank you !
@BrianBDouglas
@BrianBDouglas 6 ай бұрын
I'm glad it was a good introduction for you
@ruffianeo3418
@ruffianeo3418 22 күн бұрын
Over the decades, I dabbled with fuzzy logic a couple of times. The base modus operandi of fuzzy logic aside, it is always interesting to think about the way, fuzzy logic is presented to a user within a programming language. Being currently in one of my iterations, thinking about fuzzy logic implementations, I came to the conclusion, that the "IF ... THEN ... " syntax is not really intuitive at all. The video uses the mandami approach, as opposed to the TKS approach. Both of which differ in the THEN term. One of the benefits of Common Lisp is its macro system. And while I started out with the "IF THEN" syntax, I finally converged on something I find more... true to what is actually happening: As an example (for your amusement and me getting some productive feedback, maybe), here the "bot" implementation for a silly and simple dice game, where the bot needs to choose between 2 actions, depending on the game state, which is a 4 tuple of values. The function uses my nifty "fuzzy" macro... lets see if people can intuit, how the function works... (defun ddg-fuzzy-bot-choose-action (opponent-score own-score turn-score last-roll) (let ((low-roll (define-f-var '(1 1.0) '(4 0.0))) (high-roll (define-f-var '(2 0.0) '(5 1.0))) (behind (define-f-var '(-20 1.0) '(0 0.0))) (ahead (define-f-var '(0 0.0) '(20 1.0))) (even (define-f-var '(-5 0.0) '(0 1.0) '(5 0.0))) (high-stake (define-f-var '(2 0.0) '(10 1.0))) (low-stake (define-f-var '(0 1.0) '(4 0.0)))) (let ((score-diff (- (+ own-score turn-score) opponent-score))) (fuzzy ;; associate input-variables with membership functions ((turn-score (low-stake high-stake)) (last-roll (low-roll high-roll)) (score-diff (behind even ahead))) ;; define he fuzzy rules ((should-roll (or (and ahead low-stake low-roll) behind (and even low-roll))) (should-stop (and ahead (or high-stake high-roll)))) ;; use the fuzzy output variables. (values (if (>= should-roll should-stop) (then :roll) (else :stop)) (list :should-roll should-roll :should-stop should-stop)))))) The FUZZY macro helps with associating membership-functions to input variables and to define the rules for its output variables "should-roll" "should-stop" in a lispy way. The third part in that macro is just the code, which uses the computed output variables for its decision making. Behind the scenes, the OR and AND operations are simply replaced with MAX and MIN, respectively. (should-stop (and ahead (or high-stake high-roll))) would be written traditionally with something like this: IF ahead AND (high-stake OR high-roll) THEN rather should-stop And I would also have to define a set of membership functions for the "should-stop" fuzzy variable. It adds a lot of complexity, which might not often be required. Also I find it difficult to come up with those membership functions for the outputs.
@eumesmo5306
@eumesmo5306 2 жыл бұрын
every time i strumble upon a new video and see master douglas talking I know beforehand the video will be awesome!
@sachinkumar-el5lf
@sachinkumar-el5lf 3 жыл бұрын
Hi sir, big fan of your teaching. Fell in love with control systems after watching your videos. Thank you so much sir❤
@ProfKofiPhD
@ProfKofiPhD Жыл бұрын
Easy to understand. Great job, mate!
@snowinnov
@snowinnov 2 жыл бұрын
Very interesting talk, and easy to understand! Just to say the fuzzification process explained here is a little bit different from my understanding. The fuzzificaion is to convert a crisp number into a fuzzy set. It can be singleton or non-singleton. Your explanation is based on singleton, and taking one step further to get the compatibility (which is then used as rule firing strength) to rule antecedents. But, anyway, I would say your explanation is good enough as an illustration for beginners to get some ideas about how the whole fuzzy system works. Thanks for sharing these. It’s really useful!
@juliansampedro
@juliansampedro 7 сағат бұрын
Thank you sir for such an excellent video, to the point and for once about fuzzy logic explained in a very clear way
@anisharaj4601
@anisharaj4601 4 ай бұрын
explaining the steps with the example cleared most of my doubts. Thank you!
@looper6394
@looper6394 3 жыл бұрын
take all of my data and tell me the theory of everything, thank you
@isharaudayangawimalaweera3642
@isharaudayangawimalaweera3642 2 жыл бұрын
Simply Marvelous job Mr. Brian. Thank you very much
@sigma_delta
@sigma_delta Жыл бұрын
fuzzy here, fuzzy there, my brain goes fuzzy fuzzy. hahaha
@mohamadalikhani2665
@mohamadalikhani2665 2 жыл бұрын
Man, You really ROCK!!! It is very easy to understand, despite reading books😊
@MATLAB
@MATLAB 2 жыл бұрын
Happy to help!
@snktshrma
@snktshrma 3 жыл бұрын
Was eagerly waiting for this! Great video
@abs80900
@abs80900 2 жыл бұрын
really clear and easy to follow explanation, thank you so much!
@user-me9jw8zc3g
@user-me9jw8zc3g 2 жыл бұрын
Fuzzy logic = Daily way of thinking! ♡♧◇☆♡
@sarahdecker1
@sarahdecker1 2 жыл бұрын
Awesome video. Very effective teaching of the subject. Thank you!
@mark-qi6di
@mark-qi6di 3 жыл бұрын
13:40 Interesting that there is never 0 risk...
@hjcho8462
@hjcho8462 3 жыл бұрын
Always deeply appreciate ur series. Thank u so much
@enginufuk
@enginufuk 4 ай бұрын
It's extremely easy to follow you. Please keep it that way. 🙏
@sadie1837
@sadie1837 Жыл бұрын
Thanks for this video. It has given me a better understanding of fuzzy logic.
@wokguysrandomstuff5535
@wokguysrandomstuff5535 2 жыл бұрын
The explanations are so clear!
@panyachutisiriwong6200
@panyachutisiriwong6200 2 жыл бұрын
I truly love this clip. Inspire me a lot for work. - from Thailand
@charlesokoh3373
@charlesokoh3373 3 жыл бұрын
Waiting for Part 2
@jlleluc4s
@jlleluc4s 3 жыл бұрын
A talent of control explanation!
@josephcorleto1853
@josephcorleto1853 Жыл бұрын
If you ever make a full video course on this for control engineering people, please take my money.
@eddiemetalblood1
@eddiemetalblood1 3 жыл бұрын
Great video!
@cogofknowledge6142
@cogofknowledge6142 Жыл бұрын
THE BATLOGIC CONTROLLER
@maxzim-dude
@maxzim-dude 4 ай бұрын
good job Brian
@jasonkim1642
@jasonkim1642 3 жыл бұрын
Thanks a lot! Quite sad that fuzzy logic application do not get much credits industry-wise nowadays.
@gustavohenriquezeni350
@gustavohenriquezeni350 2 жыл бұрын
Hey, i'm a computer engineering student at UTFPR Curitiba and i've participated in extension courses in the past that were basically translating videos like these to portuguese, submitting the subtitles to the platform and then having it available in multiple languages. We'd then receive a certain amount of hours in complementary activities that we require to graduate. Is there an e-mail or form that one could use to get in contact with matlab or the teacher responsible for these videos to formalize an extension course inside UTFPR to subtitle these four videos to portuguese? I'm sure this material would help a ton of students all across Brazil and many more countries!
@SungBySaheba
@SungBySaheba 4 ай бұрын
Amazing video
@iramkumar78
@iramkumar78 2 жыл бұрын
Fuzzy Logic is multi valued language with membership functions. Red Pill. Matrix Crew. Topology.
@Aryan-dq1ll
@Aryan-dq1ll Жыл бұрын
Brian Douglas is a boon for people who want to learn Control Systems
@r3dat29e
@r3dat29e 3 жыл бұрын
Comprehensive and simple.
@surflaweb
@surflaweb 2 жыл бұрын
Great explanation.
@ahmedabdelkader31
@ahmedabdelkader31 Жыл бұрын
Great work
@bonfaceosuka
@bonfaceosuka Жыл бұрын
Amazing tutorial
@mohamedhabas7391
@mohamedhabas7391 Жыл бұрын
I failed fuzzy logic in Uni :) Still best course i took ;)
@MALEKBAFADHLAKE
@MALEKBAFADHLAKE 2 жыл бұрын
great explanation
@dr.alikhudhair9414
@dr.alikhudhair9414 Ай бұрын
Thank you
@yeachanchoi449
@yeachanchoi449 Ай бұрын
Fantastico!
@zapatazapata6414
@zapatazapata6414 2 жыл бұрын
Brain is the OG
@drbonesshow1
@drbonesshow1 2 жыл бұрын
When fuzzy becomes less fuzzy: Consider the Twilight Zone episode where the banker is ready to grant a loan, but doesn't know that the borrower wants to bet the loan on several horse races. That is, until Hector B. Poole who can read minds overhears the borrower's thoughts in A Penny For Your Thoughts.
@khristianss
@khristianss 3 жыл бұрын
gracias!
@richardbleriot7613
@richardbleriot7613 3 жыл бұрын
Thanks For the video. Can I apply it on online gambling games😅😅?
@abims01
@abims01 Жыл бұрын
Well done Mr. Douglas. Please, I require serious help with my project. I am working on intelligent traffic light system using a fuzzy inference engine. Please, how will a fuzzy logic program be written and connected to a traffic light system?
@omarteffahi7048
@omarteffahi7048 Жыл бұрын
Thanks for the explanation But how to know where the centroid of the shape should be ?
@andreseajc
@andreseajc Жыл бұрын
here! take my like!
@georgyurumov8095
@georgyurumov8095 10 ай бұрын
Really great explanations of a very fuzzy topic!!! Is there a link to the matlab banking example in the video and to the second part of this series?
@BrianBDouglas
@BrianBDouglas 10 ай бұрын
Here's the 2nd part: kzfaq.info/get/bejne/eaiEeLl31c7aXXk.htmlsi=U1kGZXK5ScJ2cZJS. And I wrote up the banking example script but didn't share it. Here is the tipping example though! www.mathworks.com/help/fuzzy/working-from-the-command-line.html. Hope that helps!
@georgyurumov8095
@georgyurumov8095 10 ай бұрын
thank you. have you tried coding it in python?@@BrianBDouglas
@Yogeeswar_Thumati
@Yogeeswar_Thumati 8 ай бұрын
A good video ❤
@DerHansDaselbst
@DerHansDaselbst 2 жыл бұрын
Tanks a lot!
@1.4142
@1.4142 2 жыл бұрын
Fuzzy logic was a bear. Fuzzy logic had 0.2 hairiness.
@vtoo_ir
@vtoo_ir 2 жыл бұрын
Thanks
@nomanziad3314
@nomanziad3314 Жыл бұрын
Nice!
@drbonesshow1
@drbonesshow1 2 жыл бұрын
The world is full of fuzzy logic people.
@power-max
@power-max 3 жыл бұрын
How is this different from point systems (like XP, health, etc) in videogames or analog control systems? Are those both examples of 'fuzzy logic'?
@xxnotmuchxx
@xxnotmuchxx 10 күн бұрын
is there a fuzzy logic playlist?
@answerman9933
@answerman9933 Жыл бұрын
Is this like PID: proportional, integral, differential?
@abousamidjziri724
@abousamidjziri724 3 жыл бұрын
Thank you And what about Neuro fuzzy
@arrow4redemption
@arrow4redemption 2 жыл бұрын
pls how can i resolve this fuzzy Error using FuzzyInferenceSystem (line 288) min is a script. Error in mamfis (line 165) fis = fis@FuzzyInferenceSystem(varargin{:}); Error in fuzzy (line 30) action = mamfis('Name','Untitled');
@heliamoosavi1825
@heliamoosavi1825 2 жыл бұрын
Can anyone tell me what Abbreviation NDS stands for ?
@AliHosseiniLaqa
@AliHosseiniLaqa 7 ай бұрын
Awsome , thank u , could u plz give us these presentation pdfs or powerpoints ?
@BrianBDouglas
@BrianBDouglas 7 ай бұрын
I didn't create a pdf or slides of the video. Sorry.
@AliHosseiniLaqa
@AliHosseiniLaqa 7 ай бұрын
Ok , i thought there is a powepoint or sth you are presenting . ​@@BrianBDouglas
@AliHosseiniLaqa
@AliHosseiniLaqa 7 ай бұрын
​@@BrianBDouglasby the way is there any way that i can talk to you ?
@NBScienceGuy
@NBScienceGuy 2 жыл бұрын
This was still too fuzzy for us!
@orunoawhie5695
@orunoawhie5695 11 ай бұрын
Just give good tips men..
@oldcowbb
@oldcowbb Жыл бұрын
can we say fuzzy logic is a kind of machine learning?
@akshaydarekar5863
@akshaydarekar5863 3 жыл бұрын
Sow how convert the 46% to binary again
@EngGear
@EngGear 3 жыл бұрын
Does fuzzy logic deny the law of non excluded middle?
@alexanderskusnov5119
@alexanderskusnov5119 3 жыл бұрын
According to physics the particles are always probabilities.
@edvanderschuit
@edvanderschuit 6 ай бұрын
Ok
@basertech5222
@basertech5222 2 жыл бұрын
Lütfü Aliasker Zade
@hieudotrung8616
@hieudotrung8616 11 ай бұрын
How are you caculated 46 percent% ?
@sethmobit
@sethmobit 8 ай бұрын
Finally I got it! How as him said, 46 is the X axis of centroid of the form that represents 10% of the trapezium of low membership and 90% of medium membership, right? The X axis of the centroid can be obtained by the formula: x = x1 + (x2-x1) * (A2/(A1+A2)) where: - x1 is the x-axis of centroid of trapezium slice; - x2 is the x-axis of centroid of triangle slice; - A1 is the area of trapezium slice; - A2 is the area of triangle slice; The x-axis of centroid of the forms can be obtained adding the bigger x point with the smaller x point and dividing by 2. The trapezium starts at 0 and goes to 50, so (50+0)/2 = 25. The triangle starts at 25 and goes to 75, so (75+25)/2 = 50. We have x1=25 and x2=50. Now we calculate the whole area of trapezium by adding the bases and multiplying by the height/2. The smaller base have 25 width, the bigger have 50 width and the height is 100. So (50+25)*(100/2) = 3750. As we need only 10% of this area, we got A1 = 375. The whole area of the triangle is base times height divided by 2. So, (50*100)/2 = 2500. As we need only 90%, we got A2 = 2250. Now, we replace the formula: x = x1+(x2-x1)*(A2/(A1+A2)) x = 25+(50-25)*(2250/(375+2250)) x = 25+25*(2250/2625) x = 25+25*0.8571 x = 25+21.42 x = 46.42
@StefanBrock_PL
@StefanBrock_PL 2 жыл бұрын
Nice introduction without mathematics :-)
@drbonesshow1
@drbonesshow1 2 жыл бұрын
You are Brian? Or are your really Brian?
@dantero_
@dantero_ Жыл бұрын
i do not understand why %46 for this example: 12:01
@dantero_
@dantero_ Жыл бұрын
How can we calculate the centroid of an shape?
@sethmobit
@sethmobit 8 ай бұрын
me neither, I was trying to find if someone said about
@sethmobit
@sethmobit 8 ай бұрын
Finally I got it! How as him said, 46 is the X axis of centroid of the form that represents 10% of the trapezium of low membership and 90% of medium membership, right? The X axis of the centroid can be obtained by the formula: x = x1 + (x2-x1) * (A2/(A1+A2)) where: - x1 is the x-axis of centroid of trapezium slice; - x2 is the x-axis of centroid of triangle slice; - A1 is the area of trapezium slice; - A2 is the area of triangle slice; The x-axis of centroid of the forms can be obtained adding the bigger x point with the smaller x point and dividing by 2. The trapezium starts at 0 and goes to 50, so (50+0)/2 = 25. The triangle starts at 25 and goes to 75, so (75+25)/2 = 50. We have x1=25 and x2=50. Now we calculate the whole area of trapezium by adding the bases and multiplying by the height/2. The smaller base have 25 width, the bigger have 50 width and the height is 100. So (50+25)*(100/2) = 3750. As we need only 10% of this area, we got A1 = 375. The whole area of the triangle is base times height divided by 2. So, (50*100)/2 = 2500. As we need only 90%, we got A2 = 2250. Now, we replace the formula: x = x1+(x2-x1)*(A2/(A1+A2)) x = 25+(50-25)*(2250/(375+2250)) x = 25+25*(2250/2625) x = 25+25*0.8571 x = 25+21.42 x = 46.42
@dantero_
@dantero_ 8 ай бұрын
@@sethmobit 👍🏻👏🏻👏🏻
@JasonTubeOffical
@JasonTubeOffical Жыл бұрын
Thanks
Fuzzy Inference System Walkthrough | Fuzzy Logic, Part 2
16:13
Everything You Need to Know About Control Theory
16:08
MATLAB
Рет қаралды 533 М.
黑天使遇到什么了?#short #angel #clown
00:34
Super Beauty team
Рет қаралды 43 МЛН
🩷🩵VS👿
00:38
ISSEI / いっせい
Рет қаралды 20 МЛН
But what is a neural network? | Chapter 1, Deep learning
18:40
3Blue1Brown
Рет қаралды 17 МЛН
Internet is going wild over this problem
9:12
MindYourDecisions
Рет қаралды 67 М.
Machine Intelligence - Lecture 17 (Fuzzy Logic, Fuzzy Inference)
1:22:16
Logic 1 - Propositional Logic | Stanford CS221: AI (Autumn 2019)
1:18:34
Stanford Online
Рет қаралды 72 М.
Understanding Fuzzy Logic Controller (FLC) (Theory and MATLAB Implementation)
36:25
Fuzzy Logic - Computerphile
9:02
Computerphile
Рет қаралды 374 М.
PID vs. Other Control Methods: What's the Best Choice
10:33
RealPars
Рет қаралды 117 М.
Modeling Dynamic Systems
13:34
MATLAB
Рет қаралды 16 М.
Introduction to State-Space Equations | State Space, Part 1
14:12