fmincon function
Sorry for my typo mistake: [x,fval] = fmincon(@myfun1,x0,A,b,Aeq,beq,lb,ub,@mycon,options) I have given 6 nonlinear constraints in the 'mycon' function that consist of 96 different variables and the function to be optimized contains the same 96 variables. I have given all ones for the 'x0' matrix. ... 7 Apr 2010 15:45
renaming financial time series objects
Hi, I am trying to rename two time series data within a financial time series object. The data is obtained as follows – m1_dates = intersect(spx_div.dates,b_yld.dates); m1_data = [spx_div(datestr(m1_dates)),b_yld(datestr(m1_dates))]; m1_dates is series of dates and m1_data(1) m1_data(1) ... 5 Apr 2010 11:36
count image files in active directory
Hello, How can I count the image files in active directory ? For instance, if I have 9 images in the active directory, I want to write a code that counts the number of images in my directory and returns this number: 9. Thanks. ... 6 Apr 2010 19:50
how to randomly select pixels from an image
Hello all, i want to randomly select 1000 pairs of two adjacent pixels from an image to calculate their correlation coefficicent after that. Can any one help me please cause i'm stuck here for along !! and thanks in advance ... 5 Apr 2010 12:44
How to prevent GA premature and speed convergence
Dear All, I am working with a optimization problem with the number of 193 decision variables, and am using ga to solve it. My GA parameter setting: pop size = 193*3 generation=300 other parameters are default I found: 1 GA premature: after generation 100, the objective value does not reduce significantly, ... 7 Apr 2010 13:29
fmincon function
I have been using fmincon function of the form [x,fval] = fmincon(@myfun1,x0,A,b,Aeq,beq,lb,ub,@mycon,options) I have given 6 nonlinear constraints in the 'mycon' function that consist of 96 variables and the function to be optimized contains the same 96 different variables. I have given all ones for t... 5 Apr 2010 10:28
Johnson's Single-Source sequential sorting algorithm
hey does anybody know how to implement the johnsons single source sequential sorting algorithm (Parallel) in MATLAB?? i would appreciate any help.... ... 5 Apr 2010 10:28
variable load
Hi, I am a user of MATLAB 7.6.0(R2008a) I need to simulate simple wind system and I have a set of load profile that varies throughout the day(24hours). However, the RLC load in simpowersystem can take only one specified value and it doesn't allowed for varying load unless using load step change but that is tediou... 5 Apr 2010 10:28
Trouble with dbstop, CAT, and timer functions
I have a control loop driven by a timer, in case it makes any difference, and at some point during the script running, the script crashes out with the error "CAT arguments dimensions are not consistent." I know this error means that somewhere along the line I'm concatenating numbers or strings together, but lasterr ... 5 Apr 2010 17:13
how to get continuous images display using web cam
Hello, please help me. i have connected web cam to PC. now i wanted to display caputred images by webcam continuously. i am using following code. vid = videoinput('winvideo'); % Configuring Parameter set(vid,'FramesPerTrigger',200) set(vid,'FrameGrabInterval',3) vid.TriggerRepeat = inf; s... 5 Apr 2010 10:28