xpc udp
I am using MAtlab R2007b, XPC Target. I lose some of the incoming UDP packets, the target computer sends about 4 UDP packets in one time step to the computer XPC target works (25 HZ) and the host computer stops sending for a time. I do not want to increase the frequency of the model in my host computer. Is there any wa... 5 Apr 2010 01:49
ginput / line help
i'm trying to draw a green star on a picture imported to matlab named 'file'. i'm taking user defined coordinates and trying to connect the dots, but the output is a weird looking pentagon instead of a star. how do i change the code below to plot a star given 5 random inputs of coordinates? imshow(file) [x y] = g... 5 Apr 2010 20:35
??? Undefined command/function 'Guessing'.
I have typed example below into the Matlab Program. Unfortunately, the message that have been displayed are "??? Undefined command/function 'Guessing'.". What should I do with it? I will attached the example below at here. % % This is file guess0000.m % real_number=rand(1); %Generate a number between 0 and 1 rea... 5 Apr 2010 02:54
AR and MA processes
Hello, I am new to Matlab as well as time series analysis. I usually use R for stats but wanted to dip into Matlab waters. My question is that I have data that I need to fit AR(1) and MA(1) models to. I need it to use the MLE method. In R I could have used ar.mle() but the closest function I found in Matlab was garchf... 5 Apr 2010 20:34
find and replace elements?
i have a string string= cellstr(char('Apple','Pie','Lemon')) cf= cell(5,5); r = randperm(numel(cf)); r = r(1:numel(string)); cf(r) = string(randperm(numel(string))) I want to replace anything that is from the "string" to "monday" in the cf cell array. ... 5 Apr 2010 09:23
Detect noisy points in curve
I have a smooth x-y curve (one x value corresponds one y value) with some noisy points. The noisy point's y value differs largely from its neigbhours. How can I detect the noisy points? Thanks superZZ ... 10 Apr 2010 14:36
random number generation
How to generate random numbers in the interval [0 1] ? ... 23 Apr 2010 17:33
loop vs matrix multiplication: speed vs memory
Hello, I've had a problem that's been bothering me for a couple of weeks now and wanted to see other people's opinions, Apart from cases like this: http://www.mathworks.com/matlabcentral/newsreader/view_thread/255653#664380 where the for loop is actually more efficient than all vectorized alternatives, as a r... 17 Apr 2010 11:52
Two listboxes and a Pushbutton
Hello Everyone, I am having some issues using the Listbox feature of the GUI programming interface. I have two listboxes, A and B. I also have two PushButtons named "Add" and "Delete". Listbox A displays a list of products. I select a product from ListBox A and I press the "Add" button. This product should t... 4 Apr 2010 21:29
How to get gradient of the curve, please help me
I have first mode shape values according to the beam length. beam length mode shape value 0 -0.000230888 0.3 0.167612145 0.6 0.355166168 0.9 0.497419808 1.2 ... 4 Apr 2010 21:29