Need help for "Indexing cannot yield multiple results"
Hi all, I'm practicing to create exponential random numbers. The following is my code. I can only run it once. When I tried to run the second time, it appeared the error message, "Indexing cannot yield multiple results". I can run my code again if I use clear all. How can I solve it? Thank you! function [exprand,... 10 Feb 2010 19:05
Problem with button callbacks on mouse down
A uicontrol pushbutton executes its callback when the mouse is RELEASED, rather than when it is PRESSED on the button. I need to have a button that executes the callback when the button is pressed. I tried a bunch of stuff and basically ended up writing my own button using uipanel (see below). This works, except tha... 10 Feb 2010 19:05
undefined function error in 2009a, but not in 2009b
Hello All I am doing simulink simulation with some power system blocks. On simulating, I get an error "undefined function or variable 'unit'", however nowhere in my model is this word defined. Strangely enough, this error disappears on using 2009b, but exists in 2009a. Would you kindly help me or comment on this? Tha... 10 Feb 2010 14:32
Outputting time steps with ode15s
Is there a way to have ode15s output the time step it is at as it iterates? I have a simulation that is running for an extremely long time and it would be helpful to be able to see what time step it was on. Thanks, Heather ... 13 Feb 2010 17:10
Caliper reading using RS-232 -project help
Deal All, I'm having a few problems in my project which requires reading in measurements from a digital vernier caliper using Matlab. My current plan is to trust this circuitry that is required http://www.compendiumarcana.com/caliper/ but the programme is no good as needs to read on to Matlab for the rest of the ... 10 Feb 2010 13:23
Outputting time steps with ode15s
Is there a way to have ode15s output the time step it is at as it iterates? I have a simulation that is running for an extremely long time and it would be helpful to be able to see what time step it was on. Thanks, Heather ... 10 Feb 2010 13:23
reading filetime formatted times and dates (1601 epoch)
I've been trying to read filetimes from a My-SQL database into Matlab, i.e. convert them to a Matlab serial date number. And I'm not very succesful at it. There's a function to perform (part of) this action called "FileTimeToSystemTime" in the windows API (kernel32.dll). There's also a DateTime.FromFileTime() metho... 11 Feb 2010 03:55
mclInitializeApplication failing on Windows 2003
I have a managed c++ application which internally call Matlab C++ shared library. Application is working fine when I run it on Windows XP and Windows 7 but not on Windows 2003 R2. The issue is, application is failing on mclInitializeApplication(NULL,0) call (always returning false) in Windows 2003 R2. VC++ applicati... 10 Feb 2010 11:07
Using Simulink Design Optimization for parameters contained in embedded M-file
Hello, I am looking for help or advice concerning the use of simulink design optimization to estimete parameters contained in an embedded m-file in my model. I can't find a way to add these as variables to be estimated in the GUI and the user guide doesn't mention it. Thanks ... 10 Feb 2010 14:31
Help, Fsk and Bpsk.
Hello, I need your help, I am a new user of Matlab, and the problem is that I have a task to do for Friday, and I really don't know how to do it. So if you can give me some ideas or write a small program it will be great. I need to write a short program that reproduces thees 2 drawings: http://www.flickr.com/p... 10 Feb 2010 13:23