Réponse apportée
generate random numbers in engineering notation with precision
By default, variables in Matlab are double. If you want to change the way they are displayed, please look at: doc format ...

environ 13 ans il y a | 0

| A accepté

Réponse apportée
Short question: Functions with multiple outputs
None

environ 13 ans il y a | 1

Réponse apportée
Best Fit Line Drawing
Without a toolbox: x = 1:10; y = x + randn(1,10); plot(x,y,'b*') P = polyfit(x,y,1); yfit = P(1)*x...

environ 13 ans il y a | 0

Réponse apportée
realtime frame acquisition while recording video
If your frame is really rgb data, then the red channel will be: your_red = squeeze(frame(:,:,1)); In the future please tr...

environ 13 ans il y a | 1

| A accepté

Réponse apportée
32bit Windows 8gb RAM with Ramdisk > Out of Memory in parfor
Would using 64bit solve this: Probably. In 32 bits your variables can't be larger than around 4GB. What other things can you ...

environ 13 ans il y a | 2

| A accepté

Réponse apportée
How to get the volume of a 3D concave shape?
Not automagically. You could try the file exchange. In 3D you could use the _delaunay()_ function and sum up the volumes of all ...

environ 13 ans il y a | 1

Réponse apportée
Processing 'fopen' and save() on files _1, _2, _3 etc. at once
<http://www.mathworks.se/help/matlab/import_export/process-a-sequence-of-files.html>

environ 13 ans il y a | 0

Réponse apportée
Question regarding hist3 fucntion
You could remove the data that are close to [0 0] before getting your histogram If you want to remove values equal to [0 0]; ...

environ 13 ans il y a | 0

| A accepté

Réponse apportée
Problem with how to select the best result from a loop calculation
the_best = bitmax; %largest possible value, Inf would work as well for ii = 1:1000 your_new_min = %however you get ...

environ 13 ans il y a | 0

| A accepté

Réponse apportée
Eliminate nested FOR loop
The following snippet will give the average for each month, using the _nanmean_ function. The first column of _your_result_ is t...

environ 13 ans il y a | 0

Réponse apportée
Dealing with Character arrays
You probably need a cell array, especially if all the strings are not guaranteed to be of the same size. col1 = char(resha...

environ 13 ans il y a | 0

| A accepté

Réponse apportée
Not enough input arguments error when using exp
That's because you are not passing any arguments to the _exp()_ function. You probably meant: f = 5*exp(2*x - sin(x^2)); ...

environ 13 ans il y a | 4

| A accepté

Réponse apportée
How do I find the number of occurrences of NaN and the corresponding subscripts in an array
Another option: logical_array = A(2:end,2:end) ~= A(2:end,2:end) num_NaN = sum(logical_array(:)); idx = find(logical_arr...

environ 13 ans il y a | 2

| A accepté

Réponse apportée
error (rounding or user) in simple math op
It is due to numerical precision, and is expected behavior. <http://www.mathworks.com/matlabcentral/answers/57444-faq-why-is-...

environ 13 ans il y a | 1

Réponse apportée
Creating a submatrix from a matrix
A = [1 3 7; 10 1 2; 11 5 9; 12 2 5] your_mat = A(all(A<=7,2),:); I looked at your question history. Please accept an ans...

environ 13 ans il y a | 1

| A accepté

Réponse apportée
Possible to use string variable in plot title?
This is a bit convoluted, and probably pointless, but it will get a string from a variable name. Fz = rand(100,1); fun = @...

environ 13 ans il y a | 0

Réponse apportée
How to make the contents available in a function for calculation in another function
First function: function [a] = b a = [1 2 3]; Second function: function [e,f] = d(foo); %You need to pass an a...

environ 13 ans il y a | 0

| A accepté

Réponse apportée
The mean of a subset of data
mean(your_data(your_data>0));

environ 13 ans il y a | 0

| A accepté

Réponse apportée
Short question: Matrix with two arguments
It can mean several things. * Output of a function: [x y] = somefunction(arg1, arg2) The function has two outputs, a...

environ 13 ans il y a | 0

| A accepté

Réponse apportée
Axes' position after adjusting data aspect ratio
What happens is that the axes object is not actually the white square you see. If you go to the property editor and click on bot...

environ 13 ans il y a | 0

| A accepté

Réponse apportée
Making legend entry with multiple markers side-by-side
* _Place the markers next to each other:_ If you are talking about changing a property to make it happen then the answer is n...

environ 13 ans il y a | 0

Réponse apportée
formatting axes for a plot
If all you want to do is to add the annotation in your plot, you don't need to add the 'XTicks'. You could just add this sect...

environ 13 ans il y a | 0

| A accepté

Réponse apportée
Formatting the plot command
xVals = 1e10:1e10:1e11; aH = axes; plot(aH,xVals,rand(10,1)); set(gca,'XTickLabel',sprintf('%2.0e|',xVals)); Pleas...

environ 13 ans il y a | 0

Réponse apportée
Is there a way to lower the XTickLabels a little?
aH = axes; plot(rand(10,1)); xCoord = get(aH,'Xtick'); yCoord = get(aH,'YLim'); yCoord(2) = []; offset = 0.05; ...

environ 13 ans il y a | 0

| A accepté

Réponse apportée
questions about "plotperform" and performance graph
MSE or mean squared error, gives you the difference between observation and simulation. The lower the better. In this case it me...

environ 13 ans il y a | 0

Réponse apportée
force a scientific notation format
x = 0:0.1e4:0.1e5; y = randn(11,1); plot(x,y,'b-o') xVals = 0:0.1e4:0.1e5; set(gca,'xtick',xVals); set(gca,'XTick...

environ 13 ans il y a | 0

| A accepté

Réponse apportée
How to read long double?
I think the long double type is dependent on the architecture. If you wanted a really robust routine, you could read bit by bit ...

environ 13 ans il y a | 1

Réponse apportée
How to view a shape file in matlab
doc mapshow It can be as simple as: S = shaperead(filename); mapshow(S); As long as you have latitude and longitud...

environ 13 ans il y a | 2

| A accepté

Réponse apportée
linking two axes with rotate3D
h(1) = figure(1); v(1) = plot3(rand(10,1),rand(10,1),rand(10,1)); h(2) = figure(3); v(2) = plot3(rand(10,1),rand(10,1),ra...

environ 13 ans il y a | 1

| A accepté

Réponse apportée
Hello, I have different time series data in differend time spane. eg. One I have from year 2004 to 2011 and one I have year 2007 to 2011 . How to get a plot so that I can get both time series with my X- axis within the range from 2004 to 2011
Assuming you have your dates as a Matlab serial date number, and that you want to set the limits in the active figure: set(g...

environ 13 ans il y a | 0

Charger plus