Resuelto


Write a function man that takes a row vector v and returns a matrix H as follows..
Write a function called man that takes a row vector v as an input and returns a matrix H whose first column consist of the eleme...

alrededor de 6 años hace

Resuelto


Get all prime factors
List the prime factors for the input number, in decreasing order. List each factor. If the prime factor occurs twice, list it as...

alrededor de 6 años hace

Resuelto


Calculate Inner Product
Given two input matrices, |x| and |y|, check if their inner dimensions match. * If they match, create an output variable |z|...

alrededor de 6 años hace

Resuelto


Solve a System of Linear Equations
*Example*: If a system of linear equations in _x&#8321_ and _x&#8322_ is: 2 _x₁_ + _x₂_ = 2 _x₁...

alrededor de 6 años hace

Resuelto


Convert from Fahrenheit to Celsius
Given an input vector |F| containing temperature values in Fahrenheit, return an output vector |C| that contains the values in C...

alrededor de 6 años hace

Resuelto


another bullseye
create matrix like below -- for x=2, y=[1 1 1 1 1; 1 2 2 2 1; 1 2 3 2...

alrededor de 6 años hace

Respondida
Array indices must be positive integers or logical values. Error in (line 8) mr(t)=mi-((mi-mf)*(t./tb));
Hi, Yo have 2 errors. First you have the line when you define the vector time: t=linspace(6.5,164,1) % You need to put the n...

alrededor de 6 años hace | 1

Resuelto


Add two numbers
Given a and b, return the sum a+b in c.

alrededor de 6 años hace

Resuelto


Add 3 numbers
In this problem, you have to add three numbers a, b and c. Give output d = add(a,b,c)

casi 7 años hace

Resuelto


Angle between two vectors
Given 2 pairs of _cartesian co-ordinates_, determine the angle between the 2 vectors formed by the _points_ and the _origin_. An...

casi 7 años hace

Resuelto


UICBioE240 problem 1.7
Find the other two angles of a right triangle given the two of the sides. So if A = [1 1] B = [45 45]

alrededor de 7 años hace

Resuelto


Kepler's Equation
Solve <http://en.wikipedia.org/wiki/Kepler's_equation Kepler's Equation>. Note that the solution is rounded down to 5 decima...

alrededor de 7 años hace

Resuelto


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

alrededor de 7 años hace

Resuelto


Set x value to each odd index of vector y.
Set x value to each odd index of vector y.

alrededor de 7 años hace

Resuelto


Scalar Matrix Manipulation
Assume, input x is a scalar matrix such as, x = 2 0 0 0 2 0 0 0 2 th...

alrededor de 7 años hace

Resuelto


Vector LCM
* Find Least Common Multiple of a given vector. * Need general solution as the test suite will be expanded. * Function Templa...

alrededor de 7 años hace

Resuelto


Are you in XY plane?
Take a point P as an input position Vector (x,y,z). If you are in XY plane, return 1 as an output otherwise return 0. Example...

alrededor de 7 años hace

Resuelto


Gauss Eliminate 2-by-2 example
Use forward elimination to make the coefficient matrix, A, an upper triangular matrix, and then solve using back substitution, f...

alrededor de 7 años hace

Resuelto


Repeat Vector Values an Arbitrary Number of Times
Given two vectors of the same size, repeat the values of the first vector the number of times given in a second vector. For exam...

alrededor de 7 años hace

Resuelto


Number Power
Raise a number to itself.

alrededor de 7 años hace

Resuelto


Cube root of max value in a vector
Find the cube root of the maximum value in a vector

alrededor de 7 años hace

Resuelto


Testing Problem Creation
This is where MATLAB based question will be

alrededor de 7 años hace

Resuelto


Determine the number of correct and incorrect answers
In a Multiple Choice Question Test, you are to sort out answer from 4 samples, one of them is correct answer. There are 50 quest...

alrededor de 7 años hace

Resuelto


Basic matrix operations using standard MATLAB commands
Create the matrix: 1.0e+15 * 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000...

alrededor de 7 años hace

Resuelto


Nth root of a number
Given an input and a number N, find the Nth root of the number(s)

alrededor de 7 años hace

Resuelto


Archimedes principle
According to Archimedes principle, the buoyancy force is equal to the weight of fluid displaced by the submerged portion of an o...

alrededor de 7 años hace

Resuelto


Non trivial identities - reshape
Return x by reshaping it.

alrededor de 7 años hace

Resuelto


Find the outlier in a set of samples
Given an array x of numbers. Assumed that this array has one outlier. Find the position p and the value v of the outlier in this...

alrededor de 7 años hace

Resuelto


Non trivial identities - flipping
Return x by flipping it.

alrededor de 7 años hace

Resuelto


basic matrix operations: rotate and find sum of diagonal elements of the resultant matrix
For given input matrix a, rotate it by 90 degrees and find the sum of the diagonals. Example: Input: a = 1 ...

alrededor de 7 años hace

Cargar más