Solved

Volume of a sphere given its surface area

You just measured its surface area, that is the input.

fast 7 Jahre ago

Solved

Testing filter from FDAtool

Guys, I have created a filter from FDAtool and want to test it on Simulink but I didn't see any response on the Scope I us...

fast 7 Jahre ago

Solved

matlab indian players

answer is one of the indian matlab player(just for fun dont take serious)

fast 7 Jahre ago

Solved

Simple date to serial no. conversion

Convert a date string to a serial date number. For example if you take x='19-May-2001' then the result is 730990 x...

fast 7 Jahre ago

Solved

Finite Continued Fraction

Given an input real number x and a natural number n, output the row vector with the n first terms of the continued fraction. F...

fast 7 Jahre ago

Solved

Is the paranthesis sequence balanced ?

Quantum mechanics and computer science are interested in <http://en.wikipedia.org/wiki/Bra%E2%80%93ket_notation bra-kets>. Today...

fast 7 Jahre ago

Solved

Hermite Polynomials

Return the _n_-th <http://en.wikipedia.org/wiki/Hermite_polynomials Hermite polynomial> of the physicists' type. Assume that ...

fast 7 Jahre ago

Solved

Distance walked 3D

suppose you go from x-y-z coordinates [3,4,2] to [0,0,2] to [0,1,2] to [1,1,2], to [1,1,20] then you walked 25 units of distance...

fast 7 Jahre ago

Solved

Stuff the Board

You have a stack of tiles to put onto an array-like playing board. Each tile has a number (always an integer), and the board var...

fast 7 Jahre ago

Solved

It dseon't mettar waht oedrr the lrettes in a wrod are.

An internet meme from 2003 (read more <http://www.snopes.com/language/apocryph/cambridge.asp here>) asserted that readers are re...

fast 7 Jahre ago

Solved

Max index of 3D array

Given a three dimensional array M(m,n,p) write a code that finds the three coordinates x,y,z of the Maximum value. Example ...

fast 7 Jahre ago

Solved

Animated GIF Creator

This Challenge is to execute the Function Template which has a fully functional Animated GIF creator of a shape related to a Zer...

fast 7 Jahre ago

Solved

Bit Reversal

Given an unsigned integer _x_, convert it to binary with _n_ bits, reverse the order of the bits, and convert it back to an inte...

fast 7 Jahre ago

Solved

How long do each of the stages of the rocket take to burn?

A space rocket has 3 stages: - stage 1, s1; - stage 2, s2; - stage 3, s3. If s1 burns 3 x as long as s2 which burns ...

fast 7 Jahre ago

Solved

Find the definite integral of various linear functions

A definite integral had a minimum and maximum limit. When you solve this type of problem you must use both quad and the trapz fu...

fast 7 Jahre ago

Solved

Similar Triangles - find the height of the tree

Given the height, h1, of a power pole, shorter than a tree, a given distance, x2 away, please find h2, height of the tree. Pleas...

fast 7 Jahre ago

Solved

Find third Side of a right triangle given hypotenuse and a side. No * - or other functions allowed

Find the remaining side of a triangle given the hypotenuse and a side. However, the normal functions and symbols are not allowe...

fast 7 Jahre ago

Solved

Calculate the area of a triangle between three points

Calculate the area of a triangle between three points: P1(X1,Y1) P2(X2,Y2) P3(X3,Y3) these three points are the vert...

fast 7 Jahre ago

Solved

Fermat's Last Theorem - Fermat's conjecture

Fermat's Last Theorem (sometimes called Fermat's conjecture, especially in older texts) states that no three positive integers a...

fast 7 Jahre ago

Solved

Find smallest integer type to accommodate your number

MATLAB supports 1-, 2-, 4-, and 8-byte storage for integer data. Find the smallest integer type to accomodate a scalar integer. ...

fast 7 Jahre ago

Solved

Find the nearest integer

Given a vector of integers and a real number find the closest integer. EX: >> a = [2 4 5 6 8 10]; >> b = 4.6; >> nea...

fast 7 Jahre ago

Solved

Penny flipping - calculate winning probability (easy)

Two players are playing a fair penny flipping game. For each flip, the winner adds one penny from the loser's collection to his/...

fast 7 Jahre ago

Solved

Calculate the probability that at least two people in a group share the same birthday.

Calculate the probability that at least two people in a group share the same birthday. Given an integer input n, return to 0.015...

fast 7 Jahre ago

Solved

Center of mass

Given a matrix M(m,n), where m is the number of vertices of the geometrical element and n is 2 or 3 (2D-plane figure or 3D-solid...

fast 7 Jahre ago

Solved

Convert elements in numeric array into different class

Write a function that converts elements in a numeric array into a different class. Example: a = [1:5]; % class: double b...

fast 7 Jahre ago

Solved

Create matrix of replicated elements

Given an input element x, and the dimensions, (m, n) return a matrix of size m x n filled with element x. Example: Input: ...

fast 7 Jahre ago

Solved

It's race time again! Write a function that is at least twice as fast as the test suite call of repmat().

Given an input element x, and the dimensions, (m, n) return a matrix of size m x n filled with element x. This must be done in l...

fast 7 Jahre ago

Solved

7 segment LED display

Given a whole number, output how many segments would be lit up to display it on a 7 segment LED display (http://en.wikipedia.org...

fast 7 Jahre ago

Solved

Back to basics 2 - Function Path

Covering some basic topics I haven't seen elsewhere on Cody. Given a string that is the name of a MATLAB function, return a s...

fast 7 Jahre ago

Solved

Find state names that start with the letter N

Given a list of US states, remove all the states that start with the letter N. If s1 = 'Alabama Montana Nebraska Vermont Ne...

fast 7 Jahre ago