Answered
graph - fix annotation so that they dont move when converted to .tif/.eps/.pdf
Explicitly define the dimensions of figure and axes with some additional properties: h.f = figure('color','w','un','pix','pos...

14 years ago | 0

| accepted

Answered
How to make array in matlab ( how to inisialisasi array )
Preallocation of an array is usually done with the *<http://www.mathworks.com/help/techdoc/ref/zeros.html zeros>* function: B...

14 years ago | 0

| accepted

Answered
Count up instead of down?
If |remaint| counts as |40, 39, 38...| then simply |currpos1| will count |0, 1, 2...|

14 years ago | 1

| accepted

Answered
Bug?
R2009a Win7 32bit No problems: ft = fints([(now-99:now).' rand(100,1)]); toquarterly(ft) toquarterly(ft,'EM',1)

14 years ago | 0

| accepted

Answered
Write Data to .txt or .csv file?
* <http://www.mathworks.com/help/techdoc/ref/dlmwrite.html dlmwrite>: write matrix to ASCII-delimited file * <http://www.mathwor...

14 years ago | 0

| accepted

Answered
Create new vector from data - Counts of element locations in vector
You have to use run-lenght decoding algorithm: x = [0,1,0,2,0,3,0,1,1,4] val = find(x); len = x(val); rude(len,val) ...

14 years ago | 0

| accepted

Answered
colorbar
load flujet image(X) colormap(jet) colormap(jet(128))

14 years ago | 1

Answered
How to make looping in matlab .. source code please ....
for n = 1:10 disp(n) end

14 years ago | 0

| accepted

Answered
averaging from excel file
% Import data data = xlsread('test.xlsx'); szData = size(data); nblocks = 2; % Loop per each column out...

14 years ago | 0

| accepted

Answered
Two matlab programs in one m file.
Use a <http://www.mathworks.com/help/techdoc/matlab_prog/f4-70666.html subfunction> but be the subfunction cannot have the same ...

14 years ago | 0

| accepted

Answered
MySQL Database interface
If you're referring to the LHS, then you can use: [A{1,1:137}] = ... After that, if the data is of the same datatype: [A{...

14 years ago | 0

| accepted

Answered
Fast method of data storage / retrieval?
Saving .mat files in '-v6' won't compress them and you will save time. *EDIT* save('myfiles.mat','Files','-v6')

14 years ago | 0

Answered
Help with isempty and exists
root = 'C:\Users\Oleg\Desktop\'; answer = inputdlg(prompt); if isempty(answer{1}) || exist([root answer{1}],'dir') ~= 7...

14 years ago | 1

| accepted

Answered
Simple econometric regression
Use regstats then with the same inputs: regstats(y,x,'linear')

14 years ago | 1

| accepted

Answered
Creating legend based on numeric array
Hidden loop (troll): arrayfun(@(x) sprintf('N=%d',x),N,'un',0) Based on Kelly's idea of '%-d': cellstr(reshape(sprintf('N...

14 years ago | 1

Answered
EXcl files
One way would be to work directly with with ActiveX, an example http://www.mathworks.com/support/solutions/en/data/1-17PWC/?solu...

14 years ago | 0

Answered
Cannot solve x*tan(x/w)=C in matlab, please help
eq4 = @(x) x*tan(x/w)-C; Use <http://www.mathworks.com/help/techdoc/matlab_prog/f4-70115.html#f4-70133 anonymous functions> b...

14 years ago | 0

Answered
Matlab and Excel dont communicate any more
['D:\32_electrodes\Results\S5_G20\X' num2str(a) 'Y' num2str(b) 'Z' num2str(c) '.xls'] The backslash after |D:|

14 years ago | 0

Answered
Get points from a figure
doc ginput

14 years ago | 0

| accepted

Answered
producing syms
Use <http://www.mathworks.com/help/techdoc/ref/inputdlg.html |inputdlg|> to ask for |n|, then: % Create names |X1,...,Xn| ...

14 years ago | 0

Answered
Change Size of GUI Radio Buttons
Not that I know with plain matlab. A solution would be to include a |javax.swing.JRadioButton| and to customize the icon A re...

14 years ago | 0

Answered
Extracting data from several columns by indexing?
idx = data(:,4) == 10; data(idx,:) % Or specific columns cols = [1:4 7,9]; data(idx,cols)

14 years ago | 0

| accepted

Answered
Having Matlab run different files sequentially.
Reference: <http://matlab.wikia.com/wiki/FAQ#How_can_I_process_a_sequence_of_files.3F faq 4.12> % Retrieve files in directory b...

14 years ago | 0

| accepted

Answered
release structure
Why would you like to do such a thing? % A method that avoids eval: fnames = fieldnames(param); save('param.mat','-st...

14 years ago | 0

Answered
I cannot find the index of a specific element in an array?
Yes, floating point approximation ( <http://matlab.wikia.com/wiki/FAQ#Why_is_0.3_-_0.2_-_0.1_.28or_similar.29_not_equal_to_zero....

14 years ago | 2

Answered
Cointegrating several series
I suggest to try out these two free toolboxes: * <http://www.spatial-econometrics.com/ Econometrics Toolbox: by James P. LeSa...

14 years ago | 0

Answered
number of non nan observations
sum(~isnan(In),2)

14 years ago | 1

| accepted

Answered
Autoregressive models
Example: AR(1) % Generate series Series = rand(100,1); % Set the AR(1) - note the constant variance Spec = garchset('...

14 years ago | 1

| accepted

Answered
i want to change the size of vector in a loop
You don't have to change any size but you can index the values of |w| to take the moving minimum: w = rand(20,1); n = numel...

14 years ago | 0

Answered
Importing an Excel File - How to ignore non-numeric values
* I frankly would suggest to avoid eval: http://matlab.wikia.com/wiki/FAQ#How_can_I_create_variables_A1.2C_A2.2C....2CA10_in_a_l...

14 years ago | 0

Load more