Pregunta


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 ...

alrededor de 11 años hace | 1 respuesta | 0

1

respuesta

Pregunta


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

alrededor de 11 años hace | 1 respuesta | 0

1

respuesta

Pregunta


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

alrededor de 11 años hace | 3 respuestas | 0

3

respuestas

Pregunta


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?

alrededor de 11 años hace | 2 respuestas | 0

2

respuestas

Pregunta


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

alrededor de 11 años hace | 1 respuesta | 0

1

respuesta

Pregunta


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);

alrededor de 11 años hace | 1 respuesta | 0

1

respuesta

Pregunta


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 ...

alrededor de 11 años hace | 1 respuesta | 0

1

respuesta

Pregunta


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 ...

alrededor de 11 años hace | 2 respuestas | 1

2

respuestas

Pregunta


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...

alrededor de 11 años hace | 1 respuesta | 0

1

respuesta

Pregunta


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...

alrededor de 11 años hace | 0 respuestas | 0

0

respuestas

Pregunta


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?

alrededor de 11 años hace | 11 respuestas | 2

11

respuestas

Pregunta


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

alrededor de 11 años hace | 0 respuestas | 0

0

respuestas

Pregunta


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...

alrededor de 11 años hace | 1 respuesta | 0

1

respuesta

Pregunta


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.

alrededor de 11 años hace | 1 respuesta | 0

1

respuesta

Pregunta


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?

alrededor de 11 años hace | 1 respuesta | 0

1

respuesta

Pregunta


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 ...

alrededor de 11 años hace | 2 respuestas | 3

2

respuestas

Pregunta


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...

alrededor de 11 años hace | 0 respuestas | 0

0

respuestas

Pregunta


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 ...

alrededor de 11 años hace | 1 respuesta | 0

1

respuesta

Pregunta


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.

alrededor de 11 años hace | 2 respuestas | 0

2

respuestas

Pregunta


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

alrededor de 11 años hace | 1 respuesta | 0

1

respuesta

Pregunta


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

alrededor de 11 años hace | 2 respuestas | 0

2

respuestas

Pregunta


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...

alrededor de 11 años hace | 3 respuestas | 0

3

respuestas

Pregunta


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...

alrededor de 11 años hace | 1 respuesta | 0

1

respuesta

Pregunta


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'.

alrededor de 11 años hace | 2 respuestas | 0

2

respuestas

Pregunta


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...

alrededor de 11 años hace | 1 respuesta | 0

1

respuesta

Pregunta


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

alrededor de 11 años hace | 0 respuestas | 0

0

respuestas

Pregunta


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...

alrededor de 11 años hace | 2 respuestas | 1

2

respuestas

Pregunta


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

alrededor de 11 años hace | 1 respuesta | 0

1

respuesta

Pregunta


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...

alrededor de 11 años hace | 2 respuestas | 1

2

respuestas

Pregunta


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...

alrededor de 11 años hace | 1 respuesta | 0

1

respuesta

Cargar más