Respondida
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...

más de 14 años hace | 0

Respondida
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...

más de 14 años hace | 1

| aceptada

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

más de 14 años hace | 0

| aceptada

Respondida
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...

más de 14 años hace | 0

Respondida
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...

más de 14 años hace | 0

Respondida
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...

más de 14 años hace | 0

Respondida
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 ...

más de 14 años hace | 0

Respondida
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;

más de 14 años hace | 0

Respondida
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...

más de 14 años hace | 1

| aceptada

Respondida
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...

más de 14 años hace | 0

| aceptada

Respondida
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...

más de 14 años hace | 0

Respondida
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...

más de 14 años hace | 2

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

más de 14 años hace | 0

Respondida
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...

más de 14 años hace | 0

Respondida
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 ...

más de 14 años hace | 0

Respondida
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...

más de 14 años hace | 0

| aceptada

Respondida
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...

más de 14 años hace | 0

Respondida
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...

más de 14 años hace | 1

| aceptada

Respondida
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...

más de 14 años hace | 1

| aceptada

Respondida
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...

más de 14 años hace | 1

Respondida
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 ...

más de 14 años hace | 0

Respondida
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: ----- ---...

más de 14 años hace | 0

Respondida
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"); ...

más de 14 años hace | 3

Respondida
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...

más de 14 años hace | 0

| aceptada

Respondida
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...

más de 14 años hace | 1

| aceptada

Respondida
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...

más de 14 años hace | 0

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

más de 14 años hace | 2

| aceptada

Resuelto


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...

más de 14 años hace

Resuelto


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...

más de 14 años hace

Resuelto


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 ...

más de 14 años hace

Cargar más