Réponse apportée
Concatenate cell arrays in sumulink function block
What version of MATLAB are you using? Support for <https://www.mathworks.com/help/simulink/slref/spbscopes.scope.timescopeconfi...

environ 8 ans il y a | 0

Réponse apportée
How to continuously display past x-number of results in Scope?
Set <https://www.mathworks.com/help/simulink/slref/spbscopes.scope.timescopeconfiguration.html TimeSpanOverrunAction> to Scroll....

environ 8 ans il y a | 0

Réponse apportée
How to manage a simulink subsystem with high execution time?
When simulating a Simulink model, a single thread is used to run all sample rates of the model. Even if the model is configured...

environ 8 ans il y a | 0

| A accepté

Réponse apportée
how to find the indices of elements=0 in array using simulink ?
Do you need to use Simulink blocks? Easiest approach would be to use a MATLAB Fcn block and then use MATLAB code. If you prefe...

environ 8 ans il y a | 0

Réponse apportée
How to Add IBIS-AMI Code Generation Capability
Please contact me directly(mark.mcbroom@mathworks.com) for instructions on how to access to the IBIS-AMI Pilot Support Package (...

environ 8 ans il y a | 1

Réponse apportée
How do I get ibis_ami.tlc ?
Please contact me directly for access to the Support Package that allows you to generate IBIS-AMI C code from a Simulink model. ...

environ 8 ans il y a | 0

A résolu


Counting Money
Add the numbers given in the cell array of strings. The strings represent amounts of money using this notation: $99,999.99. E...

environ 8 ans il y a

A résolu


Remove all the consonants
Remove all the consonants in the given phrase. Example: Input s1 = 'Jack and Jill went up the hill'; Output s2 is 'a ...

environ 8 ans il y a

A résolu


Pascal's Triangle
Given an integer n >= 0, generate the length n+1 row vector representing the n-th row of <http://en.wikipedia.org/wiki/Pascals_t...

environ 8 ans il y a

A résolu


Finding Perfect Squares
Given a vector of numbers, return true if one of the numbers is a square of one of the other numbers. Otherwise return false. E...

environ 8 ans il y a

Réponse apportée
Simulink communication in distributed system
MathWorks now offers a <https://www.mathworks.com/hardware-support/rti-dds.html?s_tid=srchtitle support package> for DDS that pr...

environ 8 ans il y a | 0

Réponse apportée
How do you fix "not in scope" errors in simulink s-function?
Is Braking_Control a signal/variable in your Stateflow diagram? I am guessing that this is the <https://blogs.mathworks.com/sim...

environ 8 ans il y a | 0

Réponse apportée
How to specify output type as "structure with time" instead of default "array" in the sim command?
See help for sim command. Use SAveFormat = 'StructureWithTime'

environ 8 ans il y a | 0

Réponse apportée
Function-call and Sorted Order
Do you have states in your state machine? Is the processing of incoming messages performed in a different state from the state ...

environ 8 ans il y a | 0

| A accepté

Réponse apportée
Unable to import all data from Excel file in simulink
Change the end time of the simulation. Model is configured to run for 10 seconds, so only first 10 seconds worth of data are be...

environ 8 ans il y a | 0

| A accepté

Réponse apportée
Insert Custom Code into Built Code (Simulink Embedded Coder)
Only way I know of is to create in-lined s-function. For Simulation, s-function would have no inputs, no outputs and therefore ...

environ 8 ans il y a | 0

Réponse apportée
How to optimize this generated code?
Try changing the data type of the contant blocks to be integer or boolean.

environ 8 ans il y a | 0

Réponse apportée
How can I include a block annotations as comments in generated code?
Yes. Check the "Simulink block comments" option on the Code Generation - Comments tab. There is also a very good example that ...

environ 8 ans il y a | 0

Réponse apportée
Dependencies in Simulink Functions(/Function Caller)
Best approach is to place each MATLAB Function block into an atomic subsystem and place in a Simulink library. COnfigure the ato...

environ 8 ans il y a | 0

Réponse apportée
How can I make the input(struct Datatype) of the s-function a non-bus signal?
Structs in C code are represented as Simulink Buses, but the CAN_MESSAGE signal in Simulink isn't a Simulink bus. Do you need t...

environ 8 ans il y a | 0

Réponse apportée
code generation errors, mex compile works fine
Sounds like your TLC file isn't being located. Make sure TLC file is in same directory as .mexw64 file for your s-function. Yo...

environ 8 ans il y a | 0

Réponse apportée
How can I calculate results from a function with two inputs using two arrays?
code looks correct. Does your code actually complete? Or is it simply taking a very long time to complete the 18th combination...

environ 8 ans il y a | 1

| A accepté

Réponse apportée
Profiling c-code generated from SIMULINK
You have found the correct approach for profiling code generated by Embedded Coder. Additional software licenses are not requir...

plus de 8 ans il y a | 0

Réponse apportée
Forcing ownership of subsystem data to its self within a simulink model
Data is owned at the model level, not the sub-system level. Referenced models will allow you to encapsulate parameters and stat...

plus de 8 ans il y a | 0

Réponse apportée
How to open Custom storage class in simulink
Make sure the directory in which +mypkg1 exists is on the MATLAB path.

plus de 8 ans il y a | 0

Réponse apportée
A2L File from Embedded Coder
This <https://www.mathworks.com/help/ecoder/ug/customizing-an-asap2-file.html?searchHighlight=ASAP2&s_tid=doc_srchtitle#f8974 li...

plus de 8 ans il y a | 0

Réponse apportée
Algorithm development on Mc9s series NxP (Freescale) controller
If you already have driver code available from code warrior, best approach is to generate C code from your algorithm in Simulink...

plus de 8 ans il y a | 0

Réponse apportée
A good approach to code generating a library of functions using Simulink Coder
for smaller components, the best approach is to create sub-systems and place them in a Simulink library. Configure the sub-syst...

plus de 8 ans il y a | 0

Réponse apportée
Code generation from Simulink with GPU coder
No. Currently GPU coder only supports MATLAB code. This <https://www.mathworks.com/help/gpucoder/examples/integrating-gpu-code...

plus de 8 ans il y a | 0

| A accepté

Réponse apportée
S-functions or protected model to protect intellectual property
<https://www.mathworks.com/help/rtw/ug/create-a-protected-model-using-the-model-block-context-menu.html Protected model> gives t...

plus de 8 ans il y a | 0

Charger plus