Answered

Run a Simulink Simulation based on Input Data files

https://www.mathworks.com/help/releases/R2018b/simulink/ug/comparison-of-signal-loading-techniques.html

Run a Simulink Simulation based on Input Data files

https://www.mathworks.com/help/releases/R2018b/simulink/ug/comparison-of-signal-loading-techniques.html

9 maanden ago | 0

Answered

Why is my Data Store Memory's initial value ignored?

Are specifying intial value in the Data Store Memory block and/or the Z-2 block? With this design I think you will need to init...

Why is my Data Store Memory's initial value ignored?

Are specifying intial value in the Data Store Memory block and/or the Z-2 block? With this design I think you will need to init...

9 maanden ago | 0

| accepted

Solved

Combine Cards to make 21

Given between two and six cards, e.g. A _ 3 _ 7 _ 6 _ 2 place one of the mathematical symbols (+,-,*,/) in the space betw...

9 maanden ago

Answered

How to find all Graphical function inside a chart

Use the Stateflow API as described here. h = sfroot; gf = h.find('-isa','Stateflow.Function')

How to find all Graphical function inside a chart

Use the Stateflow API as described here. h = sfroot; gf = h.find('-isa','Stateflow.Function')

9 maanden ago | 0

| accepted

Solved

Mongean Shuffle : 2

Extension to <https://www.mathworks.com/matlabcentral/cody/problems/2479-mongean-shuffle problem 2479>: Determine the number...

9 maanden ago

Solved

Mongean Shuffle

A Mongean shuffle of an n card deck starts with putting the initial deck on the left hand side. * The top card of the deck is...

9 maanden ago

Solved

Card Game

This is an overly simplified and highly modified version of card game Twenty-Nine. A deck of 100 unique cards (hypothetical) ...

9 maanden ago

Answered

Embedded coder about Pixhawk PX4 Support

Do you have licenses for the coder products? See Walter Roberson's answer here for instructions on how to find which products y...

Embedded coder about Pixhawk PX4 Support

Do you have licenses for the coder products? See Walter Roberson's answer here for instructions on how to find which products y...

9 maanden ago | 0

Answered

How to enable mixed sample time in Smulink model

You will need to speficy the sample times for the 2 subsystems so that they run at the proper rates. Do this by right-clicking ...

How to enable mixed sample time in Smulink model

You will need to speficy the sample times for the 2 subsystems so that they run at the proper rates. Do this by right-clicking ...

9 maanden ago | 0

| accepted

Answered

Looking for Build Model icon

You can add this button to the Simulink tool strip from the File->Simulink Preferences -> Editor -> Toolbar Configuration menu i...

Looking for Build Model icon

You can add this button to the Simulink tool strip from the File->Simulink Preferences -> Editor -> Toolbar Configuration menu i...

9 maanden ago | 0

Answered

How can export a mex function from sources into a regular c++ function (shared library)) ?

To clarify, you have mex functions and you want those translated to a C++ library? Assuming the source code is either C or C++,...

How can export a mex function from sources into a regular c++ function (shared library)) ?

To clarify, you have mex functions and you want those translated to a C++ library? Assuming the source code is either C or C++,...

9 maanden ago | 0

Answered

Optimize the ordering of nested loop for speed

use profile tool to determine hot spot in code. pre-allocate bigArray. On my computer this reduced execution time by 70%

Optimize the ordering of nested loop for speed

use profile tool to determine hot spot in code. pre-allocate bigArray. On my computer this reduced execution time by 70%

9 maanden ago | 0

Solved

Find a Pythagorean triple

Given four different positive numbers, a, b, c and d, provided in increasing order: a < b < c < d, find if any three of them com...

9 maanden ago

Solved

Triangle sequence

A sequence of triangles is constructed in the following way: 1) the first triangle is Pythagoras' 3-4-5 triangle 2) the s...

9 maanden ago

Solved

Is this triangle right-angled?

Given any three positive numbers a, b, c, return true if the triangle with sides a, b and c is right-angled. Otherwise, return f...

9 maanden ago

Solved

Side of a rhombus

If a rhombus has diagonals of length x and x+1, then what is the length of its side, y? <<http://upload.wikimedia.org/wikipe...

9 maanden ago

Solved

Dimensions of a rectangle

The longer side of a rectangle is three times the length of the shorter side. If the length of the diagonal is x, find the width...

9 maanden ago

Solved

Area of an Isoceles Triangle

An isosceles triangle has equal sides of length x and a base of length y. Find the area, A, of the triangle. <<http://upload...

9 maanden ago

Solved

Side of an equilateral triangle

If an equilateral triangle has area A, then what is the length of each of its sides, x? <<http://upload.wikimedia.org/wikipe...

9 maanden ago

Solved

Code breaker, Part I: Operation Phoenix

You have been tasked with decoding a set of coded messages that have been intercepted. Based on previous intelligence that ...

9 maanden ago

Solved

Scrabble Scores - 2

An <https://www.mathworks.com/matlabcentral/cody/problems/56-scrabble-scores introductory Cody problem> asks the user to score a...

9 maanden ago

Solved

Area of an equilateral triangle

Calculate the area of an equilateral triangle of side x. <<http://upload.wikimedia.org/wikipedia/commons/e/e0/Equilateral-tr...

9 maanden ago

Solved

Length of a short side

Calculate the length of the short side, a, of a right-angled triangle with hypotenuse of length c, and other short side of lengt...

9 maanden ago

Answered

Allow user to create/modify block diagram

There is a multistep approach that most people take when trying to do this. It will not prohibit people from using other blocks...

Allow user to create/modify block diagram

There is a multistep approach that most people take when trying to do this. It will not prohibit people from using other blocks...

9 maanden ago | 0

| accepted

Answered

Stateflow outputs a "mux" variable when I want a bus. How can I output a bus or reference specific elements of "mux"?

Have you tried creating a Simulink Bus and then in the Stateflow data editor setting the type of present_state to be the Simulin...

Stateflow outputs a "mux" variable when I want a bus. How can I output a bus or reference specific elements of "mux"?

Have you tried creating a Simulink Bus and then in the Stateflow data editor setting the type of present_state to be the Simulin...

9 maanden ago | 0

Answered

c file name from grt generated code

Probably the easiest approach is to write a simple MATLAB function that takes as an argument the modelFileName, then uses filepa...

c file name from grt generated code

Probably the easiest approach is to write a simple MATLAB function that takes as an argument the modelFileName, then uses filepa...

9 maanden ago | 0

| accepted

Answered

OO code generation from Simulink

If you use Embedded Coder and select C++ code generation, you can get a C++ class for each referenced model in the system. It i...

OO code generation from Simulink

If you use Embedded Coder and select C++ code generation, you can get a C++ class for each referenced model in the system. It i...

9 maanden ago | 0

| accepted

Answered

How to rebuild a referenced model inside a top model

slbuild(<modelRefName>,'ModelReferenceRTWTarget')

How to rebuild a referenced model inside a top model

slbuild(<modelRefName>,'ModelReferenceRTWTarget')

9 maanden ago | 0

Answered

How to run SIL of a model including s-functions based on c++ code

when you used legacy_code tool to create s-function, did you use the legacy_code('rtwmakecfg_generate', specs) option to crea...

How to run SIL of a model including s-functions based on c++ code

when you used legacy_code tool to create s-function, did you use the legacy_code('rtwmakecfg_generate', specs) option to crea...

9 maanden ago | 0