Solved


Replicate elements in vectors (★★★)
(copy of Prob 867) Replicate each element of a row vector (with NaN) a constant number of times. Examples n=2, A=[1 2...

2 months ago

Solved


Remove the row average (★★★)
(copy of Prob. 963) Given a 2-d matrix, remove the row average from each row. Your solution MUST be vectorized. The solut...

2 months ago

Solved


Average of corner elements of a matrix (★★)
(copy of prob 2235) Calculate the average of corner elements of a matrix. e.g. x=[1 2 3; 4 5 6; 7 8 9;] avg = (1+3+7+9)...

2 months ago

Solved


Generate a vector which contains a pyramid pattern (★★★★)
Generate a vector that contains terms that follows a pyramid pattern up to the nth row: 1 2 2 3 3 3 4 4 4 4 ...

2 months ago

Solved


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

2 months ago

Solved


Ordered pairs of integers (I, J).
Write a MATLAB function that calculates the number of ordered pairs of integers (I, J) that can be formed satisfying the conditi...

2 months ago

Solved


Number of o rderd pairs of integers (I,J) that can be formed.
Write a MATLAB function that calculates the number of ordered pairs of integers (I, J) that can be formed satisfying the condit...

2 months ago

Solved


Shape Shifter - Part 1

2 months ago

Solved


Award medals to winners

2 months ago

Solved


Determine the winner of a goofy golf tournament
My brother and father were playing golf one day, and they caught up to a group that was part of a tournament. The group members ...

2 months ago

Solved


Find an inscribed square on a closed curve
Here's an unproven conjecture from geometry: Every simple closed curve in a plane contains all four vertices of some square. ...

2 months ago

Solved


Beat the RNG - EASY

2 months ago

Solved


divide by 5

2 months ago

Solved


Factorize uniquely! (★★)

2 months ago

Solved


Solve a ballot counting problem

2 months ago

Solved


Convert Cylindrical Cooridinates into Spherical Coordinate
For Cylindrical coordinate point, rho, fie (degrees) and z. Convert these points in Spherical Cooridinate System and save result...

2 months ago

Solved


Surface area of a cone

2 months ago

Solved


Perimeter of a Triangle

2 months ago

Solved


find the value

2 months ago

Solved


Surface area of a sphere
Given the radius of a sphere, find it's Surface area

2 months ago

Solved


Solve the Challenger puzzle

2 months ago

Solved


Sort in descending order.

2 months ago

Solved


LCM

2 months ago

Solved


GCD

2 months ago

Solved


Last Digit of fibonacci number

2 months ago

Load more