Answered
Need help with s-function error messages
Not sure if it's a typo in the question, but from your |def.OutputFcnSpec|, it looks like you are attempting to call |u_feedback...

ungefär 10 år ago | 1

| accepted

Answered
Call questdlg from C S-Function
Yes, you can use |mexCallMATLAB| to call MATLAB functions from a C-MEX S-function. Please refer to the examples in the <http://w...

ungefär 10 år ago | 0

Answered
Using mathematica code in Simulink
Yes. it is possible to call C code (both via DLL or from a source .c file) using S-function Builder.

ungefär 10 år ago | 0

Answered
How do I add a custom library to a model using a script?
You need to specify the block name, not just the model/library name. For example: add_block('LIB_MAT/A', 'gen_model/A') ...

ungefär 10 år ago | 0

| accepted

Answered
how can i add a toolbox to matlab?
<http://www.mathworks.com/matlabcentral/answers/91381 How do I create my own MATLAB Toolbox and a list of its contents?>

ungefär 10 år ago | 0

| accepted

Answered
Calling Simulink model in a function
Please see <http://www.mathworks.com/matlabcentral/answers/92888 How do I run a model in Simulink from my MATLAB function where ...

ungefär 10 år ago | 1

Answered
How to call a simulink block/model in a matlab function?
You can run your Simulink model from MATLAB using the <http://www.mathworks.com/help/simulink/ug/using-the-sim-command.html SIM ...

ungefär 10 år ago | 0

Answered
C code to S function multi input multi output block using legacy code
As described in the <http://www.mathworks.com/help/simulink/sfg/integrating-existing-c-functions-into-simulink-models-with-the-l...

ungefär 10 år ago | 1

| accepted

Answered
how to use xilinx system generator in simulink model?
Since System Generator is a Xilinx product, you will need to look for documentation/examples on xilinx.com. This might help you ...

ungefär 10 år ago | 0

| accepted

Answered
Windows Stand Alone Application from GUI.
Is |C:\Program Files\MATLAB\R2008a\bin| present on your Windows |PATH| environment variable? This is where the file |mbuild.bat|...

ungefär 10 år ago | 0

Answered
Autocode - How to make outputs a structure
It looks like you want your output to be a nested bus? You may to define your define your output's Simulink.Bus object <http://w...

ungefär 10 år ago | 0

Answered
Can I use a Matlab function in a S-Function-Builder?
I'm assuming |T0| here is either an input/output signal or parameter? These are usually pointers of a built-in C type (like real...

ungefär 10 år ago | 0

Answered
Can I change the name of a parameter of a existing simulink block?
You can't change the name of the parameter, but you can add another mask on top of the block and create a new set of parameters ...

ungefär 10 år ago | 0

| accepted

Answered
Logging data to mat files with Simulink Coder
You can write <http://www.mathworks.com/help/matlab/matlab_external/custom-applications-to-read-and-write-mat-files.html custom ...

ungefär 10 år ago | 0

| accepted

Answered
Data type override for bus object
Data Type Override (DTO) support for Bus objects was added in R2014a (see <http://www.mathworks.com/help/fixedpoint/release-note...

ungefär 10 år ago | 0

Answered
Level 2 Matlab S-function gives error while code generation
Simulink cannot generate code from a MATLAB S-function unless you write a TLC file to inline it. See <http://www.mathworks.com/h...

ungefär 10 år ago | 0

Answered
Does a stateflow chart make the model slower?
I don't think there is a general answer to the question of whether a Stateflow chart might be slower in execution compared to an...

ungefär 10 år ago | 0

Answered
How can I get a library to compile if Matlab cant find NMAKE
The command: !nmake -f Makefile.win; runs from the Windows/DOS command prompt, so you would need to add the path to 'n...

ungefär 10 år ago | 0

Answered
using level 1 S-function with simulink in simulink about motor parameter identification.
The <http://www.mathworks.com/help/simulink/sfg/maintaining-level-1-matlab-s-functions.html expected prototype> for |mdlInitiali...

ungefär 10 år ago | 0

Answered
Non-real time simulation with Arduino
MATLAB/Simulink runs on Windows, Mac and Linux; none of which are real-time operating systems. Therefore, in general, MATLAB/Sim...

ungefär 10 år ago | 0

| accepted

Answered
Where does Matlab save the generated C code from Simulink?
It is typically generated into the modelname_grt_rtw (assuming you're using grt.tlc as the System Target File) folder in the cur...

ungefär 10 år ago | 0

Answered
Zero crossing detection in Simulink
See the <http://www.mathworks.com/help/simulink/slref/hitcrossing.html Hit Crossing> block.

ungefär 10 år ago | 1

Answered
Simulink Model Reference, is it possible to reference a subblock?
There is indeed a tool to <http://www.mathworks.com/help/simulink/ug/converting-a-subsystem-to-a-referenced-model.html Convert a...

ungefär 10 år ago | 0

Answered
How change the code MATLAB to C++?
See <http://www.mathworks.com/products/matlab-coder/ MATLAB Coder>.

ungefär 10 år ago | 1

| accepted

Answered
how to write mfile with time delay function and how to embed it in simulink?
You can call MATLAB code in a Simulink model using any of <http://www.mathworks.com/help/toolbox/simulink/ug/bq3qblc-1.html#bq3t...

ungefär 10 år ago | 0

Answered
How can I create a function from a model reference block that returns a value in Simulink coder?
You should be able to use <http://www.mathworks.com/help/ecoder/function-prototype-control.html Function Prototype Control> to s...

ungefär 10 år ago | 1

| accepted

Answered
How to convert mxarray datatype in simulink
It looks like |bwareaopen| returns an output of type |logical|. You need to pre-declare 'x' as follows: x = zeros(size(u), ...

ungefär 10 år ago | 0

Answered
How to generate c-code from simulink with custom data type? (r2013a)
I'm assuming that MyInt is an alias for an integer type? If so, you should be able to use <http://www.mathworks.com/help/simulin...

ungefär 10 år ago | 0

Answered
How to use a .jar file generated with matlab compiler?
I'm not familiar with Java, but I thought you may find the documentation useful: <http://www.mathworks.com/help/javabuilder/ug/w...

ungefär 10 år ago | 0

Answered
How do I get output value of data store block in workspace ?
You can use the Logging pane on the Data Store Memory block's dialog window to log the signal to the workspace.

ungefär 10 år ago | 0

Load more