About 5,120,000 results
Open links in new tab
  1. Need help plotting multiple functions using fplot and subplot

    Oct 28, 2016 · We have been learning to use fplot and subplot in class and I am supposed to: First, create a function with the height as the output and with time, velocity, and angle as …

  2. matlab - Multiple function plots with hold on - Stack Overflow

    Simply iterate over each value of r and plot it: y=r * x .^ 2; plot( x, y ); hold on; As you can see, the only change you need to make is to change the r statement into a for loop. This way, we will …

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

    Plot multiple lines using hold on. Specify the plotting intervals using the second input argument of fplot. Specify the color of the plotted lines as blue using 'b'. When you plot multiple lines in the …

  4. MATLAB Plots (hold on, hold off, xlabel, ylabel, title, axis & grid ...

    Jul 27, 2018 · The example below will show you how to show multiple graphs in the same plot by using hold on and hold off command in MATLAB. Example Program (1): To show the curve for …

  5. matlab plot multiple functions - Stack Overflow

    Feb 9, 2013 · n = [1:100]; figure hold on; plot(n, 2.^(2.^n), 'b'); plot(n, 2.^n, 'r'); plot(n, n.^log2(n), 'g'); plot(n, n.^2, 'm'); hold off; Generating a new figure window is useful down the line when …

  6. Create Plots of Symbolic Expressions - MATLAB & Simulink

    Plot several functions on one graph by adding the functions sequentially. After plotting the first function, add successive functions by using the hold on command. The hold on command …

  7. Plot Multiple Functions in a single call to fplot

    Jun 4, 2020 · I would suggest to you, however, that it would make more sense to write a small wrapper routine that accepted cell arrays of function handles and ran fplot() as many times as …

  8. Multiple Plots in MATLAB - Engineer101.com

    In this tutorial post, we will learn how to make multiple plots in MATLAB! We can do multiple plots on the same axis or multiple plots in the same figure!

  9. How to plot multiple functions on same figure using fplot?

    Oct 28, 2021 · The problem is that the polyfit call returned NaN for both parameters. I substituted a simple nonlinear power relation and used fminsearch to solve it. The fit is not excellent, …

  10. Matlab: Plot multiple anonymous functions using fplot

    Sep 6, 2013 · >> f = @sin; >> g = @cos; >> hold on >> cellfun(@(func) fplot(func, [-3, 3]), {f, g}) This applies the function handle @(func) fplot(func, [-3, 3]) to each of the elements in the cell …

  11. Some results have been removed
Refresh