Solved

How many ways?

Create a program to determine in how many ways can a regular n-gon be divided into n-2 triangles?

2 months ago

Solved

Positive Definiteness of a Matrix

Determine if input matrix is positive definite or not.

2 months ago

Solved

MinMax

* x=[2 4 3 1 6 4 6] * output , y=[1 6 2 4 3] here,y(1) is the minimum of x, y(2) is the maximum of x, y(3) is the 2nd mini...

2 months ago

Solved

Ugly numbers - 03

For this case, a number is defined ugly if it has prime factors consisting of only elements of x. Find the nth ugly number. ...

2 months ago

Solved

The 5th Root

Write a function to find the 5th root of a number. It sounds easy, but the typical functions are not allowed (see the test su...

2 months ago

Solved

Make a checkerboard matrix

Given an integer n, make an n-by-n matrix made up of alternating ones and zeros as shown below. The a(1,1) should be 1. Examp...

2 months ago

Solved

The Goldbach Conjecture

The <http://en.wikipedia.org/wiki/Goldbach's_conjecture Goldbach conjecture> asserts that every even integer greater than 2 can ...

2 months ago

Solved

Find a subset that divides the vector into equal halves

Given a vector x, return the indices to elements that will sum to exactly half of the sum of all elements. Example: Inpu...

2 months ago

Solved

How long is the longest prime diagonal?

Stanislaw Ulam once observed that if the counting numbers are <http://en.wikipedia.org/wiki/Ulam_spiral arranged in a spiral>, t...

2 months ago

Solved

Count digits

Count total number of digits from 1 to n. * n=13 * output=17 since from [1-9] total 9 digits.[10-13] total 4*2=8 digits.

2 months ago

Solved

Find the biggest empty box

You are given a matrix that contains only ones and zeros. Think of the ones as columns in an otherwise empty floor plan. You wan...

2 months ago

Solved

Times 2 - START HERE

Try out this test problem first. Given the variable x as your input, multiply it by two and put the result in y. Examples:...

2 months ago

Answered

How can I prevent questdlg bonking?

There is a good answer to your question here: Link

How can I prevent questdlg bonking?

There is a good answer to your question here: Link

3 months ago | 0

Question

How do I link my mex file to mkl?

I am trying to create a mex file that uses MKL. I know that Matlab itself uses the MKL library for some of its computational ro...

4 years ago | 0 answers | 1

Question

Can anybody replicate the curious way I found to speed up my matlab code?

I have found that sometimes my matlab code runs faster when the machine I am running on is NOT idle. I suspect that this has so...

5 years ago | 0 answers | 1