Resuelto


Percentage profit:5: Cumulative Interest
If a bank is giving r% yearly cumulative interest for deposit, how much profit we can get by keeping x amount of money for n mon...

alrededor de 9 años hace

Resuelto


Archimedes principle
According to Archimedes principle, the buoyancy force is equal to the weight of fluid displaced by the submerged portion of an o...

alrededor de 9 años hace

Resuelto


Renaming a field in a structure array
MATLAB has a <http://www.mathworks.com/help/techdoc/ref/setfield.html setfield> and a <http://www.mathworks.com/help/techdoc/ref...

alrededor de 9 años hace

Resuelto


Back to basics 1 - Saving
Covering some basic topics I haven't seen elsewhere on Cody. Given an input variable 'x', save it to disk in a file named 'co...

alrededor de 9 años hace

Resuelto


Scrabble Scores
Given a word, determine its score in <http://en.wikipedia.org/wiki/Scrabble Scrabble>. The input string will always be provi...

alrededor de 9 años hace

Resuelto


Determine if a Given Number is a Triangle Number
*Description:* Determine if the elements of an input array are triangle numbers and return the result as an array with the sa...

alrededor de 9 años hace

Resuelto


Back to basics 9 - Indexed References
Covering some basic topics I haven't seen elsewhere on Cody. Given an input matrix and row and column, output the index of th...

alrededor de 9 años hace

Resuelto


Omit columns averages from a matrix
Omit columns averages from a matrix. For example: A = 16 2 3 13 5 11 10 8 9 7 ...

alrededor de 9 años hace

Resuelto


Back to basics 15 - Benchmark
Covering some basic topics I haven't seen elsewhere on Cody. Return an array of the benchmark values for MATLAB.

alrededor de 9 años hace

Resuelto


Given an unsigned integer x, find the largest y by rearranging the bits in x
Given an unsigned integer x, find the largest y by rearranging the bits in x. Example: Input x = 10 Output y is 12 ...

alrededor de 9 años hace

Resuelto


Replace 0 indices in array with 1's
Take a incoming vector, and replace 0's with ones

alrededor de 9 años hace

Resuelto


Find the index of the lowest number in a matrix
Take a matrix, and find the [row cal] index of the lowest number

alrededor de 9 años hace

Resuelto


Vector indexing: lower than mean
Find all values in a vector lower than the mean of the vector

alrededor de 9 años hace

Resuelto


Matrix Ax=B problem
Take a incoming A and B vector, and solve for x

alrededor de 9 años hace

Resuelto


Resizing Matrices
Take an 4x3 matrix, and resize it to a 2x6 matrix

alrededor de 9 años hace

Resuelto


Matrix element wise multiplication
Take two incoming vectors, and multiply them element wise

alrededor de 9 años hace

Resuelto


Matrix multiplication
Multiply two incoming matrices via matrix multiplication

alrededor de 9 años hace

Resuelto


Sum two matrices
Take two incoming matrices, and sum them

alrededor de 9 años hace

Resuelto


Matrix Max Finder
Output the maximum value in a matrix

alrededor de 9 años hace

Resuelto


Find the square of the sum of the digits of a number
If a number (n) is provided as an input, find the square of the sum of the digits of the number. Example If n = 21, the an...

alrededor de 9 años hace

Resuelto


Make one vector from two others
You are given two vectors of equal length. Your task is to create a MATLAB script that will repeat all of the values in the fir...

alrededor de 9 años hace

Resuelto


Basics - not so easy division
Please make a function whcih divides x/y, but pay attention for some exceptions with NaN,0,Inf. Sometimes return "ERROR" instead...

alrededor de 9 años hace

Resuelto


cross in array
Make a cross from "1" in odd size array. Other value from array should be equal to "0"; As input you get length of side of arra...

alrededor de 9 años hace

Resuelto


What's size of TV?
Many people buy TV. Usually they ask about diagonal. But also important are width and height. Let's assume that all TV have rati...

alrededor de 9 años hace

Resuelto


angle in regular polygon
Make a function which returns measure of interior angle in x-side regular polygon. x is as input. Please pay attention, that 1 ...

alrededor de 9 años hace

Resuelto


Back to basics 26 - Keywords
Covering some basic topics I haven't seen elsewhere on Cody. Return a cell array of strings of all MATLAB keywords.

alrededor de 9 años hace

Resuelto


Back to basics 14 - Keywords
Covering some basic topics I haven't seen elsewhere on Cody. Return a cell array of all MATLAB keywords

alrededor de 9 años hace

Resuelto


How many days does the cat take to climb out of the hole?
A cat accidentally falls down a hole with sloping but rough sides. It can climb out of the hole of height h metres, but for ever...

alrededor de 9 años hace

Resuelto


2 b | ~ 2 b
Given a string input, output true if there are 2 b's in it, false if otherwise Examples: 'Macbeth' -> false 'Publius Cor...

alrededor de 9 años hace

Resuelto


Number of 1s in a binary string
Find the number of 1s in the given binary string. Example. If the input string is '1100101', the output is 4. If the input stri...

alrededor de 9 años hace

Cargar más