질문


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년 초과 전 | 답변 수: 5 | 3

5

답변

질문


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년 초과 전 | 답변 수: 1 | 0

1

답변

문제를 풀었습니다


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

14년 초과 전

문제를 풀었습니다


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년 초과 전

문제를 풀었습니다


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

14년 초과 전

질문


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년 초과 전 | 답변 수: 1 | 1

1

답변

질문


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년 초과 전 | 답변 수: 1 | 0

1

답변

답변 있음
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년 초과 전 | 1

문제를 풀었습니다


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년 초과 전

문제를 풀었습니다


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년 초과 전

문제를 풀었습니다


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

14년 초과 전

질문


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년 초과 전 | 답변 수: 2 | 0

2

답변

문제를 풀었습니다


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년 초과 전

문제를 풀었습니다


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년 초과 전

문제를 풀었습니다


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년 초과 전

문제를 풀었습니다


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년 초과 전

문제를 풀었습니다


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년 초과 전

문제를 풀었습니다


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년 초과 전

문제를 풀었습니다


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년 초과 전

문제를 풀었습니다


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년 초과 전

문제를 풀었습니다


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

14년 초과 전

문제를 풀었습니다


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년 초과 전

문제를 풀었습니다


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년 초과 전

문제를 풀었습니다


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

14년 초과 전

문제를 풀었습니다


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년 초과 전

질문


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년 초과 전 | 답변 수: 1 | 0

1

답변

질문


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년 초과 전 | 답변 수: 1 | 0

1

답변

질문


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년 초과 전 | 답변 수: 3 | 2

3

답변

질문


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년 초과 전 | 답변 수: 1 | 0

1

답변

질문


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년 초과 전 | 답변 수: 2 | 3

2

답변

더 보기