About 32,600 results
Open links in new tab
  1. plot - How to create a new figure in MATLAB? - Stack Overflow

    Aug 3, 2012 · While doing "figure(1), figure(2),..." will solve the problem in most cases, it will not solve them in all cases. Suppose you have a bunch of MATLAB figures on your desktop and how many you have open varies from time to time before you run your code. Using the answers provided, you will overwrite these figures, which you may not want.

  2. How to create a graph in matlab from a .mat file?

    Sep 29, 2015 · I want to represent a graph in MATLAB using information stored in a .mat file. The .mat file is an NxN square matrix. The .mat file is an NxN square matrix. The goal is to be able to gather information on the graph (number of nodes, average degree, connected components, etc) using the matrix that represents edges between nodes.

  3. matlab - Create a graph from an image - Stack Overflow

    Nov 18, 2018 · @beaker From the graph that is created from the skeleton image, I want to find out the Laplacian matrix from the degree and adjacency matrix and solve a fluid flow problem using the Laplacian. I also read through the suggestions posted in …

  4. Construct adjacency matrix in MATLAB - Stack Overflow

    You can take advantage of this fact to easily create your matrices using the diag function (or the spdiags function if you want to make a sparse matrix). Here is how you can create the adjacency matrix for each case, using your sample matrix above as an example: 4-connected neighbors:

  5. How to do an animated plot in matlab - Stack Overflow

    May 15, 2014 · I was wondering if anyone knew how to do an animation plot of x = (dataset of 1000 points) y = (dataset of 1000 points) plot(x,y) big problem is these are datasets that i am trying to plot , or x,y

  6. How to graph adjacency matrix using MATLAB - Stack Overflow

    Dec 7, 2014 · I want to create a plot showing connections between nodes from an adjacency matrix like the one below. gplot seems like the best tool for this. However, in order to use it, I need to pass the coord...

  7. matlab - Plotting 4 curves in a single plot, with 3 y-axes - Stack …

    One possibility you can try is to create 3 axes stacked one on top of the other with the 'Color' properties of the top two set to 'none' so that all the plots are visible. You would have to adjust the axes width, position, and x-axis limits so that the 3 y axes are side-by …

  8. Plotting graph using for loop in MATLAB - Stack Overflow

    May 31, 2016 · In case you insist on plotting within each iteration, the previous code from Solution 2 can be expanded as follows: Create a figure, add an 'empty' plot to it and store its handle. Within the for-loop calculate the values and add them to the y -vector as shown above.

  9. How can I create an FFT graph in MATLAB? - Stack Overflow

    May 8, 2013 · The matlab example above is great because: it shows how to make the x-axis vector for frequency to plot against the spectrum data, takes in to account plotting the magnitude of the data, cuts off the complex conjugates so you don't get a mirrored image, and will calculate the next power of 2 to use to make the calculation more efficient.

  10. Create a correlation graph in Matlab - Stack Overflow

    Apr 30, 2012 · Create a correlation graph in Matlab. Ask Question Asked 12 years, 11 months ago. Modified 4 years, 7 ...

Refresh