Prateek Sahu
MathWorks
Statistiken
0 Probleme
265 Lösungen
RANG
N/A
of 288.900
REPUTATION
N/A
BEITRÄGE
0 Fragen
0 Antworten
ANTWORTZUSTIMMUNG
0.00%
ERHALTENE STIMMEN
0
RANG
of 19.494
REPUTATION
N/A
DURCHSCHNITTLICHE BEWERTUNG
0.00
BEITRÄGE
0 Dateien
DOWNLOADS
0
ALL TIME DOWNLOADS
0
BEITRÄGE
0 Beiträge
BEITRÄGE
0 Öffentlich Kanäle
DURCHSCHNITTLICHE BEWERTUNG
BEITRÄGE
0 Highlights
DURCHSCHNITTLICHE ANZAHL DER LIKES
Content Feed
Gelöst
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...
mehr als 3 Jahre vor
Gelöst
Roots
Find out the roots of a given polynomial equation.Given are the coefficients of the equation.
mehr als 3 Jahre vor
Gelöst
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...
mehr als 3 Jahre vor
Gelöst
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; ...
mehr als 3 Jahre vor
Gelöst
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...
mehr als 3 Jahre vor
Gelöst
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...
mehr als 3 Jahre vor
Gelöst
Kinetic Energy
Given the mass m and velocity v of an object, determine its <http://en.wikipedia.org/wiki/Kinetic_energy kinetic energy>.
mehr als 3 Jahre vor
Gelöst
Is It a Palindrome?
Given a string or array, determine if it is a palindrome.
mehr als 3 Jahre vor
Gelöst
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 ...
mehr als 3 Jahre vor
Gelöst
Perimeters/Circumference
Given an array. Determine whether the perimeter is of a circle, triangle or square. Then calculate the perimeter.
mehr als 3 Jahre vor
Gelöst
Product of Array
Given an array of numbers. Get the product of the array.
mehr als 3 Jahre vor
Gelöst
Rotate a Matrix
Input a Matrix x, Output y is the matrix rotating x 90 degrees clockwise
mehr als 3 Jahre vor
Gelöst
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...
mehr als 3 Jahre vor
Gelöst
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
mehr als 3 Jahre vor
Gelöst
Find the area of a triangle
Given a triangle with a base b and height h, return the triangle area.
mehr als 3 Jahre vor
Gelöst
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] --> ...
mehr als 3 Jahre vor
Gelöst
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
mehr als 3 Jahre vor
Gelöst
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...
mehr als 3 Jahre vor
Gelöst
ベクトル [1 2 3 4 5 6 7 8 9 10] の作成
MATLABでは,角括弧の中に要素を入れることで、ベクトルを作成できる。 x = [1 2 3 4] また次のようにも書ける(コンマはオプション)。 x = [1, 2, 3, 4] 問題:次のベクトルを出力する関数を作成せよ。...
mehr als 3 Jahre vor
Gelöst
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
mehr als 3 Jahre vor
Gelöst
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...
mehr als 3 Jahre vor
Gelöst
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
mehr als 3 Jahre vor
Gelöst
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 ...
mehr als 3 Jahre vor
Gelöst
convert matrix to single column
given any matrix, convert it to single column
mehr als 3 Jahre vor
Gelöst
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].
mehr als 3 Jahre vor
Gelöst
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...
mehr als 3 Jahre vor