Community Profile

# Srijan Jain

Last seen: fast 3 Jahre vor Aktiv seit 2018

Followers: 0   Following: 0

#### Statistiken

All

Abzeichen anzeigen

#### Feeds

Anzeigen nach

Beantwortet
Rapid Acceleration mode Simulink compilation problem
Hey, I understand that you're facing errors while building your model in Rapid Acceleration mode. You may want to refer to thi...

fast 3 Jahre vor | 0

| akzeptiert

Gelöst

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

fast 3 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 3 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 3 Jahre vor

Gelöst

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

fast 3 Jahre vor

Gelöst

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

fast 3 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 3 Jahre vor

Gelöst

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

fast 3 Jahre vor

Gelöst

Back and Forth Rows
Given a number n, create an n-by-n matrix in which the integers from 1 to n^2 wind back and forth along the rows as shown in the...

fast 3 Jahre vor

Gelöst

Return the 3n+1 sequence for n
A Collatz sequence is the sequence where, for a given number n, the next number in the sequence is either n/2 if the number is e...

fast 3 Jahre vor

Gelöst

Weighted average
Given two lists of numbers, determine the weighted average. Example [1 2 3] and [10 15 20] should result in 33.333...

fast 3 Jahre vor

Gelöst

Return area of square
Side of square=input=a Area=output=b

fast 3 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 3 Jahre vor

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 3 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 3 Jahre vor

Gelöst

Roll the Dice!
*Description* Return two random integers between 1 and 6, inclusive, to simulate rolling 2 dice. *Example* [x1,x2] =...

fast 3 Jahre vor

Gelöst

Swap the input arguments
Write a two-input, two-output function that swaps its two input arguments. For example: [q,r] = swap(5,10) returns q = ...

fast 3 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 3 Jahre vor

Gelöst

Get the length of a given vector
Given a vector x, the output y should equal the length of x.

fast 3 Jahre vor

Gelöst

Generate a vector like 1,2,2,3,3,3,4,4,4,4
Generate a vector like 1,2,2,3,3,3,4,4,4,4 So if n = 3, then return [1 2 2 3 3 3] And if n = 5, then return [1 2 2...

fast 3 Jahre vor

Gelöst

Arrange vector in ascending order
Arrange a given vector in ascending order. input = [4 5 1 2 9]; output = [1 2 4 5 9];

fast 3 Jahre vor

Gelöst

Arrange Vector in descending order
If x=[0,3,4,2,1] then y=[4,3,2,1,0]

fast 3 Jahre vor

Gelöst

Inner product of two vectors
Find the inner product of two vectors.

fast 3 Jahre vor

Gelöst

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

fast 3 Jahre vor

Gelöst

The Hitchhiker's Guide to MATLAB
Output logical "true" if the input is the answer to life, the universe and everything. Otherwise, output logical "false".

fast 3 Jahre vor

Gelöst

Find max
Find the maximum value of a given vector or matrix.

fast 3 Jahre vor

Gelöst

Check if sorted
Check if sorted. Example: Input x = [1 2 0] Output y is 0

fast 3 Jahre vor

Gelöst

Simple equation: Annual salary
Given an hourly wage, compute an annual salary

fast 3 Jahre vor

Gelöst

Getting the indices from a vector
This is a basic MATLAB operation. It is for instructional purposes. --- You may already know how to <http://www.mathworks....

fast 3 Jahre vor

Gelöst

Remove the vowels
Remove all the vowels in the given phrase. Example: Input s1 = 'Jack and Jill went up the hill' Output s2 is 'Jck nd Jll wn...

fast 3 Jahre vor