Answered
Multi-level indexing
This is alimitation of structures: new = [19 20; 21 22]; for n = 1:numel(screen) screen(n).position(:,2) = new(:,...

14 years ago | 0

| accepted

Answered
Axis date values disappear when datetick is applied to a simple time-series plot
Get used to set the properties for your plots, especially when you start adding a little bit of customization. My plots sometime...

14 years ago | 0

Answered
extending cond. var. equation in GARCH-type models
No. I asked the same question some time ago ( http://www.mathworks.com/matlabcentral/answers/3996-egarch-1-1-with-an-additional...

14 years ago | 0

Answered
unusual problem with an unusual solution
An alternative to your code: % Use Java's robot import java.awt.*; rob = Robot; % Setup timer that will abort inpu...

14 years ago | 1

| accepted

Answered
Time Series Forecasting
|(G)ARCH| models assume conditionally heteroskedastic errors, |VAR(MA)(X)| models do not but they can model the relationship of ...

14 years ago | 0

| accepted

Answered
Fast calculation of short cumulative product vector
time = zeros(100,3); for len = 1:100 a = rand(1); o = ones(1,len); v = 1:len; tic for s...

14 years ago | 1

Answered
Excel import single '
So if you have an excel that look like this: '900/8 30 20 '600/7 10 30 [num,txt] = xlsread(...); Look at |txt|, your da...

14 years ago | 0

Answered
Array Manipulation - Substituting matrices with vectors
The LHS is always the assigned value in MATLAB, i.e. you cannot assign something that do not exist yet: v = M(:,4) Are you u...

14 years ago | 0

| accepted

Answered
latex interpreter seems to miss fonts
Have you already given a look to: http://www.mathworks.com/support/bugreports/249537 http://www.mathworks.com/support/bugrepor...

14 years ago | 0

Answered
Expand 1-D array to 2-D matrix using 'ones' function and colon ':'
matrixA = matrixA(ones(1,5), :) select all elements from row one 5 times. matrixB = matrixB(:, ones(1,5)); select a...

14 years ago | 0

Answered
Logical Manipulation of Vector
a = 10; b = 20; lg = [true (a,1) false(b,1)];

14 years ago | 0

| accepted

Answered
problem with lognormal cumulative distribution function
mu = 0.04; sigma = 0.01; values = 0:0.01:2; subplot(211) plot(values,pdf('logn',values,mu,sigma)) subplo...

14 years ago | 0

Answered
make a new folder with specifued name and then put 2 matrix(.xls file) inside the folder
|<http://www.mathworks.co.uk/help/techdoc/ref/mkdir.html mkdir>| and |<http://www.mathworks.co.uk/help/techdoc/ref/movefile.ht...

14 years ago | 1

| accepted

Answered
how to get the result as a vector
n = size(Y,1); j = 1:n; result = -n-(1/n)*sum(bsxfun(@times,j.'*2-1, log(normcdf(Z,0,1))+log(1-normcdf(Z(end:-1:1,:)...

14 years ago | 0

| accepted

Answered
matlab - almost done! simple mistake in function graphing ?
If you remove the zeros then your |kx| and |ky| will have less values and if you omit the x-values when calling plot by default ...

14 years ago | 0

Answered
Problems in xml when multiple users write to it at the same time using a .m script
You should lock your file before writing: http://groups.google.com/group/comp.soft-sys.matlab/browse_thread/thread/eb4ebeb8700e...

14 years ago | 0

Answered
Text label in plot/graph
Contour example: [X,Y] = meshgrid(-2:.2:2,-2:.2:3); Z = X.*exp(-X.^2-Y.^2); [C,h] = contour(X,Y,Z); set(h,'ShowText','o...

14 years ago | 0

| accepted

Answered
Puzzler: Quickly tell if two absolute indices (a,b) are four connected for n x m matrix.
I assume a,b,m,n always numeric and integer values > 1 function flag = isFourConnected(a,b,n,m) % a,b : indices of inter...

14 years ago | 0

Answered
How to include a character with a macron (horizontal bar) in a legend?
Workaround as described in <http://www.mathworks.com/matlabcentral/newsreader/view_thread/239315#614809 NG: Matlab and Latex> ...

14 years ago | 2

| accepted

Answered
filling nans between two values
*EDITED* Polished and robustified version of Andrei's algorithm: A = [NaN NaN 1 NaN NaN 2 4...

14 years ago | 2

Answered
How to ignore punctuation in a user string while scanning for words (textscan())?
Use |<http://www.mathworks.co.uk/help/techdoc/ref/regexp.html regexp>|. If you want more details provide some example inputs an...

14 years ago | 2

Answered
Plotting
Vectorized version, you can see here that the color is automatically selected for each column of |y| y0 = 0; v0 = 28; ...

14 years ago | 0

Answered
Eliminating common elements across multiple arrays
You could try |<http://www.mathworks.com/matlabcentral/fileexchange/28341-set-functions-with-multiple-inputs set functions with ...

14 years ago | 0

Answered
How to use boxes to plot a freqency band?
% I suppose you have the starting and ending point of each block. % You have to ensure that they are monotonically increasing a...

14 years ago | 0

Answered
Line Rendering Problem
Your |x1| are not sorted: [x1,idx] = sort(x1); plot(x1,y1(idx),'r--') What happens is that the coordinates trace a traject...

14 years ago | 1

| accepted

Discussion


Greek alphabet and latex commands [not a question]
<<http://i41.tinypic.com/68hu.png>> Capital letters are obtained by capitalizing the LaTeX command for the lowercase versio...

14 years ago | 18

Question


Greek alphabet and latex commands [not a question]
<<http://i41.tinypic.com/68hu.png>> Capital letters are obtained by capitalizing the LaTeX command for the lowercase versio...

14 years ago | 4 answers | 18

4

answers

Answered
Moving Norm using Vectorization
% Example input v = rand(10,1); % Window length w = 3; % Pad with zeros o = zeros(w-1,1); v = [o;v;o]; ...

14 years ago | 0

| accepted

Answered
When I type in ~ on my laptop (FN + ALT + 126) the cursor jumps and misplaces the tilde
If you have: * Windows OS * MATLAB 2010b or earlier * Laptops that do not have a *~* (tilde) on the keyboard (see Italian QWERT...

14 years ago | 0

| accepted

Answered
dataset array - how can new data be added from a cell array that has some missing elements
% Create sample cell array propCellArray = num2cell(rand(20,1)); propCellArray(randi(20,3,1)) = {[]}; % Create samp...

14 years ago | 1

Load more