Jaden Beck
MathWorks
Content Feed
문제를 풀었습니다
Draw a fancy '7' in a zero matrix!
Given a x-by-x matrix filled with zeros (x is odd and > 3). Use 7s to draw a number 7 into it! Like this: x = 5, y = 7 7 7 7 7...
1년 초과 전
문제를 풀었습니다
Extract the main diagonal of a matrix
Extract the main diagonal of a matrix and return as an array. For example, the main diagonal of the following matrix would be: ...
1년 초과 전
문제를 풀었습니다
Determine if integer is even
Write a function to determine if an input integer(n) is even. The output should be a boolean (true or false).
1년 초과 전
문제를 풀었습니다
Determine if all elements are odd
Given an array, return true if all of the elements are odd. ex. x = [3 4 1] allOdd(x) ans = false ex. x = [3 5 7; 5 9...
1년 초과 전