Accelerating the code by running a loop in C/Fortran?
Hi guys, I am doing a large simulation and at each iteration I am (among other things) evaluating gaussian weight integral over R^s. I use a simple (crude) MC approximation of the integral by drawing 5000 points. The code I put below takes the bulk of time (around 14s per each iteration). I would be grateful if any... 7 Apr 2010 06:45
video compression using matlab code
Hi all, my problem with video compression. assume we have 100 images, how can we compress and regenerate video from those images using matlab code.( i.e the no. of frames will be decreased after compression). your ideas will help me so much in my research. Thanx in advance ... 3 Apr 2010 07:09
Help File: Connect to Existing Excel Application
Dear All, It says here (http://www.mathworks.com/access/helpdesk/help/techdoc/matlab_external/brd05nl.html#f134682) that Matlab can connect to an existing Excel workbook via 1. excelapp = actxserver('Excel.Application'); 2. wkbk = excelapp.Workbooks; 3. wdata = wkbk.Open('d:\weatherlog\weekly_log.xls'); But ... 3 Apr 2010 09:18
Use filename
Hi, Here's my question: I'm working with a ".txt"-file which I load into matlab. I also need a part of the filename (number) to be saved into a variable. How should I do this? For example, I have a file "car_137.txt": - how should I save 137 as a number (in lets say for example an unknown "a") Thanks in adva... 3 Apr 2010 09:18
Using Slider on a Plot
Hi, I asked this before and searched a lot of times but i couldn't find a solution. My want to plot 3 graphs and change one of them's value with a slider. But each time I use the slider to change the value, it plots another graph and keeps the old ones (like this: http://i40.tinypic.com/2uelhcl.jpg). Here is ... 3 Apr 2010 11:30
need help with arrays
hello I have an array from 0 to 15 and I want to ignore element from 0 to 3 and calaculate from 4 to 12 and ignore the rest how can I do that thanks in advance lana lang ... 3 Apr 2010 06:04
for cicle with struct field as a counter
Hi to all, Can anyone say me how to use a field of a struct variable as a counter for a FOR cicle? When I use for x.test=1:1:10 I get | Error: Unexpected MATLAB operator. of course using for x=1:1:10 is correct Thank you ... 5 Apr 2010 00:44
setting upper bound and lower bounds in Optimization toolbox
Can any one tell me how we can decide the upper bounds and lower bounds for an optimization problem having three constraints equations and three variables. eg. { x(1)+x(2)+x(3) =>1 3*x(1)+2*x(2)+x(3)<=6 x(3)>x(2) >x(1) } Thanks in advance. ... 3 Apr 2010 06:04
rounding up symbolic expression to 3 decimal places
20*a-2147354487090485/37778931862957161709568*d+4851672432956989/18889465931478580854784 i want above symbolic expression to round up to 3 decimal places. how can i do that? (in this expression a, d are symbolic variables) ... 3 Apr 2010 03:57
Select important data from an array
Hi everyone. I have a 2dimensional array having certain important data (x-y coordinates of an image). This data is seperated by non important data let it be 'x'. E.g. x x x 2 4 6 8 x x x x 5 4 3 2 1 x x x x 6 5 4 3 7 6 8 I need to select (2 & 8), (5 & 1) , (6 and 8) i.e. the first and last element of each set ... 3 Apr 2010 03:57