Answered
I am working in Matlab7.I want to know how to program a microcontroller (8051) in Matlab. how to generate hex code and how to deploy it.
You can use the <http://www.mathworks.com/products/matlab-coder/index.html MATLAB Coder> product to generate ANSI/ISO compliant ...

12 years ago | 0

Answered
Simulink exportation in C/C++ : input array size
You can use signals of undetermined size in Simulink using <http://www.mathworks.com/help/simulink/ug/variable-size-signal-basic...

12 years ago | 0

Answered
How to convert C++ simulations to Simulink?
To bring C++ code into Simulink, you need to create a C-MEX S-function wrapper so that it can be used like any other S-function ...

12 years ago | 0

Answered
Force Update a Block Output at Minor Time Steps
As far as I know, these blocks are internally configured to be <http://www.mathworks.com/help/simulink/ug/types-of-sample-time.h...

12 years ago | 0

Answered
Simulink - vary which part of a structure is accessed in a matlab function block (using a bus)
I think the only way this code might work is if the variable |which_force| is configured as a non-tunable parameter of the block...

12 years ago | 0

| accepted

Answered
Command-duality is not supported to execute "mex -setup"
You are probably calling a function using the command syntax, instead of the function syntax. The former syntax is not supported...

12 years ago | 0

Answered
Simulink C2000 linux Error calling generated SFunction, trasf_sfun. Invalid MEX-file
During normal mode simulation, Simulink generates a MEX-file from Embedded MATLAB Function blocks for execution. The MEX-file ty...

12 years ago | 0

Answered
Generate DLL from Simulink model
You can use |ert_shrlib.tlc| if you have the Embedded Coder product to generate generic DLLs from your Simulink model. The relev...

12 years ago | 1

| accepted

Answered
What is the advantage of defining a variable as workspace object?
Using just a regular variable allows you to define a value for a parameter. However, using a <http://www.mathworks.com/help/simu...

12 years ago | 0

Answered
Generation of an S-function block in simulink by integrating legacy C-code through the legacy code tool
Seems related to <http://www.mathworks.com/support/bugreports/661855 Bug# 661855>. A patch is available on that page.

12 years ago | 0

| accepted

Answered
When using Variant Models is it possible to select a model at run time, instead of at compile?
No, Variant Subsystems cannot be selected at run-time. You need to use <http://www.mathworks.com/help/simulink/ug/about-conditio...

12 years ago | 1

| accepted

Answered
How to indicate in MATLAB GUI when simulation in SIMULINK is complete?
You can use |get_param('sys','SimulationStatus')| to query when a model has finished simulation. This should return |'stopped'| ...

12 years ago | 0

Answered
Is there any way to conditionally trigger a subsystem having multiple sample time blocks in Simulink?
You might want to use an <http://www.mathworks.com/help/simulink/ug/enabled-subsystems.html Enabled Subsystem> and use the condi...

12 years ago | 1

| accepted

Answered
Why MATLAB fn block and S function block are not supported for RTW code generation?
The <http://www.mathworks.com/help/simulink/slref/interpretedmatlabfunction.html Interpreted MATLAB Function> block is not suppo...

12 years ago | 0

Answered
Load a .dll file in Simulink
Yes, this should be possible. I would recommend that you first achieve the interface using plain MATLAB code. For help, see <htt...

12 years ago | 0

Answered
How to ensure generated code is compatible to the microcontroller?
Not sure exactly what you're asking here, but as described on the <http://www.mathworks.com/products/simulink-coder/description1...

12 years ago | 0

Answered
How to detect Enable/Trigger/Function call subsystem ?
It should be: en_ports = find_system(system_name, 'BlockType', 'EnablePort'); trig_ports = find_system(system_name, 'Blo...

12 years ago | 1

| accepted

Answered
simulink pid tuning error
Perhaps it's related to <http://www.mathworks.com/support/solutions/en/data/1-69H204/index.html Why do I get an error about an I...

12 years ago | 0

Answered
How to use actxserver to open Excel 2010 Application Object? (Both Excel 2003 and 2010 installed)
MATLAB just starts up the version that is set up as the COM Automation Server with that Application ID, with the OS. You may wan...

12 years ago | 0

Answered
How realised analysis parametric with simulink?
This example demonstrates how you can do a parameter sweep for a Simulink model using Parallel Computing Toolbox: <http://www.ma...

12 years ago | 0

| accepted

Answered
embedding an icon to mask in Simulink
I think you can package all dependencies such as the mask icon image into a <http://blogs.mathworks.com/seth/2011/09/02/simulink...

12 years ago | 0

Answered
Large RAM requirements for Simulink simulations
While this doesn't directly answer your question about why a large amount of RAM is being used, one solution for you might be to...

12 years ago | 0

Answered
how to create a simulink model of a room with a number of luminaires having seperate control to adjust brightness using pwm control
It sounds to me like this should be possible to model in Simulink. You can use Enabled Subsystems to turn the devices on/off.

12 years ago | 0

Answered
Run Older MCR Version on Windows
Is there a reason you want to use an older version of MCR? If you compiled with R2013b, you *must* use MCR 8.2. MCR 7.17 only wo...

12 years ago | 0

| accepted

Answered
Loading Simulink library created in a newer version...
Is this library part of a MathWorks product, or your own? As long as it's not part of a MathWorks product, you can use File>Save...

12 years ago | 0

Answered
Delphi Calling Matlab dll
You may find this previous discussion useful: <http://www.mathworks.com/matlabcentral/answers/7124-delphi-and-matlab-dll Delphi ...

12 years ago | 0

| accepted

Answered
Problems with MaskDisplay command
You can just execute what you're passing in as the third parameter to |set_param| to make sure that it's a string (and not a cel...

12 years ago | 0

| accepted

Answered
How to compute data in simulink in an iteration save or update some variables and use in computation of next iteration?
You can use the <http://www.mathworks.com/help/simulink/slref/unitdelay.html Unit Delay> block to get the previous output value....

12 years ago | 1

Answered
what is kernel?what is Real-Time Windows ?????????????/
<http://www.mathworks.com/help/rtwin/ug/real-time-windows-target-kernel.html Real-Time Windows Target - Install Real-Time Kernel...

12 years ago | 2

Answered
Using Matlab Call CPLEX function
Please see the documentation section: <http://www.mathworks.com/help/matlab/matlab_external/invalid-mex-file-error.html Invalid ...

12 years ago | 0

Load more