Réponse apportée
how to treat the last observation? Forecasting??
A ={'24/09/2000' 4.1583 '22/10/2000' 3.9389 '19/11/2000' 4.3944 '17/12/2000' 3.9313 '1...

presque 14 ans il y a | 0

| A accepté

Réponse apportée
Problem with array filling
sprintf('%.17g', 0.3) ans = 0.29999999999999999 http://matlab.wikia.com/wiki/FAQ#Why_is_0.3_-_0.2_-_0.1_.28or_simil...

presque 14 ans il y a | 2

Réponse apportée
Print to file, saveas, maintaining figure dimensions
I suggest to use |<http://www.mathworks.co.uk/matlabcentral/fileexchange/23629-exportfig export_fig()>| from the FEX. It also cr...

presque 14 ans il y a | 1

Réponse apportée
3D matrix with various chain!!
If you have the Image Processing Toolbox: CC = bwconncomp(U3); labelmatrix(CC)

presque 14 ans il y a | 0

Réponse apportée
how can I interpolate NaN values and correlate a matrix
[rr,cc] = size(A); % Values to interpolate xi = 1:cc; % Index the non NaNs idx = ~isnan(A); % ...

presque 14 ans il y a | 0

Réponse apportée
How to plot timeline in matlab?
% Create dates as serial numbers serdates = fix(now) + 9/24 : 1/(24*4) : fix(now) + 11/24; % plot plot(serdates,...

presque 14 ans il y a | 0

| A accepté

Réponse apportée
Fixed income bonds: How to deal with ex-dividend trading
Have you looked into the <http://www.mathworks.co.uk/help/finance/index.html Financial Toolbox> and the <http://www.mathworks.co...

presque 14 ans il y a | 0

Réponse apportée
Counting repeated values paired with other repeated values and placing those counts in an array
[un,trash,sub] = unique(myfasttotal1(:,1)); count = accumarray(sub,myfasttotal1(:,2)); [un, count] The...

presque 14 ans il y a | 1

| A accepté

Réponse apportée
same y label on both sides of contourf
Alternatively you can just *copy* the old axes and paste it over: new = copyobj(gca,gcf); set(new,'YAxisLocation','ri...

presque 14 ans il y a | 1

Réponse apportée
How many zeros do I have before a specific sting variable?
Another solution: pos = strfind([A{:}],'b')-1 pos(1)

presque 14 ans il y a | 0

Réponse apportée
calculation of a mean matrix
Unfortunately your example doesn't allow to propose a unique solution, i.e.: c1 = [mean(a); mean(b)] c2 = squeeze(mean(c...

presque 14 ans il y a | 0

| A accepté

Réponse apportée
Importing multiple files with multiple columns.
I suggest to read this FAQ: http://matlab.wikia.com/wiki/FAQ#How_can_I_process_a_sequence_of_files.3F Then, your description ...

presque 14 ans il y a | 0

Réponse apportée
Non numerical axis marks
Yes, you can do that in several ways: d = {'01/01/2012','02/01/2012','03/01/2012','04/01/2012','05/01/2012'}; *1st metho...

presque 14 ans il y a | 1

Réponse apportée
while loop only diving last result
count = 0; % initialize counter out = zeros(100,1); % preallocate (not always possible with wh...

presque 14 ans il y a | 0

Réponse apportée
Nominal to useful without changing values
a = '23'; str2num(a) str2double(a)

presque 14 ans il y a | 0

Réponse apportée
Extract part of a filename from a directory list
I suppose that your filenames always have the date as |ddmmyy| and it's always at then end: x = {'XXX_YYY_010203.txt' ...

presque 14 ans il y a | 1

| A accepté

Réponse apportée
Using latex command with anonymous functions
Interesting case, do you define B in a recursive way on purpose? However the error is clear, B doesn't exist at the moment o...

presque 14 ans il y a | 0

Réponse apportée
problem with matlab 2009 64 bit
It is not MATLAB's problem. You simply have concurrent access with modification actions which are not supported in general b...

presque 14 ans il y a | 0

| A accepté

Réponse apportée
a small problem with interpolation
It appears to be a bug in this contribution. You have two options: # report this to the author on the FEX and wait for H...

presque 14 ans il y a | 0

| A accepté

Réponse apportée
Using todaily() without holidays
% Sample data data = [datenum(2012,10:13,1)',(1:4)']; % Retrieve all days dates = (data(1):data(end,1))'; ...

presque 14 ans il y a | 0

| A accepté

Réponse apportée
Importing data from excel
It seems that R2007b wasn't still able to import |.xlsx| files. I found the first reference to this type only from R2009a! ...

presque 14 ans il y a | 0

| A accepté

Réponse apportée
xlswrite an empty string
You can control the excel file directly without importing it through ActiveX: % Open the excel file (it remains invisible how...

presque 14 ans il y a | 0

| A accepté

Réponse apportée
How to tell Matlab to ignore NaNs in calculations/loops
If you have the Statistics or the Financial toolbox, use <http://www.mathworks.co.uk/help/stats/nanmean.html |nanmean()|>. *E...

presque 14 ans il y a | 0

Réponse apportée
How to update edit box's callback as soon as entering data?
There is a problem with the edit box, I show a solution here: http://www.mathworks.in/matlabcentral/answers/33136#answer_41732 ...

presque 14 ans il y a | 0

Réponse apportée
Bizarre results with inpaint_nans
|inpaint_nans()| uses a 4 neighborood algorithm because it's designed for images. Thus, looping by column hides the two adjacent...

presque 14 ans il y a | 0

| A accepté

Réponse apportée
Import and read ascii files located in different folders
You are creating the PATH_TD = ['G:\MET_' int2str(month) '\trans_2011' int2str(month) int2str(j) '00_txt\val_dew2011' int2...

presque 14 ans il y a | 0

Réponse apportée
Comining the values and merging
B = num2cell(A,1); B = [B{:,1} strcat(B{2:5}) strcat(B{3:6}) strcat(B{4:7}) strcat(B{5:8})];

presque 14 ans il y a | 0

Réponse apportée
How to read folders of diferent names extensions
% retrieve all subfolders's names s = dir('yourpath'); idx = [s(:).isdir]; names = {s(idx).name}'; % Remove ...

presque 14 ans il y a | 3

| A accepté

Réponse apportée
creating additonal rows of NaN in specific positions
Very similar to your previous question. You have to build the |idx| accordingly. Nte that the |idx| stores the row position wher...

presque 14 ans il y a | 2

| A accepté

Réponse apportée
How do I count the number of NaNs in a Vector?
[minval,idx] = min(sum(isnan(a)))

presque 14 ans il y a | 2

Charger plus