Community Profile

photo

Rajil Kansal

MathWorks

Last seen: fast 4 Jahre vor Aktiv seit 2020

Followers: 0   Following: 0

Statistiken

All
  • Solver
  • Knowledgeable Level 1
  • First Answer

Abzeichen anzeigen

Feeds

Anzeigen nach

Gelöst


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.

fast 4 Jahre vor

Gelöst


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

fast 4 Jahre vor

Gelöst


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

fast 4 Jahre vor

Gelöst


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

fast 4 Jahre vor

Gelöst


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

fast 4 Jahre vor

Gelöst


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

fast 4 Jahre vor

Gelöst


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

fast 4 Jahre vor

Gelöst


Add two numbers
Given a and b, return the sum a+b in c.

fast 4 Jahre vor

Gelöst


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

fast 4 Jahre vor

Gelöst


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

fast 4 Jahre vor

Gelöst


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

fast 4 Jahre vor

Gelöst


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

fast 4 Jahre vor

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

fast 4 Jahre vor | 0

| akzeptiert

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

fast 4 Jahre vor | 0