Risolto


Duplicate each element of a vector.
for an n-dimensional vector x, the function should return another vector 2n-dimension which each element is repeated twice. Ex...

circa 5 anni fa

Risolto


Matlab Basics II - Max & Index of Max
Write a function that takes a vector x, then returns both the max value in x and its location in the vector for example x ...

circa 5 anni fa

Risolto


Fill a zeros matrix
The aim is to fill an array of all zeros given a numerical value and the index of row and columns for this value. 3 Inputs: ...

circa 5 anni fa

Risolto


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

circa 5 anni fa

Risolto


Create a vector whose elements depend on the previous element
The idea is to create a vector A whose elements depend on the previous element : *A(i+1) = 2*A(i)+1* *2 Inputs*: - A : The...

circa 5 anni fa

Risolto


pressure to dB?
given x ratio of pressure, find corresponding y dB

circa 5 anni fa

Risolto


Matlab Basics II - Count rows in a matrix
Write a function that returns that number of rows in a vector or matrix x example: x = [1; 2; 3] output = 3

circa 5 anni fa

Risolto


Calculate a Damped Sinusoid
The equation of a damped sinusoid can be written as |y = A.ⅇ^(-λt)*cos(2πft)| where |A|, |λ|, and |f| ...

circa 5 anni fa

Risolto


Return fibonacci sequence do not use loop and condition
Calculate the nth Fibonacci number. Given n, return f where f = fib(n) and f(1) = 1, f(2) = 1, f(3) = 2, ... Examples: ...

circa 5 anni fa

Risolto


Find the next Fibonacci number
In the sequence of Fibonacci numbers, every number is the sum of the two preceding ones: 1, 1, 2, 3, 5, 8, 13, 21, 34, 55...

circa 5 anni fa

Risolto


Integer Sequence - II : New Fibonacci
Crack the following Integer Sequence. (Hints : It has been obtained from original Fibonacci Sequence and all the terms are also ...

circa 5 anni fa

Risolto


Return the Fibonacci Sequence
Write a code which returns the Fibonacci Sequence such that the largest value in the sequence is less than the input integer N. ...

circa 5 anni fa

Risolto


Is A the inverse of B?
Given a matrix A and a matrix B, is A the inverse of B? >>A=[2,4;3,5]; >>B=[-2.5,2;1.5,-1]; >>isInverse...

circa 5 anni fa

Risolto


Rotate Matrix @180 degree
Rotate Matrix @180 degree Example A=[8 1 6; 3 5 7; 4 9 2], then answer would be [2 9 4;...

circa 5 anni fa

Risolto


Square root
Given x (a matrix), give back another matrix, where all the elements are the square roots of x's elements.

circa 5 anni fa

Risolto


to the 2 all elements
to the 2 all elements

circa 5 anni fa

Risolto


Calculate the average value of the elements in the array
Calculate the average value of the elements in the array

circa 5 anni fa

Risolto


the average value of the elements
Calculate the average value of the elements in the array

circa 5 anni fa

Risolto


Duplicate all elements in the array
Duplicate all elements in the array

circa 5 anni fa

Risolto


calculate the length of matrix
input 1 array, calculate the length

circa 5 anni fa

Risolto


Find the max element of the array
Find the max element of the array

circa 5 anni fa

Risolto


Converts numbers into characters
Converts numbers into characters

circa 5 anni fa

Risolto


easy problem
Find the last element of the array

circa 5 anni fa

Risolto


Basics: 'Find the eigenvalues of given matrix
Find the eigenvalues y for a given matrix x.

circa 5 anni fa

Risolto


Matrix Max Finder
Output the maximum value in a matrix

circa 5 anni fa

Risolto


Sum of diagonals elements of a matrix
Given a matrix, return the sum of all the elements across the diagonals. E.g. A = [1 2 3; 4 5 6; 7 8 9;...

circa 5 anni fa

Risolto


Sum two matrices
Take two incoming matrices, and sum them

circa 5 anni fa

Risolto


Find out sum of prime number till given number
Find out sum of prime number till given number Example, if number is 10, then answer must be 17.

circa 5 anni fa

Risolto


Area of a Square
Given the length x of the side of a regular square, find the area of the square, A.

circa 5 anni fa

Risolto


0<=x<=pi?
Check whether the given angle is between zero and pi. Return logical true or false.

circa 5 anni fa

Carica altro