a simple question
Hello, I have a simple question: Where does the error -8.8818e-016 come from? thank you in advance. aa=[-0.6033 0.4265 0.9790 -0.1211]; bb=[10 10 10 10 ]; cc=aa*bb' cc = 6.8110 cc - 6.811 ans = -8.8818e-016 ... 24 Mar 2010 21:39
Passing structure of pointers as an argument
There is a mechanism called "function prototype control" that may be what you are looking for. "Piotr S" <sawek84(a)wp.pl> wrote in message <hl196s$ojo$1(a)fred.mathworks.com>... Hi All, I want to generate C++ code using RTW embedded coder so that the generated function expects a structure of pointers as an input ... 24 Mar 2010 21:39
GMM estimation file
I'm trying to use GMM estimation in matlab, with the function created by Cao Zhiguang. I have the following code: N=500; sims=100; beta=[0;1]; betaGMMn=zeros(sims,1); for i=1:sims X=[ones(N,1) rand(N,1)]; mu=randn(N,1); Y=X*beta+mu; betaGMMnorm=gmmestimation('linearmodel01',X\Y... 25 Mar 2010 14:58
Exposing Variables to Callbacks
Dear All, I'm sure it's not that hard, but I can't seem to work out how to expose variables declared outside the scope of a callback within the callback. So, I've got a function like this function whatever... % Create a GUI here OutsideScope = 3; function popup_Callback(source, ...) % And I want ... 26 Mar 2010 11:57
Image too big: the image is scaled, but i need the true values
This is my file ImgMask: img=imread(imgOR); figure(); imshow(img); pos=zeros(n,2); pos=ginput(n) imgOR is 2400x1800 My output is: Warning: Image is too big to fit on screen; displaying at 42% scale. In truesize>Resize1 at 308 In truesize at 44 In imshow at 161 In ImgMask at 9 pos = 1... 2 Apr 2010 14:49
Fitting data
I have 3 data-sets A, B, and C and each of which contains 728 data points. A and B both are same physical quantities but A is modeled data and B is measured data. A is a function of C. Now i need to change C values such that A values fit B values. Please suggest how can i do that in Matlab..thanks in advance... ... 25 Mar 2010 04:37
Compilers for 64-bit MATLAB r2008a
I have the 64-bit version of MALAB R2008a. I am trying to load libraries compiled in fortran and C. The loadlibrary function tells me I need Microsoft Visual C++ 2005. The current MS compiler is 2008, moving to 2010. Are these later compilers supported? Alternatively, if I compile under Cygwin using gcc or f77, ... 24 Mar 2010 18:08
Finding x & y points from graphs
In my model i have found acceleration with respect to time. How do i plot this on a graph and find the area under the curve? Do i use 'trapz'? do i need to plot the graph first? ... 24 Mar 2010 20:30
MATLAB won't render tilde (~)
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi, In MATLAB, when I press the combinationf keys which normally lead to a tilde (~), nothing appears. Why? It works under all the other apps. Thanks. - -- Merciadri Luca See http://www.student.montefiore.ulg.ac.be/~merciadri/ - -- The dog is nude though... 27 Mar 2010 04:25
Simulink Help please
Hi, I need to send the data #0P1500 from Simulink serial, but as we all know Simulink does not allow character, and it converts them to Decimal. My problem is this, I have a servo controller in which accepts the data #0P1500 to change the angle of the servo motor, but since Simulink is sending that data in decim... 24 Mar 2010 18:08