Answered
S-function flag calling from other functions
I guess you could technically call it from any other method in the same S-function, just like you can call a MATLAB sub-function...

14 years ago | 0

Answered
matlab coding to s-function level 2 coding.
Oops, just realized that you are asking about the InitializeConditions function, and not Update or Outputs. The initial conditio...

14 years ago | 1

| accepted

Answered
loadlibrary error
For versions older than R2011a, Visual Studio Express (free) editions were not supported with LOADLIBRARY - the support was adde...

14 years ago | 0

| accepted

Answered
about Embedded matlab function
The 'find' function us listed amongst the <http://www.mathworks.com/help/releases/R2011a/toolbox/eml/ug/bq1h2z7-11.html function...

14 years ago | 0

Answered
Writing Help Browser Documentation... How do I add a link to an external file?
The <http://www.mathworks.com/help/techdoc/matlab_env/f6-30186.html#brvg6ty-1 documentation> seems to suggest that what you're d...

14 years ago | 0

Answered
Cannot find MEX function when executing C
It is likely that the "mex" command is not supported for deployment. Is there a reason that you can't simply include your MEX-fi...

14 years ago | 0

Answered
R2006a 64-Bit / VC++ 2010 SDK 7.1 / Simulink / Embedded Matlab Fcn make error: lccmake
Perhaps Simulink is using a stale Makefile that was generated with another version of MATLAB into the same folder? See if there ...

14 years ago | 0

Answered
How do I eliminate the "ans = " at the end of my function?
How are you calling the function? You need to put a semicolon at the end of your call: >> valcomp;

14 years ago | 0

Answered
Error in port widths or dimensions
Apparently the S-function expects a scalar value, but you are feeding in a vector of length=11. If you've written the S-function...

14 years ago | 1

| accepted

Answered
Equivalent function to simulink filter block
It seems like the <http://www.mathworks.com/help/toolbox/vision/ref/vision.imagefilterclass.html vision.ImageFilter> class is wh...

14 years ago | 0

| accepted

Answered
Plotting labeled graphs in simulink
Typically, the signal name of the input to the Scope block is used to label the plot. To name a signal, right-click on it, selec...

14 years ago | 0

Answered
My variables in workspace are updated but not on variables "From Workspace" to the simulink model
The best solution is to call your MATLAB function in a loop from your Simulink model using the <http://www.mathworks.com/help/to...

14 years ago | 2

Answered
Plot to axes from a simulink variable
Try sim('Sistema_s_Atraso_SelfTuning',tempo_simulacao, 'DstWorkspace', 'current'); This ensures that all variables crea...

14 years ago | 0

Answered
Getting linking error:2001 while integrating C-code generated from Real time work shop from a simulink block.
You need to use either grt.tlc or ert.tlc as the System Target File for your model. The code that is generated for your model se...

14 years ago | 0

Answered
changing coding of a block in a simulink model
It depends on how the block was authored - it will help if you specify which Simulink library it belongs to (if it is a shipped ...

14 years ago | 0

Answered
How to make a diagram block getsnapshot or get frame on simulink program?
Not sure if this is an ideal solution, but you could try using a <http://www.mathworks.com/help/releases/R2011b/toolbox/imaq/fro...

14 years ago | 0

| accepted

Answered
Compiled matlab executables not working correctly with java archives
In general, you are discouraged from using functions like ADDPATH with absolute paths from deployed applications. See <http://bl...

14 years ago | 0

Answered
Xilinx System Generator and HDL Workflow Advisor
As far as I know, you need to use Xilinx System Generator to generate code from their blocks. They are not supported directly wi...

14 years ago | 1

| accepted

Answered
building standalone application fails on file I don't use
This seems like it could be due to a bug. Please consider reporting this to MathWorks Tech Support. Are you using functions f...

14 years ago | 1

| accepted

Answered
Executing the function find_system and load_system using MCR
As is documented <http://www.mathworks.com/help/toolbox/compiler/br2cqa0-20.html here>, Simulink functions in general are not su...

14 years ago | 1

Answered
Writing data into excel for unknown range using ActiveX commands
I think you can just use 'A3' (if also specifying a sheet name) or 'A3:A3' (if not specifying a sheet name, because 'A3' may be ...

14 years ago | 0

Answered
How to Create a repeating pulse using single pulse without using Source Block(simulink)
This is just one way, but I've used it in the past to generate a pulse-sequence with 50% pulse-width: ----- ---...

14 years ago | 0

Answered
print mxArray type.
The easiest way is to just have the MATLAB "disp" function do the job for you: mexCallMATLAB(0,NULL,1, &in1, "disp"); ...

14 years ago | 3

Answered
mcc error with directories including spaces in their names
It looks like the issue is because of spaces in your $TEMP directory - see <http://www.mathworks.com/support/bugreports/708703 B...

14 years ago | 0

| accepted

Answered
calling a standalone function to matlab function block
You can use any of <http://www.mathworks.com/help/releases/R2011a/toolbox/eml/ug/bq1h2z7-11.html functions supported for code-ge...

14 years ago | 1

| accepted

Answered
Error while Code Generation from MATLAB 7.4 to CCS for LF2407 eZdsp
You may not have all required software setup on your machine. Try running the <http://www.mathworks.com/help/releases/R2011b/too...

14 years ago | 0

Answered
bloc MATLAB function directory error
What do you get when you execute the following commands in MATLAB: >> pwd >> !cd

14 years ago | 2

| accepted

Solved


Remove the vowels
Remove all the vowels in the given phrase. Example: Input s1 = 'Jack and Jill went up the hill' Output s2 is 'Jck nd Jll wn...

14 years ago

Solved


Who Has the Most Change?
You have a matrix for which each row is a person and the columns represent the number of quarters, nickels, dimes, and pennies t...

14 years ago

Solved


Find the sum of all the numbers of the input vector
Find the sum of all the numbers of the input vector x. Examples: Input x = [1 2 3 5] Output y is 11 Input x ...

14 years ago

Load more