Frage


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

mehr als 10 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


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

mehr als 10 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


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

mehr als 10 Jahre vor | 3 Antworten | 0

3

Antworten

Frage


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?

mehr als 10 Jahre vor | 2 Antworten | 0

2

Antworten

Frage


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

mehr als 10 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


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

mehr als 10 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


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

mehr als 10 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


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

mehr als 10 Jahre vor | 2 Antworten | 1

2

Antworten

Frage


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

mehr als 10 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


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

mehr als 10 Jahre vor | 0 Antworten | 0

0

Antworten

Frage


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?

mehr als 10 Jahre vor | 11 Antworten | 2

11

Antworten

Frage


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

mehr als 10 Jahre vor | 0 Antworten | 0

0

Antworten

Frage


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

mehr als 10 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


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.

mehr als 10 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


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?

mehr als 10 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


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

mehr als 10 Jahre vor | 2 Antworten | 3

2

Antworten

Frage


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

mehr als 10 Jahre vor | 0 Antworten | 0

0

Antworten

Frage


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

mehr als 10 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


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.

mehr als 10 Jahre vor | 2 Antworten | 0

2

Antworten

Frage


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

mehr als 10 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


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

mehr als 10 Jahre vor | 2 Antworten | 0

2

Antworten

Frage


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

mehr als 10 Jahre vor | 3 Antworten | 0

3

Antworten

Frage


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

mehr als 10 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


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

mehr als 10 Jahre vor | 2 Antworten | 0

2

Antworten

Frage


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

mehr als 10 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


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

mehr als 10 Jahre vor | 0 Antworten | 0

0

Antworten

Frage


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

mehr als 10 Jahre vor | 2 Antworten | 1

2

Antworten

Frage


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

fast 11 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


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

fast 11 Jahre vor | 2 Antworten | 1

2

Antworten

Frage


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

fast 11 Jahre vor | 1 Antwort | 0

1

Antwort

Mehr laden