First  |  Prev |  Next  |  Last
Pages: 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260
Passing a MATLAB function to a C function
Hi. I have the following setup: 1) a function of several variables implemented in MATLAB which I want to optimize, i.e. to find variable values for which the function gives minimal value, 2) a very good local optimization procedure implemented in C which I want to use repeatedly to optimize the above mentioned fun... 15 Jul 2010 08:45
computiting quality factor (Q) for JPEG
Hi, Does any one know how can i compute new quality factor (Q) for JPEG instead of using standard quality factor i.e 50 % . As in JPEG we use below standard factor %% Qualtity factor = 50 Q =[16 11 10 16 24 40 51 61 12 12 14 19 26 58 60 55 14 13 16 24 40 57 69 56 14 17 22 29 51... 15 Jul 2010 05:32
using the clock value
Hi all, I'd like to know how to store the clock value of simulink. In fact, I'd like to do something like that: if clock=time1+alpha out3 = true out4 = false end when the clock value is equal to time1+alpha (alpha is a short time) then my outputs (from the embedded matlab function) turn true for o3 and tru... 26 Jul 2010 04:03
RTW C callable functions provided with the I/O hardware.
Hello I need to generate C code from simulink model of control system for PLC controller with processor supporting C. I have libraries with functions for inputs and outputs supplied by manufacturer. My question is how can i use those functions in simulink model? I'm trying to implement them in S-function (... 15 Jul 2010 05:32
Setting colwidth for actuvex FlexArray
Hi, I've been trying to modify the "oceanmap" gui on the file exchange (http://www.mathworks.fr/matlabcentral/fileexchange/8350) for my own purposes. I want to set the column Width in code, but am getting an error that I don't understand. I have pasted my code for setting the column headers and the last li... 15 Jul 2010 05:32
Too narrow confidence intervals from generalized Pareto fit
Dear all, I have a problem with the confidence limit given by gpfit. We use a generalized Pareto distribution to fit data. I take the confidence intervals from the gpfit function, and plot the compelementary cdf i.e. F=1-cdf together with the data with the confidence limits. Here is my question: The confidence int... 16 Jul 2010 03:23
Setting colwidth for actuvex FlexArray
Hi, I've been trying to modify the "oceanmap" gui on the file exchange (http://www.mathworks.fr/matlabcentral/fileexchange/8350) for my own purposes. I want to set the column Width in code, but am getting an error that I don't understand. I have pasted my code for setting the column headers and the last li... 15 Jul 2010 04:28
How to draw 2d Histogram in 3d
The following code draws histogram for Probability density function(pdf):- mean1 = -0.5; mean2 = 0.5; var1 = 0.1; var2 = 1; z=linspace(-10,10,10000); pdf1=mean1+sqrt(var1).*randn(1,10000); pdf2=mean2+sqrt(var2).*randn(1,10000); pdf(1,:)=0.1.*pdf1+0.9.*pdf2; hist(pdf(1,:),z); Now I want to repeat these ste... 15 Jul 2010 04:28
Hexahedral mesh creation
I'm trying to transform a solidworks file into a hexahedral mesh in order to be able to multiply it by a jacobian and transform that into a cube to be put into a finite difference scheme with the intent being to give the program the ability to perform over irregular surfaces. So far I've created meshes in solidworks an... 15 Jul 2010 04:28
Generating C code using the Real Time Workshop
Hi all, I have a SIMULINK model that contains in it a couple of Level 2 M-File S-Functions. This model needs to be run interactively with a third party-solver. For this, I need to convert this model to C code and generate dll's which I can then link with the third party solver. The RTW tool provides one way of ... 22 Jul 2010 01:38
First  |  Prev |  Next  |  Last
Pages: 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260