Question


How to set text size in axes units?
I have a plot with ylim [0,1] and I would like to use put a text on the plot with text height 0.1 in y-units. It is possible to ...

10 years ago | 1 answer | 0

1

answer

Question


is it possible to draw separate polygons with one fill() function?
Is it possible to plot non overlapping polygons with one fill() command?

10 years ago | 1 answer | 0

1

answer

Question


How to plot a filled rectangle without edge?
'EdgeColor', 'None' makes the outline width to be zero?

10 years ago | 3 answers | 0

3

answers

Question


Is it possible to extract bars from the hist or histogram function?
I would like to extract the bar-rectangle coordinates (the shapes themself) from the histogram plot. Is it possible?

10 years ago | 2 answers | 0

2

answers

Question


I cannot use histogram instead of hist. Why?
Undefined function 'histogram' for input arguments of type 'double'. Error in histograms (line 47) histogram(dat...

10 years ago | 1 answer | 0

1

answer

Question


What if I need both the data and the plot of a histogram?
I have to run twice? hist(data,number_of_bins); h1 = hist(data,number_of_bins);

10 years ago | 1 answer | 0

1

answer

Question


How to plot subplots with zero gaps and x and y labels at the sides?
I would like to plot lots of histograms. They all have the same size (xlim, ylim), so equal size plots. How to put them next to ...

10 years ago | 1 answer | 0

1

answer

Question


Is it possible to make alias for a variable?
I would like to use a more convenient name for a variable, and keep the old name also, but I don't want to make a real copy. So ...

10 years ago | 2 answers | 1

2

answers

Question


Plot window appears at the end of the script. Why?
I have a long for cycle after hold on, and plot in every cycle. But the plot figure appears only at the end of the whole for cyc...

10 years ago | 1 answer | 0

1

answer

Question


how to use rounded line endpoints on pdf output?
I am using the line function to draw a line segment. The width is 8, and saveas to pdf generates non rounded line end points. Ho...

10 years ago | 0 answers | 0

0

answers

Question


how to change order of legends?
I dont want to change the order of my plots, but I want to change the order in the legend list. How to do?

10 years ago | 11 answers | 2

11

answers

Question


How to select visible legends?
I have lots of plots on the same figure, but I want to show only two legends.

10 years ago | 0 answers | 0

0

answers

Question


Why is left and bottom side of the box disappeared?
I would like to plot a transparent bar histogram on a previous plot. I used the following: b1 = bar(UMEAN,UHIST); set(get(b...

10 years ago | 1 answer | 0

1

answer

Question


How to determine number of common elements between two vectors?
for example X = 1:10 Y = [5,7,13,25,45,56] So 5 and 7 are the common elements, and the answer should be 2.

10 years ago | 1 answer | 0

1

answer

Question


How is it possible that a fitobject can used as an input for the plot function?
How is it possible that a fitobject can used as an input for the plot function?

10 years ago | 1 answer | 0

1

answer

Question


What is the order of the parameters in the fit?
At the following page: <http://www.mathworks.com/help/curvefit/fit.html> In the "Exclude Points from Fit" example, I do not ...

10 years ago | 2 answers | 3

2

answers

Question


is it possible to fit stepwise defined functions?
For example an exponential but unknown starting point, so it is zero at the left side? I tried it, but not working for me, with...

10 years ago | 0 answers | 0

0

answers

Question


How to fit a step function?
The problem is only the first parameter (p(1)) is fitted, but p1(2) = p0(2), unchanged! Why? X = [-1.0 -0.8 -0.6 -0.4 -0.2 ...

10 years ago | 1 answer | 0

1

answer

Question


How to reset (set back) hold on/off to its original value?
One of my function generates some plots, and I want to set hold on or off at the end of the function.

10 years ago | 2 answers | 0

2

answers

Question


How to find the firs numeric data in varargin?
How to find the firs numeric data in varargin?

10 years ago | 1 answer | 0

1

answer

Question


Are there any function to check a string in the argument list?
For example, "off" is existed in the argument list or not?

10 years ago | 2 answers | 0

2

answers

Question


what is the simplest way to add two vectors if size is unknown?
I would like to add v + u. I know v is 1XN but u can be 1xN or Nx1. Is it possible to do without if, and without defining a new...

10 years ago | 3 answers | 0

3

answers

Question


how to write function with indefinite number of outputs?
I know how to write function of one or multiple outputs. But there are lots of function in MATLAB which can be used with one and...

10 years ago | 1 answer | 0

1

answer

Question


What is the problem with the heaviside function?
fun = @(p,x)p(1)*heaviside(x-p(2)) Undefined function 'heaviside' for input arguments of type 'double'.

10 years ago | 2 answers | 0

2

answers

Question


Is it possible to use lsqcurvefit without text messages?
I dont want to see this in the command window: Local minimum possible. lsqcurvefit stopped because the final change in the...

10 years ago | 1 answer | 0

1

answer

Question


How to save something?
From a script I used to use something like this: cd(fileparts(which(mfilename))); save([mfilename,'_data.mat']); Howe...

10 years ago | 0 answers | 0

0

answers

Question


how to create and use mixed colormaps associated to positive and negative data values?
For example I have a 2D matrix with values from [-100,200]. I would like to plot positive values from white to black, and negat...

10 years ago | 2 answers | 1

2

answers

Question


How to use special characters (like ó,Ö,ű,é,á) on plots?
How to use special characters (like ó,Ö,ű,é,á) on plots? in titles and xylegends?

10 years ago | 1 answer | 0

1

answer

Question


How to get a computer id?
In my output files I use to write notes like these: This data file is generated by myscript.m. The corresponding plot is gener...

10 years ago | 2 answers | 1

2

answers

Question


Cannot remove folder from path. Why?
There is a folder in my path, which cannot be removed. The folder is not a default MATLAB toolbox, it was added by me previously...

10 years ago | 1 answer | 0

1

answer

Load more