Answered
MATLAB Builder JA (R2012a) application running on Solaris 10 (5.10 Generic_144500-19)
AFAIK, Solaris is not a <http://www.mathworks.com/support/sysreq/current_release/ supported platform> for MATLAB in general. So ...

14 years ago | 1

Answered
How to build .m files into .mex files correctly
Shared libraries generating using MATLAB Compiler are meant for deploying on a machine that does not have MATLAB installed - thi...

14 years ago | 0

| accepted

Answered
continuous signal delay
Feed p(k) into the <http://www.mathworks.com/help/releases/R2011b/toolbox/simulink/slref/unitdelay.html Unit Delay> block to get...

14 years ago | 2

Answered
sample time error for simulink model consisting of xilinx block sets
The error appears to be pretty clear. Do you have a sample time of 1000000 anywhere in your model? You either need to reduce tha...

14 years ago | 0

Answered
s-function error
In both mdlDerivatives and mdlOutputs, you have these lines: x = x(1); xdot = x(2); The first...

14 years ago | 1

| accepted

Answered
I' m unable to run cpp code in Matlab using mex command. I'm getting following errors.
I think you should name your file with the .cpp extension if you have C++ code in it, so the compiler knows to treat it like one...

14 years ago | 0

| accepted

Answered
generate C code from a simulink model for CCSv5 IDE?
I haven't done this personally, but I think the workflow for CCSv5 is the same as for CCSv4. Please see <http://www.mathworks.co...

14 years ago | 0

Answered
Import data in Simulink
Sorry, your question is not very clear to me. Could you explain why the 'From File' and 'From Workspace' blocks didn't work - if...

14 years ago | 0

| accepted

Answered
Saving Simulink variable to Matlab workspace
AFAIK, the "To Workspace" block logs the signal at each time-step. At the end of simulation, there is an array/structure with si...

14 years ago | 1

Answered
Runtime in subsystem Simulink
From what I understand, you have a For Iterator system that runs for 96 iterations inside an Enabled Subsystem that is enabled a...

14 years ago | 0

Answered
Disassociate Xilinx from MatLab
I'm guessing the Xilinx paths are still on the MATLAB path and need to be removed. Run "pathtool" from the MATLAB prompt and rem...

14 years ago | 1

| accepted

Answered
Set Simulink block values from GUI in a running model using a RunTimeBlock?
As the error suggests, the RunTimeHandle.OutputPort(1).Data (or the Data property of any port) is read-only, so you cannot set i...

14 years ago | 2

| accepted

Answered
Cannot locate RTW S-function from Simulink Coder: R2010a
Perhaps your colleague is running on a 32-bit machine or MATLAB installation? MEX-files are platform specific (basically, they a...

14 years ago | 0

Answered
Transfer Function Problem in Simulink?
What you want to do is specify an Initial Condition(IC) to the block. Unfortunately, the transfer function block does not allow ...

14 years ago | 1

| accepted

Answered
S-function error
Iman: I would recommend looking at some of Level-1 S-function demos. Type "sfundemos" at the MATLAB prompt and select MATLAB fil...

14 years ago | 1

| accepted

Answered
S-function error
NumSampleTimes cannot be a fractional value. You need to change: sizes.NumSampleTimes = 0.05; to: sizes.NumSample...

14 years ago | 4

| accepted

Answered
Sequential calling to SIMULINK from a time marching MATLAB simulation
Instead of calling SIM manually, I think a better approach might be to use one of three MATLAB <http://www.mathworks.com/help/to...

14 years ago | 1

| accepted

Answered
Loading 64-bit National Instruments library in 64-bit Matlab
The "is not a valid Win32 application" error usually means that you are attempting to load a 32-bit DLL using 64-bit MATLAB. Per...

14 years ago | 1

| accepted

Answered
'name.bat' is not recognized as an internal or external command, operable program or batch file in matlab
Have you run "mex -setup" on your R2012a installation? I have run into a similar issue in the past, and running "mex -setup" fix...

14 years ago | 5

| accepted

Answered
Deploying Standalone Executable with No MCR
As you have already heard, the MCR is absolutely required to deploy executables generated using MATLAB Compiler. According to th...

14 years ago | 0

| accepted

Answered
Reset Simulink model from m file
Using set_param(model, 'SimulationCommand', 'stop') followed by set_param(model, 'SimulationCommand', 'start') does restart the ...

14 years ago | 3

| accepted

Answered
Mex Compiler error
Install a <http://www.mathworks.com/support/compilers/previous_releases.html supported compiler> by looking at the list for your...

14 years ago | 0

Answered
Error: Real-Time Workshop Error: The nonfinite '-inf' is required but nonfinite support is not selected. Please enable nonfinite support.
I'm guessing that nonfinite numbers violate AUTOSAR compliance rules, which is why that option is disabled? The best course of a...

14 years ago | 0

Answered
SIMULINK: Microphone input, how to?
If you have access to the DSP System Toolbox (formerly Signal Processing Blockset), you might be able to use the <http://www.mat...

14 years ago | 1

Answered
variable cost function MPC toolbox
Your question is not entirely clear to me: "manipulated variable which I want to be used during night and remained turned off du...

14 years ago | 2

Answered
reverse multiport switch
A similar question has been asked before. Please see: http://www.mathworks.com/matlabcentral/answers/38151-invert-multiport-swit...

14 years ago | 0

| accepted

Answered
How to update variable in Workspace during simulation?
I'm assuming that you are using something like the To Workspace block to write data to the workspace? I explained a little in my...

14 years ago | 1

Answered
Zero length license error in using MATLAB Compiler R2012a
Looks like this was a <http://www.mathworks.com/support/bugreports/624388 bug in R2009b and R2010a>. Perhaps you should contact ...

14 years ago | 0

Answered
Matlab Coder Error: Cannot Process Options
You need to run the "codegen" command, not the "coder" command: >> codegen -args {0} HW -report

14 years ago | 0

| accepted

Answered
Simulink - Change continuous state value at a given time point
I'm curious about why you chose to use continuous states instead of discrete states if you do not need the state to be integrate...

14 years ago | 0

Load more