문제를 풀었습니다


Fibonacci sequence
Calculate the nth Fibonacci number. Given n, return f where f = fib(n) and f(1) = 1, f(2) = 1, f(3) = 2, ... Examples: Inpu...

13년 초과 전

문제를 풀었습니다


Triangle Numbers
Triangle numbers are the sums of successive integers. So 6 is a triangle number because 6 = 1 + 2 + 3 which can be displa...

13년 초과 전

문제를 풀었습니다


Rotate a Matrix
Input a Matrix x, Output y is the matrix rotating x 90 degrees clockwise

13년 초과 전

문제를 풀었습니다


Get the length of a given vector
Given a vector x, the output y should equal the length of x.

13년 초과 전

문제를 풀었습니다


Determine Whether an array is empty
Input a matrix x, output y is TRUE if x is empty, otherwise FALSE.

13년 초과 전

문제를 풀었습니다


Make one big string out of two smaller strings
If you have two small strings, like 'a' and 'b', return them put together like 'ab'. 'a' and 'b' => 'ab' For extra ...

13년 초과 전

문제를 풀었습니다


Program an exclusive OR operation with logical operators
Program an exclusive or operation *without* using the MATLAB function xor. Use logical operators like |, &, ~, ... instead. ...

13년 초과 전

문제를 풀었습니다


Sum all integers from 1 to 2^n
Given the number x, y must be the summation of all integers from 1 to 2^x. For instance if x=2 then y must be 1+2+3+4=10.

13년 초과 전

문제를 풀었습니다


Distance walked 1D
Suppose you go from position 7 to 10 to 6 to 4. Then you have walked 9 units of distance, since 7 to 10 is 3 units, 10 to 6 is 4...

13년 초과 전

문제를 풀었습니다


Number of 1s in a binary string
Find the number of 1s in the given binary string. Example. If the input string is '1100101', the output is 4. If the input stri...

13년 초과 전

문제를 풀었습니다


Summing digits
Given n, find the sum of the digits that make up 2^n. Example: Input n = 7 Output b = 11 since 2^7 = 128, and 1 + ...

13년 초과 전

문제를 풀었습니다


Remove any row in which a NaN appears
Given the matrix A, return B in which all the rows that have one or more <http://www.mathworks.com/help/techdoc/ref/nan.html NaN...

13년 초과 전

문제를 풀었습니다


How to find the position of an element in a vector without using the find function
Write a function posX=findPosition(x,y) where x is a vector and y is the number that you are searching for. Examples: fin...

13년 초과 전

문제를 풀었습니다


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

13년 초과 전

문제를 풀었습니다


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

13년 초과 전

문제를 풀었습니다


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

13년 초과 전

문제를 풀었습니다


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

13년 초과 전

문제를 풀었습니다


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

13년 초과 전

문제를 풀었습니다


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

13년 초과 전

문제를 풀었습니다


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

13년 초과 전

문제를 풀었습니다


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

13년 초과 전

답변 있음
GUI
I too have faced the same problem. Its a problem with Matlab GUI i guess.

13년 초과 전 | 0

질문


Plotting continous line segments...
Hi I want to plot the movement of robotic arm which has 3 links. These links are resembled by 3 line segments which can bend...

13년 초과 전 | 답변 수: 0 | 0

0

답변

질문


Using workspace variables in Gui
hi I want to develop simple gui consisting of only a Push button. On pressing this button i want to save all workspace variab...

거의 14년 전 | 답변 수: 0 | 0

0

답변

질문


To save whole workspace in a file(possibly excel)
Hi how do i save the whole workspace of matlab in a file preferably in excel file. Please help. Thanks in advance.

거의 14년 전 | 답변 수: 2 | 0

2

답변

질문


Store Scope output for different test cases in workspace
Hello I want to store a set of 4 waveform outputs from a simulink model to workspace.Also there are different test cases fo...

대략 14년 전 | 답변 수: 1 | 0

1

답변

질문


Simulink Testing
Hello, How do I simulink model testing without using TPT tool? Is there any readymade gui available in matlab to test ...

대략 14년 전 | 답변 수: 2 | 0

2

답변

답변 있음
Decimal to Hexadecimal conversion in simulink/stateflow
type in command window: >> edit dec2hex.m The function logic can be seen.. You can use the same logic to build simulink mode...

대략 14년 전 | 0

질문


Determine vertices of a 3D model
I need to find vertices of a 3D model and store it in an array.And use this array to recontruct the 3D model. Please help...

대략 14년 전 | 답변 수: 1 | 0

1

답변