Community Profile

# Prateek Sahu

### MathWorks

265 2020 이후 총 참여 횟수

#### Prateek Sahu's 배지

세부 정보 보기...

참여 게시물
보기 기준

해결됨

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달 전

해결됨

Roots
Find out the roots of a given polynomial equation.Given are the coefficients of the equation.

약 2달 전

해결됨

Mode
Find the mode of the vector Assumption: no vector is bimodal Example 1: input=[1 2 3 4 4]; output=4 Example 2: input=[7...

약 2달 전

해결됨

Matrix to column conversion
Given a matrix of any size, convert it into a column vector. e.g A=[10 20 30; 40 50 60] then, B = [10; 40; ...

약 2달 전

해결됨

Compare two input matrices
Check which input matrix has more elements. Return "1" if matrix A has more elements than matrix B. Otherwise return "0". Exa...

약 2달 전

해결됨

Find the index of the largest value in any vector X=[4,3,4,5,9,12,0,4.....5]
The given function returns the index of the maximum value in a given matrix. such as X=[4,3,4,5,9,12,0,5] Ans= 6 if maxim...

약 2달 전

해결됨

Kinetic Energy
Given the mass m and velocity v of an object, determine its <http://en.wikipedia.org/wiki/Kinetic_energy kinetic energy>.

약 2달 전

해결됨

Is It a Palindrome?
Given a string or array, determine if it is a palindrome.

약 2달 전

해결됨

Where is she?
Given the numbers 12, 3, 6, 9 Tell where the girl is located. That is: Look to your 3 o'clock = look right Example ...

약 2달 전

해결됨

Perimeters/Circumference
Given an array. Determine whether the perimeter is of a circle, triangle or square. Then calculate the perimeter.

약 2달 전

해결됨

Product of Array
Given an array of numbers. Get the product of the array.

약 2달 전

해결됨

Rotate a Matrix
Input a Matrix x, Output y is the matrix rotating x 90 degrees clockwise

약 2달 전

해결됨

The sum of the numbers in the vector
eg. [1,2,3]---->SUM=6

약 2달 전

해결됨

Multiply a column by a row
* Given a column vector C and and a row vector R. * Output a matrix M. * Every column of M equals to C multiplied by correspon...

약 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달 전

해결됨

Find the area of a triangle
Given a triangle with a base b and height h, return the triangle area.

약 2달 전

해결됨

Remove the Zero
Given an array n, remove all zeros

약 2달 전

해결됨

Matlab Basics - Set unwanted parts of a vector to zero
Consider a vector x, of length >= 7, write a script to set elements 2, 5, and 6 to zero. Example x = [1 2 3 4 5 6 7] --> ...

약 2달 전

해결됨

Matlab Basics - Logical Tests I
Write a script to test whether a year number is for a leap year or not. eg. x = 1884 output = 1 eg. x = 3 output = 0

약 2달 전

해결됨

Matlab Basics II - Extract last 3 elements of a vector
Let x be a vector of unknown length, we are always interested in the last 3 numbers in the vector, write a function that gives t...

약 2달 전

해결됨

ベクトル [1 2 3 4 5 6 7 8 9 10]　の作成
MATLABでは,角括弧の中に要素を入れることで、ベクトルを作成できる。 x = [1 2 3 4] また次のようにも書ける（コンマはオプション）。 x = [1, 2, 3, 4] 問題：次のベクトルを出力する関数を作成せよ。...

약 2달 전

해결됨

Box
Give the volume of a box, x is equal to the body diagonal.

약 2달 전

해결됨

Volume of Cylinder
Compute the Circumference of a Cylinder given it's radius and height.Here x is the radius and y is the height

약 2달 전

해결됨

Integer or Float?
Test an input to see whether it is an integer or a floating point number. If it is an integer return 1 for 'true'. Otherwise ret...

약 2달 전

해결됨

Sum of odd numbers in a matrix
Find the sum of all the odd numbers in a matrix. Example x = [2 3 5 7 1 4 11] y = 27

약 2달 전

해결됨

Draw 'C'.
Given x as input, generate a x-by-x matrix 'C' using 0 and 1. example: x=4 ans= [0 1 1 1 1 0 0 0 ...

약 2달 전

해결됨

convert matrix to single column
given any matrix, convert it to single column

약 2달 전

해결됨

Simple Matrix
Make the following matrix without typing it in one by one. [1 2 3; 2 4 6; 4 8 12] x=[1 2 3].

약 2달 전

해결됨

Matlab Basics - Convert a row vector to a column vector
Write a script to convert a row (e.g. x = [1 2 3]) to a column (e.g. y = [1;2;3]), your script should be able to do this for any...

약 2달 전

해결됨

Celsius to Kelvin
Convert Celsius degrees to Kelvin temperature.

약 2달 전