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

plus de 14 ans il y a | 5 réponses | 3

5

réponses

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

plus de 14 ans il y a | 1 réponse | 0

1

réponse

A résolu


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

plus de 14 ans il y a

A résolu


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

plus de 14 ans il y a

A résolu


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

plus de 14 ans il y a

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

plus de 14 ans il y a | 1 réponse | 1

1

réponse

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

plus de 14 ans il y a | 1 réponse | 0

1

réponse

Réponse apportée
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...

plus de 14 ans il y a | 1

A résolu


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

plus de 14 ans il y a

A résolu


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

plus de 14 ans il y a

A résolu


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

plus de 14 ans il y a

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

plus de 14 ans il y a | 2 réponses | 0

2

réponses

A résolu


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

plus de 14 ans il y a

A résolu


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

plus de 14 ans il y a

A résolu


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

plus de 14 ans il y a

A résolu


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

plus de 14 ans il y a

A résolu


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

plus de 14 ans il y a

A résolu


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

plus de 14 ans il y a

A résolu


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

plus de 14 ans il y a

A résolu


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

plus de 14 ans il y a

A résolu


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

plus de 14 ans il y a

A résolu


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

plus de 14 ans il y a

A résolu


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

plus de 14 ans il y a

A résolu


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

plus de 14 ans il y a

A résolu


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

plus de 14 ans il y a

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

plus de 14 ans il y a | 1 réponse | 0

1

réponse

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

plus de 14 ans il y a | 1 réponse | 0

1

réponse

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

plus de 14 ans il y a | 3 réponses | 2

3

réponses

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

plus de 14 ans il y a | 1 réponse | 0

1

réponse

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

plus de 14 ans il y a | 2 réponses | 3

2

réponses

Charger plus