About 206,000 results
Open links in new tab
  1. How to use string as data for plotting in Matlab?

    Sep 8, 2010 · I want to use a words like, let's say, 'A', 'B' and 'C' on X-axis to show their corresponding properties on Y-axis. How can I write these strings on X-axis instead of numerical data?

  2. plot of a string vector vs numeric vector - MATLAB Answers

    Jun 24, 2011 · You can use a cell array or the string class to store strings as separate elements of an array.

  3. How can I plot using a string in MATLAB? - MathWorks

    I am looking to automate some plotting for work and needing to know how I can take a variable string (string changes based upon selection in MATLAB GUI) and then use that to generate a plot. Ex...

  4. How to display a string array in a figure - MATLAB Answers

    Nov 27, 2019 · I would like to display the contents of a string array in a figure (for example, showing a table of parameters used in a model fit). To accomplish this, I have tried to display the contents as a string array in an annotation over top the figure.

  5. textscatter - MathWorks

    Plot a string array of numbers at random points on a text scatter plot. x = rand(50,1); y = rand(50,1); str = string(1:50); figure textscatter(x,y,str); Alternatively, you can pass the coordinates x and y as a matrix xy , where x and y are the columns of xy .

  6. matlab - Plotting arrays from a cell list of strings - Stack Overflow

    Jun 4, 2015 · There is something built in to solve this. plot ( axHandle, data.(fnames{ii}) ); axHandle is a handle to the axes you want to plot on. Its not required but it is good practice to use it. If its not provided then the plot command will plot on the current axes, e.g. gca. Thanks!

  7. plot - Labeling a string on x-axis vertically in MatLab - Stack Overflow

    Problem: My output from the MatLab only takes the first nine values of Names string. I want all 196 data in Names string to be posted vertically on the x-axis. This is my output from the MatLab (See x-axis):

  8. Plotting with string as the x axis value. - MATLAB Answers

    Apr 27, 2020 · Plotting with string as the x axis value.. Learn more about plot MATLAB i'm trying to generate a graph of country by density but would like to have the country name on the x axis rather than a number.

  9. Text in String and Character Arrays - MathWorks

    There are two ways to represent text in MATLAB®. You can store text in string arrays and in character vectors. MATLAB displays strings with double quotes and character vectors with single quotes.

  10. How to plot a string signal/array? - MATLAB Answers - MathWorks

    Jan 9, 2025 · In the Documentation, the Simulink.sdi.plot function can plot different objects exported from simulations, it can reproduce the plot effect of strings as illustrated in your Simulation Data Inspector.

  11. Some results have been removed