Answered
Sparse matrices in Simulink
The MATLAB sparse matrix type is not supported with any block in Simulink as far as I know. You need to convert your matrix to a...

15 years ago | 0

| accepted

Answered
How can the previous value of a block input be accessed in a tlc file?
There is no direct way to access the previous input of an S-function in TLC, just as there is no way to access it in the corresp...

15 years ago | 0

Answered
Shared Utilities template file
Typically, the <http://www.mathworks.com/help/toolbox/ecoder/ug/f6010dfi4.html#bp9ikmj-1 CGT files> associated with the target c...

15 years ago | 0

Answered
import user32.dll and use the 'BlockInput' function in it
Try: addpath('C:\WINDOWS\system32\') loadlibrary user32 winuser.h If you continue to see the same error, try: lo...

15 years ago | 0

Answered
Compiling a Matlab Builder for Java class for an older version of Java
As per the discussion on <http://stackoverflow.com/questions/1766216/exception-while-compiling-wrong-version-50-0-should-be-49-0...

15 years ago | 0

| accepted

Answered
need SSIM.m code
<http://www.mathworks.com/help/techdoc/ref/nargin.html nargin> returns the number of input arguments passed into the function -...

15 years ago | 0

Answered
Need to put a max value on my variable
Could you have your code call a helper function (say addOne) that saturates the value at 50? That seems like the simplest soluti...

15 years ago | 0

Answered
No Piccolo F28027 Embedded target in Matlab 2011a 64bit?
See <http://www.mathworks.com/support/solutions/en/data/1-579TVF/index.html?solution=1-579TVF Which version (32 or 64-bit) is in...

15 years ago | 0

Answered
cannot dynamically load executable
First, I would recommend using the nm or ldd utilities to figure out all the library dependencies that are not being resolved (i...

15 years ago | 0

Answered
Running counters using S-functions
If this is all you want your S-function to do, then you can simply implement your own subsystem (using a unit delay block to sto...

15 years ago | 0

| accepted

Answered
Using Coder's generated C files in Visual Studio ?
Have you included faceImage.c in your Visual Studio project? Note that if you are calling C functions from C++ files, you ne...

15 years ago | 2

Answered
open URL in Media Player
Have you tried using the <http://www.mathworks.com/help/techdoc/ref/open.html OPEN> command?

15 years ago | 0

Answered
How to Run Simulink Model from Matlab while in External Mode
This section of the documentation explains how to achieve that: <http://www.mathworks.com/help/toolbox/rtwin/ug/f8790.html#f2787...

15 years ago | 2

Answered
MATLAB Builder for .NET 1.1
It appears that support for .NET Framework 1.1 was <http://www.mathworks.com/help/toolbox/dotnetbuilder/rn/bry495w-1.html#bry495...

15 years ago | 0

| accepted

Answered
How to use generated matlab code (.h .dll .lib) in c++ program
See <http://www.mathworks.com/help/toolbox/compiler/f2-972343.html#f2-999458 C Shared Library Target > Calling a Shared Library>...

15 years ago | 1

| accepted

Answered
need help with MATLAB reference libraries.
The <http://www.mathworks.com/products/matlab/demos.html?file=/products/demos/shipping/matlab/mlcomiface.html Programming with C...

15 years ago | 0

| accepted

Answered
How can I learn Matlab on Image processing Using C programming
See: http://www.mathworks.com/matlabcentral/answers/1148-how-to-learn-matlab and http://www.mathworks.com/matlabcentral...

15 years ago | 0

Answered
GPS data generator
It seems there is a third-party product that enables this: <http://www.mathworks.com/products/connections/product_detail/product...

15 years ago | 0

| accepted

Answered
RTWT error
This may be related to <http://www.mathworks.com/support/bugreports/527618 Bug# 527618>. To verify the length of the MATLAB p...

15 years ago | 0

Answered
What does a Distributed Computing Server license of 16 workers mean?
As far as my understanding goes, it means that the MATLAB Distributed Computing Engine can be configured to work with a cluster ...

15 years ago | 1

Answered
Specify runtime path with mex
I would recommend separating out the compiler and linker flags and pass them into MEX using something like: mex -v CFLAGS=...

15 years ago | 1

Answered
Simulink S function builder Output Code
TT_Tools_demo.m is a MATLAB function, so it cannot directly be called from a C-MEX S-function. Is there a reason you would like ...

15 years ago | 0

Answered
Problem with external matlab to VC++ 2008
It is possible that your Visual C++ project is configured to compile a 32-bit application (so it cannot recognize the 64-bit bin...

15 years ago | 0

Answered
Blackfin and Realtime WS
Have you tried checking the "Generate code only" box in the Real-Time Workshop or Code Generation pane in the Configuration Para...

15 years ago | 0

Answered
Linking MATLAB GUI to a website
I don't think it is possible to directly deploy a GUIDE GUI over the web. You can however compile your code for numeric calculat...

15 years ago | 0

Answered
MEX with fortran object files
You need to write a gateway C/FORTRAN MEX-function that calls into your object file. The <http://www.mathworks.com/help/techdoc/...

15 years ago | 0

Answered
What are some tips for writing efficient C/C++ code for S-Functions?
Regarding Lookup Tables vs. S-Functions, it really depends on your application. Lookup Tables may be faster than (complex) compu...

15 years ago | 0

| accepted

Answered
How to use the polyfit block in Simulink
How are you feeding in 'y' to the "Least Squares Polynomial Fit" block? The length of the input to the block must be the same as...

15 years ago | 0

Answered
How do I get the minor time in a MATLAB s-function?
Actually, block.CurrentTime gives the value of the current time-step in the simulation (could be either major or minor). The blo...

15 years ago | 3

| accepted

Answered
Compiling Matlab code for deployment
Even though the default installation of Visual Studio (on 64-bit machines) installs only 32-bit compilers, you can choose specif...

15 years ago | 0

Load more