解決済み


Insect population
An insect population doubles every generation. * Write a while loop that iterates numGeneration times. * Write a statment ...

8年以上 前

解決済み


Number of pennies
Complete the function ConvertToPennies() so that the function returns the total number of pennies given a number of dollars and ...

8年以上 前

解決済み


Travel speed
Write an anonymous function to compute the Euclidean distance given two points (x1, y1) and (x2, y2). Use the following equation...

8年以上 前

解決済み


Finding values in arrays
Assign numMatches with the number of elements in userValues that equal matchValue. Ex: If matchValue = 2 and userVals = [2, ...

8年以上 前

解決済み


Find Missing Number
A little problem (inspired by CodeChef) for the coffee break. A friend give you an array of size n-1 integers and these int...

8年以上 前

解決済み


Make visible max values
Make visible maximum values of rows input = [1 2 3 4 5; 6 9 8 2 1; 2 1 4 5 8; 1 9 7 9 2]; ...

8年以上 前

送信済み


approxeq(x, y, tolerance)
Test for 'nearly equal'

8年以上 前 | ダウンロード 1 件 |

送信済み


rollstat( y, window, slide,funin)
Apply function to rolling window. Non-uniform sample spacings allowed

8年以上 前 | ダウンロード 1 件 |

送信済み


newname(oldname)
One-liner function to rename an object

8年以上 前 | ダウンロード 2 件 |