About 620,000 results
Open links in new tab
  1. Subplots within for loops - MATLAB Answers - MATLAB Central

    Oct 2, 2017 · I have a for loop with an output of 8 plots. I would like to group them as they come out in 2 subplots of 4. How can I do this?

  2. MATLAB: plotting subplots in for loop - Stack Overflow

    May 13, 2015 · I'm trying to plot several subplots in a single figure. The total number of subplots is dependent on the maximal value in a matrix: maximal value of 'i'. I'd like to plot two variables in …

  3. How to code a figure having subplots with a for loop?

    Jan 7, 2017 · I want to simply the following codes to make a figure with 2-by-6 subplots. How can I make it with a for loop?

  4. matlab - create subplot with loop - Stack Overflow

    Jul 2, 2015 · function [order]=find_order (y,fs); order=0; n=length (y); n1=nextpow2 (n); ndft=2^n1; for i=1:floor (n/2) [Pxx,f]=pburg (y,i,ndft,fs); subplot (ndft,ndft,i); plot (f,Pxx); title ( …

  5. How can I generate subplots from a loop and name each one?

    It is more efficient, if you explain it directly. The File C1.mat contains a variable called "C1". Anywhere in the code you have loaded the MAT file. Then store the name to use it, when you …

  6. How to Subplot in a for loop - MATLAB Answers - MathWorks

    Apr 3, 2020 · I want to do a subplot for the two histograms of "Finallcation". I would prefer to plot them outside the for loops if possible.

  7. Mastering Matlab Plot Subplot for Stunning Visuals

    The `subplot` function in MATLAB allows you to create multiple plots in a single figure window by dividing the figure into a grid and specifying the position of each plot. Here's a simple example …

  8. Can I make multiple subplots in multiple Matlab figures within one loop

    May 2, 2025 · yes, you just need introduce another index variable within your loop which distributes your curves into the right plots. Feel free to accept the answer, if it helped you.

  9. Multi Subplot for loop - MATLAB Answers - MATLAB Central

    Jun 12, 2014 · Hi, I want to work with two subplots to record data from each iteration of a loop but am not sure how to do this. Code is something like this as of now:

  10. How can I create a subplot from for loop with an if statement or using

    Aug 10, 2020 · I have two threshold values (scalars) that I would like to run through my for loop, and subsequently plot each 'meanMUA' (for that particular threshold value) as a subplot.

  11. Some results have been removed
Refresh