Rajil Kansal
MathWorks
Followers: 0 Following: 0
Feeds
已解决
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.
4 years 前
已解决
Find all elements less than 0 or greater than 10 and replace them with NaN
Given an input vector x, find all elements of x less than 0 or greater than 10 and replace them with NaN. Example: Input ...
4 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]; ...
4 years 前
已解决
Determine if input is odd
Given the input n, return true if n is odd or false if n is even.
4 years 前
已解决
Who Has the Most Change?
You have a matrix for which each row is a person and the columns represent the number of quarters, nickels, dimes, and pennies t...
4 years 前
已解决
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...
4 years 前
已解决
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...
4 years 前
已解决
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...
4 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...
4 years 前
已解决
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...
4 years 前
已回答
how to find the max element in each column and row and replace it with 1. If conflicting elements occur, look for the next max element.
Hey, I am assuming that you want to find max element in each column and row and replace them with 1. Also only a single 1 shoul...
how to find the max element in each column and row and replace it with 1. If conflicting elements occur, look for the next max element.
Hey, I am assuming that you want to find max element in each column and row and replace them with 1. Also only a single 1 shoul...
4 years 前 | 0
| 已接受
已回答
"Matrix is close to singular or badly scaled " in line 47 of below code (Newmark integration method for mDOF)
Hey, These warning messages can occur when solving a linear system using the backslash operator (\). They indicate that the sys...
"Matrix is close to singular or badly scaled " in line 47 of below code (Newmark integration method for mDOF)
Hey, These warning messages can occur when solving a linear system using the backslash operator (\). They indicate that the sys...
4 years 前 | 0