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

más de 14 años hace | 0

| aceptada

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

más de 14 años hace | 0

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

más de 14 años hace | 0

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

más de 14 años hace | 1

| aceptada

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

más de 14 años hace | 0

| aceptada

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

más de 14 años hace | 1

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

más de 14 años hace | 0

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

más de 14 años hace | 0

| aceptada

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

más de 14 años hace | 0

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

más de 14 años hace | 0

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

más de 14 años hace | 0

| aceptada

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

más de 14 años hace | 0

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

más de 14 años hace | 1

| aceptada

Respondida
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,:)...

más de 14 años hace | 0

| aceptada

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

más de 14 años hace | 0

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

más de 14 años hace | 0

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

más de 14 años hace | 0

| aceptada

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

más de 14 años hace | 0

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

más de 14 años hace | 2

| aceptada

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

más de 14 años hace | 2

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

más de 14 años hace | 2

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

más de 14 años hace | 0

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

más de 14 años hace | 0

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

más de 14 años hace | 0

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

más de 14 años hace | 1

| aceptada

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

más de 14 años hace | 18

Pregunta


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

más de 14 años hace | 4 respuestas | 18

4

respuestas

Respondida
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]; ...

más de 14 años hace | 0

| aceptada

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

más de 14 años hace | 0

| aceptada

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

más de 14 años hace | 1

Cargar más