how to vectorize "sum if"
if i have a struct to hold attendance information at a school and it looks like: course.schedule course.topic course.attendance there are 10 courses, schedule is a list of dates, ordered sequentially with no gaps and correspond to a similarly ordered attendance numbers how would i find the total attenda... 10 Nov 2009 19:41
gaplotpareto
Hi I'm using 'gamultiobj' and i want to vary the crossover from 0 to 1. For each crossover I want to have the gaplotpareto plot. How can i do this. Here is a part of my code for n=0:0.1:1 options = gaoptimset(options,'CrossoverFraction', n); [x,fval,exitflag,output,population,score] = gamultiobj(@f_OBJ_GA,N... 10 Nov 2009 11:49
Video\Image Processing Blockset
Hello Everyone, I have a problem, basically I am running an edge detection demo in the Video\Imaging Blockset, I am using a camera which the Matlab environment supports. The problem is that when I connect and select this camera within the demo and start the simulation the following error message is diplayed, Ca... 10 Nov 2009 10:40
Plotting periodical measurement data with jitter to matlab
Hi, I'm taking (periodical) voltage data with data acquisition board. I would want to postprocess the data in a manner that I would recognize what is time of each period, and make a plot which plots measurement confidence interval lines, lets say 95%. How to recognize period, if it is more complex than combinatio... 10 Nov 2009 08:03
Pixel Scan
Image i get is from: http://salmaworld.files.wordpress.com/2009/09/beautiful-face-wallpapers_11213_1280x1024.jpg But i already crop it become small only can see the face. I = imread('face 2.jpg'); [X Y] = size(I); for i=1:X for j = 1:Y/3 if (I(i,j,1)<90)&&(I(i,j,2)<80)&&(I(i,j,3)<100) ... 10 Dec 2009 23:23
RBF neural network - How to estimate "spread"
Hi All, In an RBF neural network what is the best way to get the spread? In my problem, it seems like if I use the default spread (=1.0) I get spikes at the points here data is available and constant values otherwise. If I increase spread to 10.0, I get a regular curve but I am not sure how to get an optimal value ... 29 Nov 2009 20:07
problems with bwboundaries
Hello, I'm having weird trouble with the function bwboundaries. It seems straightforward enough, and all works well until I try to plot the boundaries. All the examples I've seen use something like this: [B, L] = bwboundaries(Ibw, 'noholes'); hold on for k=1:length(B) boundary = B(k) plot(boundary(2... 11 Nov 2009 10:07
conditional sum
Hei I have a matrix dd(5559 x 2). dd(1:365,1) = 1993, dd(366:730,1)=1994, etc. dd(1:31,2) =1:31, dd(32:59,2)=1:29. I want the cumsum of dd(:,2) under the condition that dd(:,1)== 1993, dd(:,1)=1994, etc. How do I do this? Johannes ... 10 Nov 2009 09:31
how to using multiple values of vector for ODE solver equation
i have problem in my program i created one variable 'v' in main file , the value of that variable is used in the equation in other program as global variable. when i run main program having ode45 solver for that equation having variable 'v' it gives error ??? Subscript indices must either be real positive integers... 18 Nov 2009 10:02
ode45
i am doing my ME chemical engineering. I want to solve the reaction rate equations using ode45 (Runge-kutta methode) my reaction scheme- A __k1____ B ____k2____ C ___k3____ D | | | |_____________| | ... 9 Nov 2009 09:57