Syntax question about mexGetVariable( )
I’m attempting to pass a single integer variable from a GUIDE-generated m-file to a C-MEX s-function c-file. I am using the following strategy: 1. In the gui m-file, I am assigning the variable, named Rating, with value UserRating, to the base workspace with the code: Assignin(‘base&#8217... 18 Feb 2010 17:20
replace values in a cell with nan
"Jan Simon" <matlab.THIS_YEAR(a)nMINUSsimon.de> wrote in message <hljog3$5sm$1(a)fred.mathworks.com>... Dear Andrew! I am trying to figure out a way to replace values in a cell array with NaN. I can do it with a loop, but I have somehow got myself into the CELLFUN habit and don't much like the look of the loop... 18 Feb 2010 13:57
a matrix from struct
Hi the following is my code. for k = 1:length(p) nm = [pk).point1; p(k).point2]; if ( h(k)< 40) if (Length_of_p(k)> 66) nm = [p(k).point1; p(k).point2] end end end The output is nm = 5 6 6 7 nm = 44 3 11 27... 18 Feb 2010 12:48
MATLAB cannot cope with this Jacobian matrix?
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi, I have a 5 * 5 Jacobian matrix whose eigenvalues need to be found. Let's call J this Jacobian matrix. I then do eig(J) in MATLAB, and, after some minutes (~40 min.), I receive the so-magic message == Error, (in expand/bigprod) integer too large in context (in... 18 Feb 2010 16:13
Photovoltaic Maximum Power Point Tracking
"Peng Lei" <penglei(a)uwm.edu> wrote in message <heh4m1$g95$1(a)fred.mathworks.com>... Hi, I am doing research on photovoltaic and doing simulation with Matlab. Dose anyone know what kind of technique for maximum power point tracking is the most widely used in industry? And how does it deal with shading effect. Y... 18 Feb 2010 12:48
help needed in making blocks in an image...
Hi, Iam doing a project on image compression and to use DCT on an image i need to divide the image into 8*8blocks. blkproc is the command which only functions on the blocks which are generated.Is there any other command in matlab which allows formation of blocks . Else how can we write a nested for-loop to select th... 19 Feb 2010 09:50
Low resolution in avi-files, why?
I have a matlab figure from which I am making an avi-file as it updates. First I used getframe which worked fine. However, this function requires that nothing is obstructing the figure on the screen (such as other programs). A way to solve this problem is to skip getframe and call addframe with the handle to the axes ... 22 Feb 2010 10:43
replace values in a cell with nan
Dear Andrew! I am trying to figure out a way to replace values in a cell array with NaN. I can do it with a loop, but I have somehow got myself into the CELLFUN habit and don't much like the look of the loop: After some nice solutions have been found, could you be so kind and compare the execution speed with a... 18 Feb 2010 11:40
Cognitive Radio MAC design
Hi guys, Hope you all do well.Actually i'm working on wireless cognitive radio networks and specifically on the MAC protocol design part. I'm wondering if any one could help me with some sample codes based on CSMA protocol to be implemented in an integrated wireless environment (combination of Primary and Secondary ... 18 Feb 2010 11:40
Protected Simulink model with expiration date
Dear community, I must protect the intellectual property of a Simulink Model. I have already generated a Model Reference Protected (a new feature of Simulink 7.4) that works very well. But now I want to introduce in my model an expiration date, just like a temporary license. Do you have any suggestion to... 18 Feb 2010 12:48