Question


Clean up Simulink block diagram
Is there an automatic way rearrange a Simulink block diagram so that it is easy to read? For example: * Straighten paths wher...

14 years ago | 5 answers | 3

5

answers

Question


Faster Simulink if scopes are switched off?
My questions concerns a Simulink model that is still being refined. The model contains >20 scopes to make it easy to spot troubl...

14 years ago | 1 answer | 0

1

answer

Solved


Check if sorted
Check if sorted. Example: Input x = [1 2 0] Output y is 0

14 years ago

Solved


Solve the Sudoku Row
*Description* A simple yet tedious task occurs near the end of most Sudoku-solving algorithms, computerized or manual. The ta...

14 years ago

Solved


Pizza!
Given a circular pizza with radius _z_ and thickness _a_, return the pizza's volume. [ _z_ is first input argument.] Non-scor...

14 years ago

Question


Documenting an evolving Simulink model
I am running a script that loops through parameters and runs Simulink for each combination. At the end of each model run, I save...

14 years ago | 1 answer | 1

1

answer

Question


How to find all XY Graphs in Simulink model
I would like to find all XY Graphs in a Simulink model, even under masks. The following doesn't work: find_system(bdroot, '...

14 years ago | 1 answer | 0

1

answer

Answered
What do you think of Cody, new service for MATLAB Central
Would love it, but keep getting errors that 'License checkout failed' on some of the testing of my solutions which requires resu...

14 years ago | 1

Solved


Select every other element of a vector
Write a function which returns every other element of the vector passed in. That is, it returns the all odd-numbered elements, s...

14 years ago

Solved


Find the alphabetic word product
If the input string s is a word like 'hello', then the output word product p is a number based on the correspondence a=1, b=2, ....

14 years ago

Solved


Add two numbers
Given a and b, return the sum a+b in c.

14 years ago

Question


Saving mat file with many signals from Simulink
I have a Simulink model that calculates many time series (position, velocity, power, etc) in different blocks. I would like to c...

14 years ago | 2 answers | 0

2

answers

Solved


Find the numeric mean of the prime numbers in a matrix.
There will always be at least one prime in the matrix. Example: Input in = [ 8 3 5 9 ] Output out is 4...

14 years ago

Solved


Weighted average
Given two lists of numbers, determine the weighted average. Example [1 2 3] and [10 15 20] should result in 33.333...

14 years ago

Solved


Increment a number, given its digits
Take as input an array of digits (e.g. x = [1 2 3]) and output an array of digits that is that number "incremented" properly, (i...

14 years ago

Solved


Find the sum of all the numbers of the input vector
Find the sum of all the numbers of the input vector x. Examples: Input x = [1 2 3 5] Output y is 11 Input x ...

14 years ago

Solved


Create times-tables
At one time or another, we all had to memorize boring times tables. 5 times 5 is 25. 5 times 6 is 30. 12 times 12 is way more th...

14 years ago

Solved


Return the 3n+1 sequence for n
A Collatz sequence is the sequence where, for a given number n, the next number in the sequence is either n/2 if the number is e...

14 years ago

Solved


Make the vector [1 2 3 4 5 6 7 8 9 10]
In MATLAB, you create a vector by enclosing the elements in square brackets like so: x = [1 2 3 4] Commas are optional, s...

14 years ago

Solved


Finding Perfect Squares
Given a vector of numbers, return true if one of the numbers is a square of one of the other numbers. Otherwise return false. E...

14 years ago

Solved


Is my wife right?
Regardless of input, output the string 'yes'.

14 years ago

Solved


Determine whether a vector is monotonically increasing
Return true if the elements of the input vector increase monotonically (i.e. each element is larger than the previous). Return f...

14 years ago

Solved


Column Removal
Remove the nth column from input matrix A and return the resulting matrix in output B. So if A = [1 2 3; 4 5 6]; and ...

14 years ago

Solved


Determine if input is odd
Given the input n, return true if n is odd or false if n is even.

14 years ago

Solved


Times 2 - START HERE
Try out this test problem first. Given the variable x as your input, multiply it by two and put the result in y. Examples:...

14 years ago

Question


How can I get a PDF version of Simulink manual?
Where on Mathwork's website can I obtain a PDF version of the Simulink manuals? If I'm learning something new I need to mark it ...

14 years ago | 1 answer | 0

1

answer

Question


Top-level approach to Simulink parameter study
I inherited a Simulink model that I will use for a study in which ~50 parameters are varied. This will require repeatedly runnin...

14 years ago | 1 answer | 0

1

answer

Question


Why use x=load('myFile.mat')?
Why should I use newStructure = load('myFile.mat') ; instead of load('myFile.mat') ; I think it has something ...

14 years ago | 3 answers | 2

3

answers

Question


Fastest way to minimize a function
I have to perform many minimizations of a function, so I want to do it quickly. Here is the problem: given different values of T...

14 years ago | 1 answer | 0

1

answer

Question


Cores vs. speed tradeoff for a Matlab computer
I am buying a computer for Matlab modeling. The goal is to select the computer in my budget range that will complete a set of si...

14 years ago | 2 answers | 3

2

answers

Load more