Resuelto


07 - Common functions and indexing 1
Define _cMat_: <<http://samle.dk/STTBDP/Assignment1_3c.png>> ( _cMat_ = 10x10 matrix where the numbers from 1 to 100 runs ...

más de 9 años hace

Resuelto


Unit Matrix
Given n, you should return an n-by-n unit matrix. Example: If input is n=2 then A = [ 1 0 0 1 ] If input ...

más de 9 años hace

Resuelto


Squaring Matrix
Square the following matrix using matlab % A = 1 2 3 4 5 6 7 8 So new matrix should display...

más de 9 años hace

Resuelto


Negation the hard way
Write a function that has the following property: f(f(x)) = -x for any numeric array x. Note that there is no restriction on ...

casi 10 años hace

Resuelto


UICBioE240 2.10
Given a vector of numbers, give the difference between the maximum and minimum values.

casi 10 años hace

Resuelto


Generate this matrix
Generate the following matrix. n = 2; out = [-4 -3 -2 -1 0 -3 -2 -1 0 1 -...

casi 10 años hace

Resuelto


Perimeter
Given a sequence of points forming a closed path (first and last points are coincident) return the perimeter value. For example...

casi 10 años hace

Resuelto


square root
Find the square root (y) of an input (x).

casi 10 años hace

Resuelto


CARDS PROBLEM
Read my mind and tell me the card number that I have now in my hands.

casi 10 años hace

Resuelto


UICBioE240 2.2
Make a 3x4 matrix that contains all ones.

casi 10 años hace

Resuelto


UICBioE240 problem 1.18
exp(pi/5*i) and exp(pi/5i). Is there any difference in result? Write yes or no as a string.

casi 10 años hace

Resuelto


Make a Plot with Functions
Make a plot and test

casi 10 años hace

Resuelto


Output a vector which is table of 9
Output a vector which is table of 9

casi 10 años hace

Resuelto


Find out total non zero element of matrix
Find out Non zero element of matrix A=magic(5) 17 24 1 8 15 23 5 7 14 16 4 6...

casi 10 años hace

Resuelto


Find out magnitude of vector
Find out magnitude of vector. Say x=[1 2 3], then answer must sqrt(1^2+2^2+3^2) Please don't use sum function. If you l...

casi 10 años hace

Resuelto


Square wave average calculation
Given its peak and duty cycle, calculate avg value of square wave

casi 10 años hace

Resuelto


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

casi 10 años hace

Resuelto


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

casi 10 años hace

Resuelto


Calculate the integral of the polynomial
for e.g. in = [3 2 1] out = [1 1 1 0]

casi 10 años hace

Resuelto


Multiplying Vectors 101
Make a vector from 1 to x then multiply the sum of that vector by 2.

casi 10 años hace

Resuelto


Calculate square and cube of number
Calculate square and cube of number x

casi 10 años hace

Resuelto


Append two matrix as shown below example
Append two matrix as shown below example A=[1 2; 3 4] and B=[5 6;7 8] Answer must be 1 2 5 6 3...

casi 10 años hace

Resuelto


Speed of car
Calculate the Speed of car given its Distance travelled and time taken in x and y respectively

casi 10 años hace

Resuelto


Find out value of sine given by degree.
Find out value of sine given by degree. If theta=30, it's value must be 0.5.

casi 10 años hace

Resuelto


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

casi 10 años hace

Resuelto


Evaluate Polynomial
Given a polynomial equation coefficients in a vector p, you have to return its value at x. Example: For inputs p and x ...

casi 10 años hace

Resuelto


Convert a vector into numbers
Suppose a vector x = [ 1 2 4 7] is given. You have to convert this vector into string number y = '1247'. Examples x = [ 1...

casi 10 años hace

Resuelto


Largest Prime Number
Given a matrix X, find the largest prime number in X.

casi 10 años hace

Resuelto


Pascal's Matrix
Given an integer n &ge; 0, generate the ( _n_+1) &times; ( _n_+1) lower triangular <http://en.wikipedia.org/wiki/Pascal_matrix P...

casi 10 años hace

Resuelto


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

casi 10 años hace

Cargar más