Feeds
已解决
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 years 前
已解决
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 years 前
已解决
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 years 前
已解决
Swap the first and last columns
Flip the outermost columns of matrix A, so that the first column becomes the last and the last column becomes the first. All oth...
13 years 前
已解决
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 years 前
已解决
Determine if input is odd
Given the input n, return true if n is odd or false if n is even.
13 years 前
已解决
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 years 前
提问
Funny bug with respect to NaN value,
declare X as X = [1 2 3 4 NaN]; and then use, max(X) yields, 4 min(X) yields, 1 but in workspace the Min and Ma...
14 years 前 | 1 个回答 | 0
1
个回答提问
A suspected BUG in " interp1( ) " function, (Matlab --> 2007b)
interp1([-inf 20 40 inf],[200 200 300 300],[0:10:50]); result : NaN NaN 200 250 300 300 ==> as per my understanding ...
14 years 前 | 2 个回答 | 0

