About 9,400,000 results
Open links in new tab
  1. Retrieveing and replacing data in a plot - MATLAB Answers

    Aug 10, 2012 · There is no ydata property for figures. Did you mask the GCF function with the line object's handles? L = plot (x,x.^2,x,x.^2.2); % Return handles to lines. pause; % Look at the …

  2. Matlab - plot; modify X-axis values without modifying graph

    May 26, 2016 · It can be easily achieved by using a handle to the plot, read the XData property and write it back with your desired modifications. Note that the values of x remain untouched …

  3. Replacing values in a Matrix - MATLAB Answers - MATLAB

    Aug 15, 2016 · How do I write a script to replace all the 25's, with a certain value, and the 40's with another value and 12's with another value?

  4. How to Modify Plots in MATLAB - dummies

    You can modify any plot you create using either commands or the MATLAB GUI. The modification method that you use is entirely up to you. Some people work better at the keyboard, others …

  5. How to replace x or y axis tick values with texts - MATLAB

    I want to replace my yaxis tick values with texts. x=[1,3,4,6]; y=[20,40,50,80]; Plot(x,y); For this, I want to replace the ytick values with white, red, green, yellow instead of 20,40,50,80 respectively.

  6. matlab - Replace values in matrix with other values - Stack Overflow

    Aug 14, 2012 · However, to use it in matrix you need to get linear indices. The easiest solution I found is to use changem function. Very easy to use: More info: …

  7. How do I change numbers on the x-axis? - MATLAB Answers

    Jun 26, 2014 · Try changing the XTickLabels of the axis. To view the current x tick labels, in the Command Window type. This should return a list of the labels along the x-axis. Note that gca …

  8. How to change the x-axis values in a plot - MATLAB Answers

    Jan 24, 2024 · In short, no, you can't change the number order of your axes. You can change the scale (logarithmic, for example), and you can change the label displayed (plot by index but …

  9. plot - Matlab - How to use strings instead of numbers in bar …

    Jun 18, 2011 · I want to obtain a Matlab figure using the bar function but when the actual figure is plotted instead of displaying the numbers underneath each bar I want to display which …

  10. How to replace numbers in an array - MATLAB Answers

    Nov 8, 2011 · I have a sample array a=[3 2 5 7 4 8 2 5], I would like to replace all numbers greater than 5(>5) to be 5, the expected result should be a=[3 2 5 5 4 5 2 5]. Thank you very much. 0 …

  11. Some results have been removed
Refresh