Answered

Assign variable to Initialization/Current Workspace

Yeah, don't do this. It will cause you pain. The Simulink tools that track where your variables come form cannot track where you...

Assign variable to Initialization/Current Workspace

Yeah, don't do this. It will cause you pain. The Simulink tools that track where your variables come form cannot track where you...

meer dan 2 jaar ago | 0

Answered

What are your thoughts on Simulink libraries that link to themselves?

I don't like this behavior. I think it is troublesome and easy to break. I am a blockset author and I don't see how this is good...

What are your thoughts on Simulink libraries that link to themselves?

I don't like this behavior. I think it is troublesome and easy to break. I am a blockset author and I don't see how this is good...

meer dan 2 jaar ago | 0

Answered

Persistence in Lookup Table Data

I found a solution. I posted it to the File Exchange as linked below. The solution is to use |UserData| of a block to store the ...

Persistence in Lookup Table Data

I found a solution. I posted it to the File Exchange as linked below. The solution is to use |UserData| of a block to store the ...

meer dan 2 jaar ago | 0

| accepted

Question

Persistence in Lookup Table Data

I load several large multi-dimensional lookup tables in the initialization of a subsystem that has lookup table blocks. The look...

meer dan 2 jaar ago | 1 answer | 0

Submitted

Persistent Example - Loading Data Only When Needed

Working with persistent variables.

meer dan 2 jaar ago | 1 download |

Answered

Sundials Solver in MATLAB/Simulink

Support for Sundials is limited in SimBiology. There is no hint that this will be more broadly available anytime soon. Hint a...

Sundials Solver in MATLAB/Simulink

Support for Sundials is limited in SimBiology. There is no hint that this will be more broadly available anytime soon. Hint a...

bijna 3 jaar ago | 0

| accepted

Question

Managing High Levels of Variation in a Simulink Library

I am a blockset author similar the authors of "Aerospace Blockset" and "Powertrain Blockset." I build mathematical models of hyd...

bijna 3 jaar ago | 1 answer | 0

Answered

Managing High Levels of Variation in a Simulink Library

Mathworks responded to my question. Here is the response. |__________________| Answer to question 1: Don't use the conf...

Managing High Levels of Variation in a Simulink Library

Mathworks responded to my question. Here is the response. |__________________| Answer to question 1: Don't use the conf...

bijna 3 jaar ago | 0

| accepted

Question

Why does the initialization function in a Simulink subsystem block use an integer rather than the corresponding text string?

There is an example Simulink file attached. I created a parameter on the "Parameter & Dialog" tab called |Parameter1|. |Paramete...

bijna 3 jaar ago | 2 answers | 0

Answered

Why does the initialization function in a Simulink subsystem block use an integer rather than the corresponding text string?

To use the text string coming from the popup options, turn off the "evaluate" checkbox as shown below. This allows comparison of...

Why does the initialization function in a Simulink subsystem block use an integer rather than the corresponding text string?

To use the text string coming from the popup options, turn off the "evaluate" checkbox as shown below. This allows comparison of...

bijna 3 jaar ago | 1

| accepted

Question

Assign variable to Initialization/Current Workspace

In the mask of a simulink block, I need to loop over a list of variables and values assign them into the initialization workspac...

bijna 3 jaar ago | 1 answer | 0

Answered

Why does the Simulink block mask initialization run twice?

The initialization runs twice if "Icons & Ports"-->"Run initialization" is set to "On" or "Analyze" (assuming MATLAB detects the...

Why does the Simulink block mask initialization run twice?

The initialization runs twice if "Icons & Ports"-->"Run initialization" is set to "On" or "Analyze" (assuming MATLAB detects the...

bijna 3 jaar ago | 0

| accepted

Answered

Using Deval with Simulink Output

No, there is not an obvious way to use Deval with Simulink output. However, you can use "Configuration Parameters"-->"Data Impor...

Using Deval with Simulink Output

No, there is not an obvious way to use Deval with Simulink output. However, you can use "Configuration Parameters"-->"Data Impor...

bijna 3 jaar ago | 0

| accepted

Question

What are your thoughts on Simulink libraries that link to themselves?

What are your thoughts on Simulink libraries that link to themselves? They seems to break quite often as you are developing them...

bijna 3 jaar ago | 1 answer | 0

Question

Is there a clever way to isolate Simulink Parameter callback workspace?

The |run| command runs a script in the |caller| workspace. That got me thinking that there might be a clever way to run code in ...

bijna 3 jaar ago | 1 answer | 0

Answered

How do I compare a Simulink Disabled Library Block Against the Library?

One workaround is to put the blocks that you want to compare in there own models and save them as model1 and model2. Then you ca...

How do I compare a Simulink Disabled Library Block Against the Library?

One workaround is to put the blocks that you want to compare in there own models and save them as model1 and model2. Then you ca...

bijna 3 jaar ago | 0

Question

Why does the Simulink block mask initialization run twice?

If you are debugging a mask initialization, use the |keyboard| function to stop the code inside the Simulink block mask initiali...

bijna 3 jaar ago | 1 answer | 0

Question

How do I compare a Simulink Disabled Library Block Against the Library?

# I made a library block. # I made a model that used that library block and I "disabled" the library link. # I want to compa...

bijna 3 jaar ago | 2 answers | 2

Solved

Number of Even Elements in Fibonacci Sequence

Find how many even Fibonacci numbers are available in the first d numbers. Consider the following first 14 numbers 1 1 2...

ongeveer 3 jaar ago

Solved

The 5th Root

Write a function to find the 5th root of a number. It sounds easy, but the typical functions are not allowed (see the test su...

ongeveer 3 jaar ago

Solved

Find the biggest empty box

You are given a matrix that contains only ones and zeros. Think of the ones as columns in an otherwise empty floor plan. You wan...

meer dan 3 jaar ago

Solved

What number has this problem?

This problem is added because it is problem number *???* in the "Community" problems section. <http://www.mathworks.de/matlab...

bijna 4 jaar ago

Solved

sum of first 'n' terms

Given n=10, find the sum of first 'n' terms Example: If n=10, then x=1,2,3,4,5,6,7,8,9,10. The sum of these n=10 terms is 55...

bijna 4 jaar ago

Solved

06 - Matrix Equations 2

Define the vectors _aVec_ and _bVec_: <<http://samle.dk/STTBDP/Assignment1_2a.png>> and <<http://samle.dk/STTBDP/Assig...

bijna 4 jaar ago

Solved

Determine the square root

Determine the square root of the value the user has entered, n.

bijna 4 jaar ago

Solved

GJam 2014 China Rd B: Sudoku Checker

This Challenge is derived from <http://code.google.com/codejam/contest/2929486/dashboard#s=p0 GJam 2014 China Sudoku>. Large Cas...

bijna 4 jaar ago

Solved

Sudoku square

We have a small Sudoku square, but one number is missing. x = [ 1 5 4 8 6 3 0 9 7 ] Make a function, wher...

bijna 4 jaar ago

Solved

Check to see if a Sudoku Puzzle is Solved

*Description:* Your task, should you choose to accept it, is to make a function that checks to see if a 9x9 matrix of integer...

bijna 4 jaar ago

Solved

Read a Soroban Abacus

*Description* The Soroban is the name of the modern Japanese abacus. Information on reading a Soroban can be found <http://we...

bijna 4 jaar ago

Solved

Spherical radius given four points

Determine the radius of a sphere provided four non-coplanar points on the surface of the sphere. pts = [x1 y1 z1; x...

bijna 4 jaar ago