Solved


Crunch that matrix!
You are given an M x N matrix. Write a script that will compress this matrix into an M x (N/3) matrix, where each of the terms ...

5 years ago

Solved


Divide elements by sum of elements
In this problem, I ask you to write a function which will divide the elements of each column by the sum of the elements of the s...

5 years ago

Answered
If i have a given Matrix (k x k), how can i expand it to a (n x n) matrix?
It is not clear how the B and C matrices are related to A. However, if you just want to do QR decomposition, you might want to t...

5 years ago | 0

Solved


Write a code that will follow the equation y = x * (x + x) * x.
If x = 5, y = 5 * (5+5) * 5 = 250

5 years ago

Solved


Determinant of a 3x3 Matrix
Return the determinant of a 3x3 matrix. The built-in Matlab function det is not allowed.

5 years ago

Solved


Create sine function out of cosine
Please don't use sin(x) directly

5 years ago

Solved


Integrate Me
Given polynomial, output the integral (with k = 1 for simplicity purposes) Example: input = [2 1] % 2x+1 output = [1 1 1]...

5 years ago

Solved


Spot the rectangle
This problem is related to the <http://bit-player.org/2009/the-17x17-challenge 17x17 challenge>. Given a matrix filled with ones...

5 years ago

Solved


Fill the Matrix - 2
Input is a column vector and n. n columns will be added to the left of the input column. The first value of the row is the me...

5 years ago

Solved


Replace secondary diagonal elements of a square array
Replace all the secondary diagonal elements of the square array A with the number n Example: A = [1 2 3 4 5 6 ...

5 years ago

Solved


Fill the matrix - 1
Input is a column vector and n. n columns will be added to the left of the input column. The first value of the row is the s...

5 years ago

Answered
Plotting Two Sets of Data on 2 X Axes and 1 Y Axis
To avoid overlap of the two x-axis, you might want to use 'top' for 'XAxisLocation' for ax2.

5 years ago | 0

Answered
How can I change the colour of specific bars in a bar graph
You can create a handle on the graph and replace the properties accordingly. Here is an example. >> x=[1:10]; >> b=bar(x); >>...

5 years ago | 0

| accepted

Answered
function with two inputs.
The code you have now already has the information you needed. However, you have not printed out the results yet. You need to mo...

5 years ago | 0

Problem


Find the Pattern 10

5 years ago | 2 | 244 solvers

Problem


Find the Pattern 9

5 years ago | 1 | 201 solvers

Problem


Find the Pattern 8

5 years ago | 2 | 195 solvers

Problem


Find the Pattern 7

5 years ago | 1 | 200 solvers

Problem


Find the Pattern 6

5 years ago | 0 | 190 solvers

Problem


Find the Pattern 5

5 years ago | 0 | 136 solvers

Problem


Find the Pattern 4

5 years ago | 1 | 248 solvers

Problem


Find the Pattern 3

5 years ago | 3 | 254 solvers

Problem


Find the Pattern 2

5 years ago | 3 | 240 solvers

Problem


Find the Pattern 1

5 years ago | 4 | 293 solvers

Problem


Lateral Area of a Right Rectangular Pyramid

5 years ago | 1 | 36 solvers

Problem


Polygon in a unit circle

5 years ago | 1 | 29 solvers

Solved


Remove element(s) from cell array
You can easily remove an element (or a column in any dimension) from a normal matrix, but assigning that value (or range) empty....

5 years ago

Solved


Cell joiner
You are given a cell array of strings and a string delimiter. You need to produce one string which is composed of each string fr...

5 years ago

Solved


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

5 years ago

Solved


Verify Law of Large Numbers
If a large number of fair N-sided dice are rolled, the average of the simulated rolls is likely to be close to the mean of 1,2,....

5 years ago

Load more