No video

Anonymous Function Handles In Matlab - Advanced Matlab Tutorial

  Рет қаралды 5,443

CodingLikeMad

CodingLikeMad

Күн бұрын

Пікірлер: 19
@GiannisStergianos
@GiannisStergianos 11 күн бұрын
Very useful video
@tab2do
@tab2do 5 ай бұрын
Thanks a lot! You explain it very clearly and I like the notes for potential contexts to keep in mind
@RealGameTitan
@RealGameTitan 3 жыл бұрын
Great demo of function handles!
@CodingLikeMad
@CodingLikeMad 3 жыл бұрын
Thanks so much :)
@michaelwirtzfeld7847
@michaelwirtzfeld7847 3 жыл бұрын
Nicely done. Thank you. A couple of comments to guide novice users who might see this video. In your "plotNice" function, I would set the font size of the title and axes separately or jointly using the set method on the GCA object. I had the impression that you caught this as you filmed the video. Also, when you talked about bugs in anonymous functions and how they might be difficult to troubleshoot, a simple example would have given a context to this idea. Thanks again for the video. Also, it's nice to see someone else who has invested a lot of time working with Matlab. :)
@CodingLikeMad
@CodingLikeMad 3 жыл бұрын
Yeah, good points for sure. I was debating refilming to fix the plot nice bug, but it wasn't really the point to get it exactly right, just sketch the idea. Plus I kinda like watching myself mess up. I definitely am running out of matlab stuff to talk about though, time to move on to bad mouthing python I guess :p
@mthees08
@mthees08 3 жыл бұрын
Very good video. I enjoyed the simplicity with which the function can be used. Nothing I hate more than having to configure plots on the fly while I use matlab.
@ahmedghunaim
@ahmedghunaim 3 жыл бұрын
Could you tell me please how to let the program' user enters a function and then the program deals with this function. For instance, when the user enters the function cos(x) the program calculates cos(2) . Also , when the user enters the function sin(x) the program calculates sin(2) and so on.
@CodingLikeMad
@CodingLikeMad 3 жыл бұрын
Do you want any function, or just specific ones? I talk about the general case in my eval video, although for the reasons I lay out there it is somewhat a dangerous approach. Please see if that video helps.
@ahmedghunaim
@ahmedghunaim 3 жыл бұрын
@@CodingLikeMad I need the user to enter any function and the program gives the value of func(2) for instance. I tried the inline command and it works. But I need not to use this command.
@CodingLikeMad
@CodingLikeMad 3 жыл бұрын
Yeah, the eval command will do that. See my comment from before.
@ahmedghunaim
@ahmedghunaim 3 жыл бұрын
@@CodingLikeMad Sorry to disturb you. But this is what I need. This is my code : f1 = input('Enter the function f(x): '); f = inline(f1); After that I can write in the command window: f(3) and I will have a result of substituting 3 in the function that the user entered. I would like to get red of inline command. How please ?
@victorvanderdrift5006
@victorvanderdrift5006 3 жыл бұрын
Awesome, thanks for sharing!
@Master-nv3od
@Master-nv3od 2 жыл бұрын
How to multiply two or more anonymous function and plot?
@tesnimesetouane3204
@tesnimesetouane3204 3 жыл бұрын
Thank you so much ❤️ Please I need your help to get a Mathématic prediction model using non linear regression with ANN.?! And How to choose the exact control parameters?! Thank youuu for help
@MageshJohn
@MageshJohn 3 жыл бұрын
Thank you...
@alit8528
@alit8528 3 жыл бұрын
thanks. very helpful...But if I want to use a function handle with a variable number of inputs for example in an array, is that possible?
@alit8528
@alit8528 3 жыл бұрын
I want to define an objective function in which the number of inputs and their values changes in each iteration, so also inputs are not determined numbers
@CodingLikeMad
@CodingLikeMad 3 жыл бұрын
I would take a look at varargin, I dont know if it will work with function handles but that approach is a good start. You could also wrap the inputs in a structure and have equal number of inputs each time.
Why Eval And Exec Are The WORST Python Functions [Tech Rants]
22:16
CodingLikeMad
Рет қаралды 1,9 М.
Step-by-Step Guide to Creating Anonymous Functions in MATLAB
12:25
Spartan Professor
Рет қаралды 8 М.
Dad Makes Daughter Clean Up Spilled Chips #shorts
00:16
Fabiosa Stories
Рет қаралды 3,1 МЛН
What will he say ? 😱 #smarthome #cleaning #homecleaning #gadgets
01:00
Reading Video Files With Matlab For Image Processing
12:44
CodingLikeMad
Рет қаралды 16 М.
Function Handles, handles the function
11:07
Tom Dziubla
Рет қаралды 22 М.
Matlab: Anonymous Functions & Function Handles
6:31
Neal Holtschulte
Рет қаралды 506
this is the EASIEST way to find your style (no shopping required!)
13:32
Christina Mychas
Рет қаралды 1,2 МЛН
It's time for change, it's time for Linux.
10:53
DankPods
Рет қаралды 486 М.
Working with Matrices in Matlab
31:03
Christopher Lum
Рет қаралды 126 М.
Writing Functions (Anonymous Functions and Function Handles)
5:19
Steven Metcalfe
Рет қаралды 31 М.
AI Neural Network Beats Minesweeper
5:24
CodingLikeMad
Рет қаралды 7 М.
This Could Be Matlab's Worst Feature [Matlab Rants]
6:54
CodingLikeMad
Рет қаралды 383