Answered
change order called function in the block s-function
No, it is not possible to change the order in which the Simulink Engine calls S-function methods. I'm not sure if I understand y...

12 years ago | 0

Answered
cmath library for interfacing matlab with visual c
Please see this previous discussion: <http://www.mathworks.com/matlabcentral/answers/36324 About Matlab C++ Math Library>

12 years ago | 0

Answered
Changing the sampling time of the sine wave signal in simulink dynamically with respect to an external input?
No, you currently cannot vary model sample-times dynamically at run-time. They are all locked down at compile-time, before simul...

12 years ago | 0

| accepted

Answered
Help with creating a MEX file in MATLAB from multiple C++ Source codes
All MEX-functions need to have an entry-point named <http://www.mathworks.com/help/matlab/apiref/mexfunction.html mexFunction> w...

12 years ago | 2

| accepted

Answered
Difference of ssGetTaskTime and ssGetT in C-S-Function
If you're not writing a multi-rate S-function, then |ssGetT| is what you need. Only if you are writing an S-function that has mu...

12 years ago | 0

Answered
MEX level2 S-function "sfunc_basic" must be called with at least 4 right hand arguments
I suspect you are mistakenly using the <http://www.mathworks.com/help/simulink/slref/sfunction.html S-function> block for a Leve...

12 years ago | 0

| accepted

Answered
How to include header files in Mexfiles
It looks like there is a programming error in your code. Please <http://www.mathworks.com/help/matlab/matlab_external/debugging-...

12 years ago | 0

Answered
creating vector in matlab fcn bock
Please use |coder.varsize| to define an upper-bound for the output variable as I have previously explained <http://www.mathworks...

12 years ago | 0

Answered
Using Input/Output Nodes into sub-diagrams
It looks like you are using SimPowerSystems blocks, correct? I don't know a lot about modeling in the physical domain using SimP...

12 years ago | 0

| accepted

Answered
I want to start a GUI window whenever i run a Simulink Model and make changes in model based on GUI?
This should help you get started: <http://www.mathworks.com/help/matlab/creating_guis/a-gui-to-set-simulink-model-parameters-gui...

12 years ago | 0

Answered
C-mex function output entire array
Signals that change size at run-time are called variable-size signals in Simulink. Please read <http://www.mathworks.com/help/si...

12 years ago | 1

Answered
Is possible to access to a MAT-file during the HIL simulation?
It appears that you are integrating MAT-file reading/creation code into code generated from Simulink Coder. Would it be possible...

12 years ago | 0

| accepted

Answered
Include s-function c-code into fortran program
I'm not a FORTRAN programmer, so I can't give advice on the mechanics of interfacing between FORTRAN and C (although that questi...

12 years ago | 0

| accepted

Answered
Visual Studio 2010 and MAT-Files
Have you tried the <http://www.mathworks.com/help/matlab/matlab_external/compiling-and-linking-mat-file-programs.html example in...

12 years ago | 0

| accepted

Answered
Can a Bus be Used as an Input to a MATLAB System Block?
Thanks for the great question! As listed in the <http://www.mathworks.com/help/simulink/ug/what-is-matlab-system-block.html#b...

12 years ago | 0

| accepted

Answered
OOP derive comm.CRCGenerator
I'm not a MATLAB class system expert, but I wonder if you need to <http://www.mathworks.com/help/matlab/matlab_oop/displaying-ob...

12 years ago | 0

| accepted

Answered
I am using CCSv5.2 and MATLAB 2013a, please provide step-by-step instructions for xmakefilesetup
Please see this previously answered question: <http://www.mathworks.com/matlabcentral/answers/25472-ccs-5-1-integration-when-and...

12 years ago | 0

Answered
How to use IC block in simulink
As the error suggests, your system clearly does not have a solution that the solver can converge to: y(n) = 1 + y(n-1); ...

12 years ago | 0

Answered
Replace GoTo Block in Simulink
You could technically write a MATLAB script using <http://www.mathworks.com/help/simulink/functionlist.html Simulink command-lin...

12 years ago | 0

| accepted

Answered
Where do I find the source code for matlab's mat.h header file function macros?
You might want to read the section on <http://www.mathworks.com/help/matlab/matlab_external/compiling-and-linking-mat-file-progr...

12 years ago | 0

Answered
How to simulate a model dynamically from m-file?
If you need the MATLAB code to be run continuously and feed inputs to the model, you need to run it in one of the <http://www.ma...

12 years ago | 0

Answered
Pass by reference C++ Legacy Code Tool
I don't think this is currently possible because the Legacy Code Tool generates C S-functions (not C++ S-functions) only, and re...

12 years ago | 0

| accepted

Answered
how to acess data from a simulink model and display it in GUIDE based GUI in real time
I don't know anything about the 'VR Sink' block or about Simulink 3D Animation, but it seems plausible that the .wrl file that i...

12 years ago | 0

Answered
Is Embedded Coder required for importing into rhapsody or does it work also with Simulink Coder only?
From the <http://pic.dhe.ibm.com/infocenter/rhaphlp/v7r5/index.jsp?topic=%2Fcom.ibm.rhapsody.integrating.doc%2Ftopics%2Frhp_t_in...

12 years ago | 0

Answered
How to send back a continuously updating constant to workspace from Simulink ?
Please see <http://www.mathworks.com/help/simulink/ug/accessing-block-data-during-simulation.html Access Block Data During Simul...

12 years ago | 0

Answered
Specifying the number of Output ports based on the input port values in the simulink S-function
I think the file crashes because the input signal data is not available in |mdlInitializeSizes|, since this method is called ver...

12 years ago | 0

| accepted

Answered
Tell what type of line is selected in Simulink
There is a parameter called |SignalHierarchy| which gives information about bus signals, but it is available on port handles, no...

12 years ago | 2

| accepted

Answered
Is there Simulink support for cubieboard as embedded target?
<http://www.mathworks.com/hardware-support/home.html This page> is a good resource to find out the kind of support that is curre...

12 years ago | 0

| accepted

Answered
MEX: pointers to a matlab structure
You need to use <http://www.mathworks.com/help/matlab/apiref/mxgetfield.html mxGetField> to access structure fields and <http://...

12 years ago | 1

Answered
Use an existing interactive MATLAB session with MATLAB Engine application
I think you need to start MATLAB with the <http://www.mathworks.com/help/matlab/ref/matlabwindows.html -automation> flag from a ...

12 years ago | 1

Load more