Solved

How many ways?

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

mer än ett år ago

Solved

Positive Definiteness of a Matrix

Determine if input matrix is positive definite or not.

mer än ett år 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...

mer än ett år 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. ...

mer än ett år 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...

mer än ett år 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...

mer än ett år 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 ...

mer än ett år 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...

mer än ett år 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...

mer än ett år 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.

mer än ett år 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...

mer än ett år 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:...

mer än ett år 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

mer än ett år 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...

mer än 5 år ago | 1 answer | 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...

nästan 6 år ago | 0 answers | 1