First  |  Prev |  Next  |  Last
Pages: 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613
dropping numbers after the decimal
Is there any way to drop the numbers after a decimal? For example if I have 2.9 I want to drop the .9 and get an answer of 2. So far I have only been able to find how to round up, but I need to be able to round down. Thanks very much, Michael ... 27 May 2010 14:49
integer programming with matlab
Hi I am using matlab for integer programming optimization with nonlinear objective function and nonlinear constraints. I will use Genetic Algorithm as a search method. I am a new user of Matlab, as long as I know, GA toolbox in Matlab does not have Integer programing and I should custom my own creationfcn and mutu... 27 May 2010 14:49
Rearranging arrays.
Hi, thanks in advance for your input. I'm a super newbie Matlab user, so also thanks for your patience! :) I have a collection of data files: "z.txt" that are x,y pairs. The x column in each data file is the same. I have written a program that will choose a particular x value. I need to find the y value for ... 27 May 2010 14:49
Calculating the distance between an object and our camera
Dears, Kindly Can you help me in Calculate the real distance between an object and a camera( that we are seeing the object through it, for any object in any snapshot. in using matlab & a camera (320*240) Resolution. Can you give me an example please? Thanks in advance. Reagard, Laith ... 27 May 2010 15:56
Problem with Matlab on Ubuntu Linux
"Stefan " <qw(a)qwer.de> wrote in message <hcfp7l$hct$1(a)fred.mathworks.com>... this worked perfectly for my wih Matlab R2007a under Ubuntu 9.10 Best Stefan The trick doesn't work anymore under 10.04. I get: [code] Failed to start the Desktop: Failure loading desktop class [/code] Any other Ideas? Be... 1 Jul 2010 23:20
Operating on a large 5D dataset
Hi, I am working on a MATLAB script which uses a database of ~300,000 2D matrices, one matrix for each position in a 3D space (x,y,z), each 2D matrix is accessed multiple times during the script. At present I am accessing these matrices from disk and each has a unique filename indicating the x,y and z position. I... 27 May 2010 13:43
create a sine wave
Hi, I have to create a sine wave with an amplitude of 1, frequency of 10 kHz for a period of 0.2 sec. Using a sampling frequency of 20 kHz. i have the following (which I think should work): t=[0:1/20000:0.2]; A=1; f=10000; y=A*sin(2*pi*f*t); plot(t,y) but the figure looks bad, can someone tell me what I ... 27 May 2010 13:43
ssSetSampleTime()/ssGetSampleTime() in C-MEX s-function
If I set the sample time to -1 (inherited), using the ssSetSampleTime() macro, the corresponding ssGetSampleTime() macro returns different things (in other routines), depending on where my C-MEX s-function block sits. If it's at the top level of the model, or in a simple subsystem, the value returned is the model's t... 4 Jun 2010 16:58
ifft of fft scaling
Hello, Im trying to go back and fourth with the ifft and fft. Im having a hard time getting the orignal signal back. To simplify. can we just look at the fft example which does a FFT of a sin wave. http://www.mathworks.com/access/helpdesk/help/techdoc/ref/fft.html so starting with this example, how do we get t... 27 May 2010 13:43
Multiple Bar Graphs
I'm attempting to two sets of data on the same graph using a bar graph. The X-axis data is the same while the Y-axis data is different. All data contains the same number of data points. My problem is that the following code only displays the final bar graph. Any help would be greatly appreciated. Oh, I am doing this vi... 27 May 2010 13:43
First  |  Prev |  Next  |  Last
Pages: 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613