Risolto


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

oltre 10 anni fa

Risolto


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

oltre 10 anni fa

Risolto


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

oltre 10 anni fa

Risolto


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

oltre 10 anni fa

Risolto


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

oltre 10 anni fa

Risolto


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

oltre 10 anni fa

Risolto


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

oltre 10 anni fa

Risolto


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

oltre 10 anni fa

Risolto


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

oltre 10 anni fa

Risolto


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

oltre 10 anni fa

Risolto


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.

oltre 10 anni fa

Risolto


Make a Plot with Functions
Make a plot and test

oltre 10 anni fa

Risolto


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

oltre 10 anni fa

Risolto


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

oltre 10 anni fa

Risolto


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

oltre 10 anni fa

Risolto


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

oltre 10 anni fa

Risolto


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

oltre 10 anni fa

Risolto


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

oltre 10 anni fa

Risolto


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

oltre 10 anni fa

Risolto


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

oltre 10 anni fa

Risolto


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

oltre 10 anni fa

Risolto


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

oltre 10 anni fa

Risolto


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

oltre 10 anni fa

Risolto


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.

oltre 10 anni fa

Risolto


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

oltre 10 anni fa

Risolto


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

oltre 10 anni fa

Risolto


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

oltre 10 anni fa

Risolto


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

oltre 10 anni fa

Risolto


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

oltre 10 anni fa

Risolto


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

oltre 10 anni fa

Carica altro