Answered
axis of mesh
Hi, hard to guess what you want to do. I'll give it a try: you see on the axis the labels going from 1:m and 1:n? If you don'...

14 years ago | 0

| accepted

Answered
Simulink Integrator
Hi Daniel, you are missing the initial condition: the integration of sin is -cos(x)+X0, where X0 is at first arbitrary. Bu...

14 years ago | 1

Answered
fill() in parfor loop
Hi, you should be able to call fill with the corresponding matrices directly, something like f = fill(data(:, 3:2:9)', d...

14 years ago | 1

| accepted

Answered
Wrong data-size being returned by 'FETCH' (64-bit, DatabaseToolBx)
Hi, strange indeed. Does curs.Message display anything useful? BTW: I would first close curs, then conn, but that's of cours...

14 years ago | 0

Answered
how to clean the Command Line after pushing the button simulation start in Simulink?
Hi Ubaldo, which release and operating system are you using? I just tried (Win, R2012a), and it works fine: Menu File->Model ...

14 years ago | 1

Solved


Function composition
Write a function that accepts two function handles f and g and returns the composition h. That is, h = (f o g)(x) = f(g(x)) ...

14 years ago

Solved


Function composition - harder
Write a function that accepts an arbitrary number of function handles f_1, f_2, ..., f_n and returns the composition h. That is,...

14 years ago

Answered
Creating EXE with DLL attached
Hi, compiling dllfile.m into a dllfile.dll is possible with compiler, but you will not be able to call this dll from mainapp....

14 years ago | 0

| accepted

Answered
Automating Signal Storage Class in M script
Hi Brandon, you set the properties with "dot" notation: x = Simulink.Parameter; x.Value = 2.0; x.RTW.StorageClass ...

14 years ago | 0

Answered
uigetfile help (loading a file from different folder than mfile's)
Hi, when you want to read from another folder, you will have to use the full path: [stmfile, stmpath] = uigetfile('*.txt...

14 years ago | 1

| accepted

Answered
handles to subfunctions?
Hi Walter, interesting observation. It persists in R2012a. On first glance I would agree this should be caught by dependency ...

14 years ago | 0

| accepted

Answered
fetch from bloomberg!
Hmm, I'm pretty sure, reading data from bloomberg works only on a machine that has bloomberg installed: from doc blp c = bl...

14 years ago | 0

| accepted

Answered
problem in running mex file
Hi, the path to the lapack looks strange. It should be something like mex mex_find_epipolar_match.c c:\MATLAB\R2010b\ext...

14 years ago | 0

Answered
How to set up Matlab Compiler Runtime as compiler?
Hi Kay, which version of MATLAB are you using? In case you a) try to build a standalone application and b) you are using R201...

14 years ago | 0

Answered
Parallel computing and fmincon
Hi, I don't think this is the source of your problems, but nevertheless: you don't need global variables. Let's say your func...

14 years ago | 0

Answered
integer variable
Hi, x = int32(42); y = uint16(1); Titus

14 years ago | 1

Answered
One line code to alternate diff
Hi, not sure, if I understood correctly, but does this what you need? % some data x = 1:10; % n = 2 or 3 or ... ...

14 years ago | 0

| accepted

Answered
Insert a date into a sql query
Hi, you want to take the variables date_debut and date_fin, not the string itself, so: e = exec(conn,['SELECT date_publi...

14 years ago | 0

| accepted

Answered
inverse matrix in mexFunction
Hi Jane, the code looks fine to me. Maybe it's the calling mex file causing the problem? Titus

14 years ago | 0

Answered
Saveas (visible, off)
Hi Aadil, the problem I guess is the call figure(i) in saveas. Just use save(i, fullfile(...)); One minor issue: do ...

14 years ago | 2

Answered
C library for mvnrnd and randn
Hi Jane, if protecting IP is your concern, you might want to try pcode: it comes with MATLAB and encrypcts the algorithm as w...

14 years ago | 0

Answered
PerformIing fuzzy inference using a FIS structure file and an input data file. LCC compiler missing on 64bit matlab 2009a
Hi, I took another look specifically for fismain: so you can take any C compiler you like (e.g. Microsoft Visual Studio Expre...

14 years ago | 0

Answered
distance between vectors in matlab???
Hi, bsxfun is your friend: x = rand(85, 1); A = rand(85, 396); dist = bsxfun(@minus, A, x); dist2 = sqrt(sum(di...

14 years ago | 2

| accepted

Answered
PerformIing fuzzy inference using a FIS structure file and an input data file. LCC compiler missing on 64bit matlab 2009a
Hi Jawaira, LCC is not available on 64 Bit. Take a look <www.mathworks.com/support/compilers/release2009a/win64.html here> f...

14 years ago | 0

Answered
fail to link the callback function after compiler
Hi Fan, do you use command line or deploytool? For both you can add an entire folder during compilation: command line would b...

14 years ago | 0

Answered
fail to link the callback function after compiler
Hi Fan, is Diff_callback in another file, i.e., Diff_callback.m? In this case you have to either follow Walter's advice or ad...

14 years ago | 0

Answered
can we have browse option as in windows? how to find a path is valid or not?
Hi, 1) I guess you are looking for the uigetfile function, that opens a browse dialog. You could e.g. have in your GUI a push...

14 years ago | 1

| accepted

Answered
How to Build a Database query
Hi, it should probably read data=exec(connection, ['SELECT ' Columnname ' FROM TABLENMAE WHERE ' Columnname '>=("' varia...

14 years ago | 0

| accepted

Answered
pointers
Hi, use the function diff to find the jumps, i.e., the position where the difference is not zero: p = find(diff(x)~=0); ...

14 years ago | 1

| accepted

Answered
how to change .m file into .exe?
Hi, you will need to install the MATLAB Compiler Runtime on that "pc without MATLAB". The MCRInstaller is located in <matlab>...

14 years ago | 1

| accepted

Load more