Réponse apportée
What is the proper 'Dimensions' value for a bus signal in a Signal Specification block?
Dimension is 1 for all signals shown in the above bus. Each of the signals in the bus are scalar.

presque 8 ans il y a | 0

Réponse apportée
How do I load a module which could not be found?
Is C:\ProgramFiles\MATLAB\R2018a\bin\win64' on the windows PATH variable?

presque 8 ans il y a | 0

Réponse apportée
S-function Restart Capability
to determine states in the guidance code you'll need to inspect the code to look for any global or static data. These variables...

presque 8 ans il y a | 0

Réponse apportée
How can I define a variable in a bus as pointer ?
Hi Antoine, The idea is to use a data type that Simulink supports in place of the pointer. Since pointers are 64 bits long, ...

presque 8 ans il y a | 0

| A accepté

Réponse apportée
Coverage report issue on S-function
You will need to write a script to extract information from the code coverage object and then write to excel using xlswrite. Th...

presque 8 ans il y a | 0

Réponse apportée
S-function Restart Capability
Simulink S-Functions can particpate in simstate. This <https://www.mathworks.com/help/simulink/sfg/s-function-compliance-with-t...

presque 8 ans il y a | 0

Réponse apportée
Custom criteria in Test Manager- Is there any way to get signal by name?
I think you will have to loop through all signals in the run and look at property sig.Name to find the signal name of interest. ...

presque 8 ans il y a | 0

| A accepté

Réponse apportée
Unable to determine signal dimensions
You could try placing a signal specification block on the signals that are giving you problems. Place the block on the signal b...

presque 8 ans il y a | 0

Réponse apportée
S-function - related Code Generation problem with the LaunchPad F28379D
y is a pointer. You need to dereference y when assigning a value to it. Change your code to this: *y = CANStatusGet(CANB_BAS...

presque 8 ans il y a | 0

| A accepté

Réponse apportée
Implementation of structures defined as a parameter of (embedded) matlab function in Simulink for code generation applications
the elements of the struct will be treated as individual variables in the generated code. Scalar variables will be inlined. ...

presque 8 ans il y a | 0

Réponse apportée
Using simulink SimState with different look up table data
Try using fast restart. This option disables some consistency checks performed during model initialization and may let you get ...

presque 8 ans il y a | 0

Réponse apportée
Joint Product and Fulfillment Optimization
The error message is coming from the first two terms in the Objective. I believe the problem is that the Objective is not a lin...

presque 8 ans il y a | 0

Réponse apportée
Implementation of structures defined as a parameter of (embedded) matlab function in Simulink for code generation applications
Simulink NonVirtual Buses can be used for both signals and parameters. You are correct that when used for signals, there can so...

presque 8 ans il y a | 0

Réponse apportée
How can I define a variable in a bus as pointer ?
This is not possible in Simulink. Simulink does not support pointers. So that raises the question, why do you need a pointer i...

presque 8 ans il y a | 0

Réponse apportée
Customize Init function of generated code from C MEX s-function.
You select the appropriate buffer based on where in the C file you want the code placed. For example, if your are adding a '#in...

presque 8 ans il y a | 0

| A accepté

Réponse apportée
Function Call Output Simulink Modelisation
You can't call one MATLAB function block from another MATLAB Function block. See here. Rather than having the code for fcn1() ...

presque 8 ans il y a | 0

| A accepté

Réponse apportée
Can you force Simulink Parameters and Signals to be declared in model_private.h when they're not used in the model during code generation?
I don't think this is possible. A possible workaround could be: 1. Write some MATLAB code to read the data dictionary and wr...

presque 8 ans il y a | 0

Réponse apportée
How to monitor an analog signal real-time in Simulink?
You are limited by the speed of the communication channel. What is the frequency of the signal you are measuring? Why are you ...

presque 8 ans il y a | 0

Réponse apportée
Is it possible to customize Simulink block parameters and take them as default?
A couple of options 1. You can create your own custom Simulink library. In this library you place all standard Simulink bloc...

environ 8 ans il y a | 0

Réponse apportée
Iterating s-function parameters with a For-Each subsystem
Is the "Tunable" box checked in the block <https://www.mathworks.com/help/simulink/gui/mask-editor-overview.html mask editor> ?

environ 8 ans il y a | 0

Réponse apportée
I am trying to import ECG data from PhysioBank to Simulink
A couple of possibilities: 1. Once you have converted to TimeSeries, replot the data again in MATLAB to make sure you get the...

environ 8 ans il y a | 0

Réponse apportée
How to monitor an analog signal real-time in Simulink?
The F28379D device has input capture pins that can be used to measure the frequency of an input signal.

environ 8 ans il y a | 0

Réponse apportée
How do I copy the ports of a Simulink model
Use find_system(), new_system(), add_block() and save_system()

environ 8 ans il y a | 0

Réponse apportée
How to extract only '$GPGGA' string real-time from Garmin gps device on matlab ?
Have you tried regexp?

environ 8 ans il y a | 0

Réponse apportée
Getting vertcat error, not using vertcat
The assignment to A vertical concatentates 4 row vectors. The first 3 rows have 5 elements, the 4th row only has 4 elements.

environ 8 ans il y a | 0

A résolu


Back to basics 21 - Matrix replicating
Covering some basic topics I haven't seen elsewhere on Cody. Given an input matrix, generate an output matrix that consists o...

environ 8 ans il y a

A résolu


The Hitchhiker's Guide to MATLAB
Output logical "true" if the input is the answer to life, the universe and everything. Otherwise, output logical "false".

environ 8 ans il y a

A résolu


Is this triangle right-angled?
Given three positive numbers a, b, c, where c is the largest number, return *true* if the triangle with sides a, b and c is righ...

environ 8 ans il y a

A résolu


Length of the hypotenuse
Given short sides of lengths a and b, calculate the length c of the hypotenuse of the right-angled triangle. <<http://upload....

environ 8 ans il y a

Réponse apportée
Embedded coder loop vectorization
I am not aware of a way to insert these pragmas. However, you might want to investigate using the <https://www.mathworks.com/he...

environ 8 ans il y a | 0

Charger plus