About 3,330,000 results
Open links in new tab
  1. rescale - Scale range of array elements - MATLAB - MathWorks

    rescale uses the formula R = l + [A − i n p u t m i n i n p u t m a x − i n p u t m i n] (u − l) to scale the elements of the input array A when the values of A are within the range defined by InputMin and InputMax.

  2. How do I suppress the scale factor of a matrix? - MATLAB

    Dec 24, 2015 · In matlab, if the largest element of a matrix is larger than 10^3 or smaller than 10^-3 , MATLAB applies a common scale factor for the short and long formats. How do I suppress this scale factor so that the matrix is displayed with every element as short/long format?

  3. How to stop rounding values when i use array? - MATLAB Answers - MATLAB ...

    Oct 25, 2023 · The values in your array (a) are not rounded, they are only rounded in the display of them. To see the actual values, change format to long.

  4. plot - Prevent aggressive auto-scaling in Matlab - Stack Overflow

    Oct 31, 2013 · I like that the plot auto-scales from step (A) to (B). I don't like the auto-scaling from (B) to (C) - it makes things jump around too much. Is there a way to have set the plot's scale to expand but never shrink? In my mind, this looks like: set(gca,'XLimMode','auto_maxever');

  5. Disable axes scale in Matlab - Stack Overflow

    Feb 17, 2021 · How can I stop the "auto-scaling" of the axes in Matlab? Code: message = sprintf('Select two points for a line.'); Both the x- and y-axis are by default set to automically rescale their limits whenever data in the figure is changed. You can overwrite this using. Do I have to give value to them? No, literally just write xlim manual (and/or ylim).

  6. How do I create a regularly-spaced array of values in MATLAB?

    How do I make an array that's defined with a start point, an end point, and a total array size? Something like an array that goes from 1 to 10 that's 20 elements long. For example, the array could look something like: 1 1.5 2 2.5 3 3.5 ...

  7. How to prevent matlab from exponential form in displaying arrays

    Jun 22, 2021 · With the common disp() or echo of a variable to the command window, no--a MATLAB array is an entity. You can output in whatever format you wish explicitly, however... fprintf( '%#9.0G\n' ,x)

  8. How to scale/normalize values in a matrix to be between -1 and 1

    Sep 8, 2014 · I found the script that scale/normalize values in a matrix to be between 0 and 1 I = [ 1 2 3; 4 5 6]; % Some n x m matrix I that contains unscaled values. scaledI = (I-min(I(:))) ./ (max(I(:...

  9. How to adjust plot scaling/divisions - MATLAB Answers

    Jul 29, 2015 · set (ax, 'XTick', [-3:1:3], ... The methods require two separate statements whereas with the call you can set all properties for a given axes in one call. Or, you can use the array version and handle multiple axes and values for each in one call.

  10. Matlab Normalize: A Simple Guide to Data Scaling

    In MATLAB, normalization is the process of adjusting the values in a dataset to a common scale, often to improve the convergence of algorithms or to prepare the data for analysis. Here's a code snippet to normalize an array in MATLAB:

Refresh