Solved

Neither minima nor maxima
Input v is a vector. Return all the elements of v which are not a local minimum or maximum. Example: v = [1 2 3 4 5] Ou...

más de 2 años ago

Solved

Find indices of diagonal elements
Given a matrix A and a diagonal index d (where 0 indicates the main diagonal and off-diagonals are identified by positive and n...

más de 2 años ago

Solved

Elements with highest local average
Input v is a row vector such that length(v)>3. Consider a sliding window of length 3 that is used to calculate the local average...

más de 2 años ago

Solved

Sum my indices
Given inputs M and N (in that order), output an MxN matrix whose entries are equal to the sum of their indices. Example input...

más de 2 años ago

Solved

Hard limit function
Classify x data as if x>=0 then y=1 if x<0 then y=0 Example x = [ -2 -1 0 1 2] y = [ 0 0 1 1 1]

más de 2 años ago

Solved

Decimation - Optimized for speed
This problem is similar to http://www.mathworks.com/matlabcentral/cody/problems/1092-decimation, only this time the score will b...

más de 2 años ago

Solved

Implement a bubble sort technique and output the number of swaps required
A bubble sort technique compares adjacent items and swaps them if they are in the wrong order. This is done recursively until al...

más de 2 años ago

Solved

Reference Index Number
Given a reference set R of elements (each unique but identical in type), and a list V of elements drawn from the set R, possibly...

más de 2 años ago

Solved

Oh Zero Zero Zero!!!
Hello all, So you have to find the largest section of zeros in a vector and then find the length of those zeros and there start...

más de 2 años ago

Solved

Find last zero for each column
Given a numeric array of arbitrary size, return the row index of the last zero for each column. If a column contains all nonzero...

más de 2 años ago

Submitted

Persistent Data for Lookup Tables in Simulink
How to speed up Simulink models that use large lookup tables.

más de 2 años ago | 2 downloads |

Submitted

Bessel Zero Solver
Finds the zeros of besselj and bessely in an ordered fashion. No zeros are missed.

más de 2 años ago | 47 downloads |

Question

Bug Tracker for Simulation Models
I am looking at tracking bugs in simulation models and m code. Is there a bug tracker that you would recommend for use with MATL...

más de 2 años ago | 1 answer | 0

### 1

answer

Answered
How can we generate code from simulink model by command line in windows?
See the simulink documentation. Specifically, <https://www.mathworks.com/help/simulink/functionlist.html?s_cid=doc_ftr Functi...

más de 2 años ago | 0

Answered
intersection mesh plot (3D)
Without more information, I can only provide hints. Here you go: * If the two surfaces can be thought of as mathematical func...

más de 2 años ago | 1

| accepted

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...

más de 2 años 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...

más de 2 años 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 ...

más de 2 años 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...

más de 2 años ago | 1 answer | 0

### 1

answer

Submitted

Persistent Example - Loading Data Only When Needed
Working with persistent variables.

más de 2 años 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...

más de 2 años 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...

más de 2 años ago | 1 answer | 0

### 1

answer

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...

más de 2 años 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...

más de 2 años ago | 2 answers | 0

### 2

answers

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...

más de 2 años 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...

más de 2 años ago | 1 answer | 0

### 1

answer

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...

más de 2 años 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...

más de 2 años 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...

más de 2 años ago | 1 answer | 0

### 1

answer

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 ...

más de 2 años ago | 1 answer | 0

answer

Load more