Resuelto


Find the sum of the largest two elements in a vector
With this one, you have to find the two largest elements in a vector and output the sum of those numbers.

más de 3 años hace

Resuelto


Find the index of the lowest number in a matrix
Take a matrix, and find the [row cal] index of the lowest number

más de 3 años hace

Resuelto


average for three points
how to calculate the average (for each three values of y) y=[2 3 5 3 4 2 3 4 5 3 2 7 8 6 5 5 4 3 3 3 2 ] you ...

más de 3 años hace

Resuelto


Matrix Max Finder
Output the maximum value in a matrix

más de 3 años hace

Resuelto


Matrix Ax=B problem
Take a incoming A and B vector, and solve for x

más de 3 años hace

Resuelto


How to locate the position of an element in a vector without using the find function
(copy of prob 105 with test for find function) Write a function posX = *locatePos* (x,y) which returns the location o...

más de 3 años hace

Resuelto


Matrix Generation from Vector Multiplication
Output the matrix generated from multiplying two vectors together

más de 3 años hace

Resuelto


Sum two matrices
Take two incoming matrices, and sum them

más de 3 años hace

Resuelto


Matrix element wise multiplication
Take two incoming vectors, and multiply them element wise

más de 3 años hace

Resuelto


Replace 0 indices in array with 1's
Take a incoming vector, and replace 0's with ones

más de 3 años hace

Resuelto


Find remainder when x is divided by 3
Find remainder when x is divided by 3

más de 3 años hace

Resuelto


Divide pi
Divide pi by x!

más de 3 años hace

Resuelto


Stacking vectors into a matrix
Given a 4x1 vector a, and a 2x2 matrix b, create a matrix M in which the first 2 rows are each identical to a and the last two r...

más de 3 años hace

Resuelto


area

más de 3 años hace

Resuelto


find the value

más de 3 años hace

Resuelto


Perimeter of a Triangle

más de 3 años hace

Resuelto


Simple Vector Addition
Take two incoming vectors and output the sum of the two vectors

más de 3 años hace

Resuelto


Element-wise vector product (★)
Given two vectors x and y, compute their element-wise product z. Thus, if x = [1 3 5] and y = [0.5 -1 2], then z = [1*0.5...

más de 3 años hace

Resuelto


Surface area of a cone

más de 3 años hace

Resuelto


Doubling elements in a vector (★★)
(copy of prob. 1024) Given the vector A, return B in which all numbers in A are doubling. So for: A = [ 1 5 8 ] t...

más de 3 años hace

Resuelto


PEMDAS test (★★)
Create the function that will return the following expression for x and y. <<https://i.ibb.co/RHWyzrv/Code-Cogs-Eqn-1.gif>> ...

más de 3 años hace

Resuelto


Swap the first and last columns (★★)
(copy of Prob 19) Flip the outermost columns of matrix A, so that the first column becomes the last and the last column becom...

más de 3 años hace

Resuelto


index of n^2 in magic(n)
input=5 magic matrix 17 24 1 8 15 23 5 7 14 16 4 6 13 20 22 10 ...

más de 3 años hace

Resuelto


Variance computation (★)
Given a vector x with several values, compute the variance, whose formula is given by: <<https://i.imgur.com/Wg95KBE.gif>> ...

más de 3 años hace

Resuelto


Sum the rows
Sum the rows of the given matrix. Example x = [ 1 2 3 4 ] y = [ 3 7 ]

más de 3 años hace

Resuelto


Determine if a row vector has NaN
Determine if a row vector x has NaN

más de 3 años hace

Resuelto


Logarithmically spaced vector creation using logspace
Create a vector y containing n logarithmically spaced values between a and b, with a < b. Use the logspace operator.

más de 3 años hace

Resuelto


Replace 0 to NaN!
In given matrix A=[1 nan nan; 2 2 nan; nan nan 1]; replace NaN to 0. Use matrix A as a input.

más de 3 años hace

Resuelto


Column Removal (★★★)
(copy of prob 7) Remove the nth column from input matrix A and return the resulting matrix in output B. So if A = [1 2...

más de 3 años hace

Resuelto


Create a vector of the first n natural numbers (★)
If n = 7, your program should return a vector y, where y = [1 2 3 4 5 6 7].

más de 3 años hace

Cargar más