Community Profile

# Srinidhi

### State University of New York at Buffalo (University at Buffalo)

114 2021 이후 총 참여 횟수

Chemical Engineering

#### Srinidhi's 배지

세부 정보 보기...

참여 게시물
보기 기준

해결됨

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

약 1달 전

해결됨

Who invented zero?
We know the importance zero in computer science, mathematics... but who invented zero? Clue: He was the first in the line ...

약 2달 전

해결됨

matlab indian players
answer is one of the indian matlab player(just for fun dont take serious)

약 2달 전

해결됨

Area of a triangle
A triangle is given with base *'b'* ,vertical hight *'h'* . then find it's area.

약 2달 전

해결됨

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

약 2달 전

해결됨

Replace Vector Elements
Replace all elements in a vector which are equal to or smaller than zero with 0.1. Example: A = [1 2 3 -1 0 2 -3 -80]; ...

약 2달 전

해결됨

Too mean-spirited
Find the mean of each consecutive pair of numbers in the input row vector. For example, x=[1 2 3] ----> y = [1.5 2.5] x=[1...

약 2달 전

해결됨

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

약 2달 전

해결됨

Calculate the sum of two numbers. Example input = [2 3] output = 5

약 2달 전

해결됨

Evaluating a polynomial
Given the following polynomial and the value for x, determine y. y = 3x^5 – x^3 + 8x – 3 Example x = 1 y = 3 - 1 +...

2달 전

해결됨

find the surface area of a cube
given cube side length x, find the surface area of the cube, set it equal to y

2달 전

해결됨

Return 'on' or 'off'
When the input is true, return 'on', otherwise, return 'off'.

2달 전

해결됨

Given a matrix, return the last eigen value
Given a matrix, return the first eigen value For example: x = magic(5) 17 24 1 8 15 23 5 7 14 ...

2달 전

해결됨

The Answer to Life, the Universe, and Everything
A variation of a previous Hitchhiker's Guide to the Galaxy problem. *Inputs:* Life, the Universe, and Everything *Output:*...

2달 전

해결됨

Will there be a new leader?

2달 전

해결됨

Square the input
Given a scalar or vector x, return the square of each element. Example x = [7 2] answer = [49 4]

2달 전

해결됨

Square root of a number
Write a code that will output the square root of x.

2달 전

해결됨

Area of a circle
Find the value for area of the circle if diameter is given

2달 전

해결됨

Whether the input is vector?
Given the input x, return 1 if x is vector or else 0.

2달 전

해결됨

Element by element multiplication of two vectors
Given two input vectors, return the element-by-element product. Example A = [1 2 3] B = [7 3 1] The answer should be...

2달 전

해결됨

Product of elements in row
Product of matrix such that a=[3 3 1] b=9

2달 전

해결됨

Swap two numbers
Example Input: a = 10 b = 20 Output a = 20 b = 10

2달 전

해결됨

Count up then down
Create a function that produces counting up from 0 up to n then down to 0 n=2 --> 0 1 2 1 0 n=3 --> ...

2달 전

해결됨

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.

2달 전

해결됨

Sum the numbers on the main diagonal
Sum the numbers on the main diagonal of an n-by-n matrix. For input: A = [1 2 4 3 6 2 2 4 7]...

2달 전

해결됨

Simple equation: Annual salary
Given an hourly wage, compute an annual salary by multiplying the wage times 40 and times 50, because salary = wage x 40 hours/w...

2달 전

해결됨

Check if number exists in vector
Return 1 if number _a_ exists in vector _b_ otherwise return 0. a = 3; b = [1,2,4]; Returns 0. a = 3; b = [1,...

2달 전

해결됨

03 - Matrix Variables 2
Make the following variable: <<http://samle.dk/STTBDP/Assignment1_3b.png>> A 9x9 matrix of zeros, but with the following v...

2달 전

해결됨

Replacing a row
For matrix G=[1 2 3; 4 5 6; 7 8 9] Replace the 2nd row with 8s **remember to create matrix G

2달 전

해결됨

Vectors counting by 2
Create a vector numbers from 7 to 15 in increments of 2

2달 전