Jaden Beck
MathWorks
Followers: 0 Following: 0
Feeds
已解决
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...
2 years 前
已解决
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: ...
2 years 前
已解决
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).
2 years 前
已解决
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...
2 years 前