Remove even/odd columns/rows from an array
NouveauIX <visualxd(a)gmail.com> wrote in message < ...... I'm not sure if they're correct. Well, why not try it for yourself? A = magic(9) A(1:2:end,:)=[] % Remove odd ROWS % Did it work? A = magic(9) A(:,1:2:end)=[] % Remove odd COLUMNS % Did it work? Now for the even case, give it a try! ... 10 Oct 2009 14:57
simulink multi dimension operation
Hi, How can I create my own simulink block with 3-D input and output (RGB image in and out)? I've tried with "MATLAB fcn" and "Level-2 S-function" but both this methods has 2-D limit... Thanks and regards, Marcin ... 10 Oct 2009 21:30
Differential Evolution - Constrained Optimization
I've been using the version of differential evolution for matlab from the DE site: http://www.icsi.berkeley.edu/~storn/code.html#matl Up until now I've been working without inequality constraints (only bound). I was wondering if anyone was familiar with how to apply inequality constraints in this algorithm. ... 10 Oct 2009 14:57
Using ARMA-GARCH for financial time series prediction
Hi All, I am trying to predict the returns of a price series using ARMA-GARCH model. If we assume that, the price series is p, then the step with which I have tried solving it is: a. Detrend the the price series using price2ret(); b. Apply AIC or PACF to estimate the order of the model c. Use garchfit(); Now... 10 Oct 2009 13:51
Normalizing RGB image
"Tony " <ewizlab(a)gmail.com> wrote in message <h31h96$h35$1(a)fred.mathworks.com>... The above discussed algorithm in code % Normalizing RGB image % Tony Gladvin George Image_rgb = imread('image.jpg'); Image_rgb = imresize(Image_rgb, [400 400]); Image_rgb = double(Image_rgb); %figure;imshow(u... 10 Oct 2009 11:38
histogram error
Hi, I am reading in a tif image file, and get the histogram of the image. However, getting the following error messages: Can anyone help me here? thanks song a = imread('song.tif'); figure, imhist(a); ??? Error using ==> iptcheckinput Function IMHIST expected its first input, I or X, to be two-... 20 Oct 2009 02:22
Transfer function using laplace
Hi, I have two discrete time signals (input and output). Using laplace transform I want to find out trasnsfer function. Futher, for any other output signal I want to use this trasfer function to caluclate the other input signal. I tried with usual commands of matlab like laplace, ilaplace but it is not giving proper a... 17 Oct 2009 10:41
nonlinear curve fitting with equal and unequal constrains
Hello, I need to fit the group of experimental points (X,Y) by special function where I have to find the coefficients which will give the minimum of leastsquareroot. The problem is that some of the coefficients related one with another by constrains. The standard function such as lsqnonlin could'n be applied because ... 10 Oct 2009 12:44
SVMTrain results to build an approximation function
Hello all, I have bulid a Neural Network (RBF) based on data I have gathered using the SVMTrain, I have also test the results from the SVMTrain on other data sets and got satisfactory results. Now I would like to take the SVMStruct which I got back from the SVMTrain procedure and extract the information from it in ... 10 Oct 2009 14:57
projection profile histogram
i need help for skew detection and correction of an document image.I want code for the same using projection profile histogram. ... 10 Oct 2009 06:11