Réponse apportée
From Simulink to C-Code and back to Simulink
"SIL" mode addresses this use case and eliminates all of the uncessary steps you are trying to follow. SIL mode allows you to r...

environ 5 ans il y a | 0

| A accepté

Réponse apportée
Executing callbacks of custom simulink blocks in a subsystem reference
I believe you need to put a mask on the subsystem reference and use this mask to pass values for each instance down into your cu...

environ 5 ans il y a | 0

Réponse apportée
PWork loses data in S-function
st1 is an autmomatic variable, so its memory location can get reused after leaving mdlStart(). YOu need to allocation memory fo...

environ 5 ans il y a | 0

| A accepté

Réponse apportée
How to measure Round Trip Time in Simulink using S-Functions and Time Stamps?
Trhee suggestions Don't bother writing time to file in s-function. Use simulink logging capabilities to log the outputs from t...

environ 5 ans il y a | 0

Réponse apportée
High resolution TIFF images from Simulink Scope
Open the scope and from the File menu, select "Print to Figure". This will create a MATLAB figure of your scope. Then, from th...

environ 5 ans il y a | 0

Réponse apportée
How can I change a parameter in a Simulink block using code setVariable?
Since the variables you are trying to change are in the Model Workspace, you need to add an optional argument specifying this. ...

environ 5 ans il y a | 1

| A accepté

Réponse apportée
"S-Function does not exist" but is clearly in the Matlab path!
Do you have a file named sfun_name.mexw64? Simulink needs the s-function to be compiled into a mexw64( which is a specialzed DL...

environ 5 ans il y a | 1

| A accepté

Réponse apportée
Find out which addons are used by Simulink project
You used both the term "toolbox" and "addon" in your description. For Toolboxes, which are licensed products, type the followin...

environ 5 ans il y a | 0

Réponse apportée
FMU Import Script for Simulink
If you set the FMUName property then you should not get prompted. YOu can do this either by adding additional arguments to the ...

environ 5 ans il y a | 0

| A accepté

A résolu


Get the area codes from a list of phone numbers
Given a string of text with phone numbers in it, return a unique'd cell array of strings that are the area codes. s = '508-6...

environ 5 ans il y a

A résolu


Find state names that start with the letter N
Given a list of US states, remove all the states that start with the letter N. If s1 = 'Alabama Montana Nebraska Vermont Ne...

environ 5 ans il y a

Réponse apportée
How to connect bus signal with different data size using multiport switch?
I made a number of changes to your model, most importably was to remove mux blocks. Mux blocks should not be used. Use Vector/...

environ 5 ans il y a | 0

| A accepté

Réponse apportée
How to connect bus signal with different data size using multiport switch?
On the Multi-port switch block, on the Signal Attirbutes tab, check the box "Allow different data input sizes".

environ 5 ans il y a | 0

A résolu


Scrabble Scores - 6
This problem is part of a set of problems that successively develop a more sophisticated Scrabble scoring routine. The point dis...

environ 5 ans il y a

A résolu


Scrabble Scores - 5
This problem is part of a set of problems that successively develop a more sophisticated Scrabble scoring routine. The point dis...

environ 5 ans il y a

A résolu


Scrabble Scores - 4
This problem is part of a set of problems that successively develop a more sophisticated Scrabble scoring routine. The point dis...

environ 5 ans il y a

A résolu


Scrabble Scores - 3
This problem is part of a set of problems that successively develop a more sophisticated Scrabble scoring routine. The point dis...

environ 5 ans il y a

A résolu


Reverse Boggle
*Description* In the classic Parker Brothers game <http://en.wikipedia.org/wiki/Boggle Boggle>, players find words from a 4x4...

environ 5 ans il y a

Réponse apportée
How to Suppress Mixed Expressions for Pooled Parameter in generated Autocode?
Change the "Shared code placement" option to "Shared location" and then the option for "Generate shared constants" will no longe...

environ 5 ans il y a | 0

Réponse apportée
Problem synchronization between a Simulink publisher and subscriber
Simulink does not simulate in real-time, so there will always be variation in the execution speeds of Simulink models. You can ...

environ 5 ans il y a | 0

Réponse apportée
sendmail function in simulink
You should be able to do this inside a MATLAB Function block that is placed into the Simulink model. You will have to designate...

environ 5 ans il y a | 0

Réponse apportée
Time dependent variable during simulation
The sim() command doesn't return until the simulation is complete. An easy way to accomplish what you want to do is to use the ...

environ 5 ans il y a | 0

Réponse apportée
Communicate Signals Between Two Simulations on the Same Computer?
The UDP/TCP blocks can be used to share data between two different Simulink models running in different MATLAB instances on the ...

environ 5 ans il y a | 0

Réponse apportée
Constant block only outputs a single data point
What is the sample time for the constant block? The default is "inf" which indicates constant sample time. Change this to -1 o...

environ 5 ans il y a | 0

Réponse apportée
Unkown error in stateflow simulink
It looks like you are attempting to access P1 and P2 in multiple state machines. You have defined P1 and P2 as global variables...

environ 5 ans il y a | 0

| A accepté

Réponse apportée
How to set default value for instance parameters/Simulink.Parameter?
You will need to configure the parameter as a model argument and then specify values for each isntance of the model block. It i...

environ 5 ans il y a | 1

Réponse apportée
How do I make a device driver block that outputs data from a global array?
You will need create the matrix in your MATLAB function and then pass it to your C Function as an argument, encapsultated in teh...

environ 5 ans il y a | 0

A résolu


Integer Sequence - II : New Fibonacci
Crack the following Integer Sequence. (Hints : It has been obtained from original Fibonacci Sequence and all the terms are also ...

plus de 5 ans il y a

A résolu


Integer sequence - 2 : Kolakoski sequence
Get the n-th term of <https://oeis.org/A000002 Kolakoski Sequence>.

plus de 5 ans il y a

A résolu


Square Digits Number Chain Terminal Value (Inspired by Project Euler Problem 92)
Given a number _n_, return the terminal value of the number chain formed by summing the square of the digits. According to the P...

plus de 5 ans il y a

Charger plus