Matlab user since University. Interested in simulations, data handling and visulation.

Solved

Make a simplified barcode

Given an integer to encode, make a barcode using the following encoding scheme: * The bar code is made from the binary versio...

7 months ago

Solved

Project Euler: Problem 5, Smallest multiple

2520 is the smallest number that can be divided by each of the numbers from 1 to 10 without any remainder. What is the smalle...

7 months ago

Solved

Project Euler: Problem 4, Palindromic numbers

A palindromic number reads the same both ways. The largest palindrome made from the product of two 2-digit numbers is 9009 = 91 ...

7 months ago

Solved

Project Euler: Problem 3, Largest prime factor

The prime factors of 13195 are 5, 7, 13 and 29. What is the largest prime factor of the number being input, input might be ui...

7 months ago

Solved

Number of Even Elements in Fibonacci Sequence

Find how many even Fibonacci numbers are available in the first d numbers. Consider the following first 14 numbers 1 1 2...

7 months ago

Solved

Is X a Fibonacci Matrix?

In honor of Cleve's new blog and post: <http://blogs.mathworks.com/cleve/2012/06/03/fibonacci-matrices/> Is X a Fibonacci ...

7 months ago

Solved

Return fibonacci sequence do not use loop and condition

Calculate the nth Fibonacci number. Given n, return f where f = fib(n) and f(1) = 1, f(2) = 1, f(3) = 2, ... Examples: ...

7 months ago

Solved

Integer Sequence - II : New Fibonacci

Crack the following Integer Sequence. (Hints : It has been obtained from original Fibonacci Sequence and all the terms are also ...

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

7 months ago

Solved

Find state names that end with the letter A

Given a list of US states, remove all the states that end with the letter A. Example: Input s1 = 'Alabama Montana Nebras...

7 months ago

Solved

Return unique values without sorting

If the input vector A is [42 1 1], the output value B must be the unique values [42 1] The *values of B are in the s...

1 year ago

Solved

Return the Fibonacci Sequence

Write a code which returns the Fibonacci Sequence such that the largest value in the sequence is less than the input integer N. ...

2 years ago

Solved

Birthday cake

It's Cody's 5th birthday, and you've been tasked with putting the candles on the cake. Your goal is to maximize the distance bet...

2 years ago

Solved

Project Euler: Problem 2, Sum of even Fibonacci

Each new term in the Fibonacci sequence is generated by adding the previous two terms. By starting with 1 and 2, the first 10 te...

2 years ago

Solved

Extra safe primes

Did you know that the number 5 is the first safe prime? A safe prime is a prime number that can be expressed as 2p+1, where p is...

2 years ago

Solved

Length of the hypotenuse

Given short sides of lengths a and b, calculate the length c of the hypotenuse of the right-angled triangle. <<http://upload....

2 years ago

Answered

Saving an array of images as an 'Image Stack'

According to the matlab documentation you can store multiple images to a single file as follows: imwrite(im1,'myMultipageFi...

Saving an array of images as an 'Image Stack'

According to the matlab documentation you can store multiple images to a single file as follows: imwrite(im1,'myMultipageFi...

4 years ago | 2

Solved

Pizza value using expression with parentheses

Pizza prices are typically listed by diameter, rather than the more relevant feature of area. Compute a pizza's value (cost per ...

4 years ago

Question

Why is there an out of memory error despite memory() stating there is enough?

I have the following code: data(ind) = data(ind) + shift; data(~ind) = data(~ind) - shift; The first line crashes wit...

5 years ago | 2 answers | 0

Question

Why does adding a specific directory to Matlab path cause the save function to slowdown?

I'm having the following problem: in my application I'm storing a few hundred files. Lately, I notice that the save function has...

6 years ago | 1 answer | 1

Answered

Help in Installing MATLAB2014(32 bit) in Ubuntu14.04(64bit)

There does not seem to be a 32-bit Linux release of that Matlab version (see <http://www.mathworks.com/support/sysreq/release201...

Help in Installing MATLAB2014(32 bit) in Ubuntu14.04(64bit)

There does not seem to be a 32-bit Linux release of that Matlab version (see <http://www.mathworks.com/support/sysreq/release201...

6 years ago | 0

Solved

Check if number exists in vector

Return 1 if number _a_ exists in vector _b_ otherwise return 0. a = 3; b = [1,2,4]; Returns 0. a = 3; b = [1,...

7 years ago

Solved

Create a row array using double colon operator

Create a row array from 9 to 1, using the double colon operator.

7 years ago

Solved

Fahrenheit to Celsius using multiple statements

Given a Fahrenheit value F, convert to a Celsius value C. While the equation is C = 5/9 * (F - 32), as an exercise use two state...

7 years ago

Solved

Circle area using pi

Given a circle's radius, compute the circle's area. Use the built-in mathematical constant pi.

7 years ago

Solved

Simple equation: Annual salary

Given an hourly wage, compute an annual salary by multiplying the wage times 40 and times 50, because salary = wage x 40 hours/w...

7 years ago

Solved

Get the length of a given vector

Given a vector x, the output y should equal the length of x.

7 years ago

Solved

Sum of diagonal of a square matrix

If x = [1 2 4; 3 4 5; 5 6 7] then y should be the sum of the diagonals of the matrix y = 1 + 4 + 7 = 12

7 years ago

Solved

Make a Palindrome Number

Some numbers like 323 are palindromes. Other numbers like 124 are not. But look what happens when we add that number to a revers...

7 years ago

Answered

How to determine size of checkbox

To answer my own question: One can use the following code which uses only Matlab routines: dpi = get(0, 'ScreenPixelsPer...

How to determine size of checkbox

To answer my own question: One can use the following code which uses only Matlab routines: dpi = get(0, 'ScreenPixelsPer...

7 years ago | 0

| accepted