About 2,520,000 results
Open links in new tab
  1. Plotting an Anonymous Function - MATLAB Answers - MathWorks

    Jan 31, 2017 · I have created an anonymous function sqr = @(x) x.^2; and I am trying different methods for plotting this function, and none seem to plot the function correctly (aside from …

  2. Anonymous Functions - MATLAB & Simulink - MathWorks

    An anonymous function is a function that is not stored in a program file, but is associated with a variable whose data type is function_handle. Anonymous functions can accept multiple inputs …

  3. how do I plot this anonymous function? - MATLAB Answers

    Apr 26, 2016 · I'm trying to set the x-range to [-6:1:6] and I'm trying to call my anonymous function(MyFunct) into the y-value for the plot. how would i go about writing these lines code to …

  4. fplot - Plot expression or function - MATLAB - MathWorks

    Function to plot, specified as a function handle to a named or anonymous function. Specify a function of the form y = f(x). The function must accept a vector input argument and return a …

  5. How to plot an anonymous function with multiple variables

    Jul 15, 2022 · Func2 = @(a,b,c) 20*b.^2-4*a.^6+20+4*c; % now any of a,b,c can be a vector (or all of them, if they are the same size)

  6. Plotting Anonymous Function of two variables - MATLAB Answers

    Sep 19, 2023 · Hello, I have defined the following Anonymous Function of two variables: f1 = @(x) erf(x(1))+cos(x(2)); When writing the command for plotting via fsurf fsurf(f1,[-5 0 -5 5]) I get the …

  7. anonymous function and plotting - MATLAB Answers - MathWorks

    Jan 26, 2020 · In MATLAB, define this equation using an anonymous function, for example y(ω, x, E, I, `) = ... Then use values of ω = 2.0 kN/m, ` = 2 m, E = 70 GPa, and I = 0.00012 m4 to …

  8. plotting anonymous functions with multiple variables

    Apr 24, 2011 · In your solution, u and n are switched, i.e., u should have two values and n should have 4 if we believe your function definition. Also, you have mixed up the order of the …

  9. plot - 2-D line plot - MATLAB - MathWorks

    This MATLAB function creates a 2-D line plot of the data in Y versus the corresponding values in X.

  10. Plotting x(2t+2) if x(t) is defined as an anonymous function

    Oct 5, 2022 · I have to plot the function g = @(t) exp(-t/2)*cos(2*t*pi/3)*u(t); for g(2t+2). I tried a couple things but I either get a blank graph or just a straight line. The only way it works is if I …

  11. Some results have been removed