Community Profile

photo

Mehdi


University of Michigan

Last seen: 3년 초과 전 2016년부터 활동

Followers: 0   Following: 0

연락

Research Assistant,

통계

All
  • Quiz Master
  • First Answer
  • Scavenger Finisher
  • CUP Challenge Master
  • Speed Demon
  • Creator
  • Commenter
  • Solver

배지 보기

Feeds

보기 기준

질문


Matlab R2017a installation error on Ubuntu
Hello Guys; Do you have any idea or experience about the error that I am experiencing now? "The following error was detected w...

6년 초과 전 | 답변 수: 0 | 0

0

답변

문제를 풀었습니다


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

7년 초과 전

문제를 풀었습니다


Counting Money
Add the numbers given in the cell array of strings. The strings represent amounts of money using this notation: $99,999.99. E...

7년 초과 전

문제를 풀었습니다


Pascal's Triangle
Given an integer n >= 0, generate the length n+1 row vector representing the n-th row of <http://en.wikipedia.org/wiki/Pascals_t...

7년 초과 전

문제를 풀었습니다


Remove all the consonants
Remove all the consonants in the given phrase. Example: Input s1 = 'Jack and Jill went up the hill'; Output s2 is 'a ...

7년 초과 전

문제를 풀었습니다


Target sorting
Sort the given list of numbers |a| according to how far away each element is from the target value |t|. The result should return...

7년 초과 전

문제를 풀었습니다


Nearest Numbers
Given a row vector of numbers, find the indices of the two nearest numbers. Examples: [index1 index2] = nearestNumbers([2 5 3...

7년 초과 전

문제를 풀었습니다


Indexed Probability Table
This question was inspired by a Stack Overflow question forwarded to me by Matt Simoneau. Given a vector x, make an indexed pro...

7년 초과 전

문제를 풀었습니다


Find the two most distant points
Given a collection of points, return the indices of the rows that contain the two points most distant from one another. The inpu...

7년 초과 전

문제를 풀었습니다


Which doors are open?
There are n doors in an alley. Initially they are all shut. You have been tasked to go down the alley n times, and open/shut the...

7년 초과 전

문제를 풀었습니다


give nth decimal place of pi
max 15th place after the decimal point is ok for now

7년 초과 전

문제를 풀었습니다


Who is the smartest MATLAB programmer?
Who is the smartest MATLAB programmer? Examples: Input x = 'Is it Obama?' Output = 'Me!' Input x = 'Who ?' Ou...

7년 초과 전

문제를 풀었습니다


Integer indexing array: Shift left
Write a *single* statement that shifts row array attendanceValues one position to the left. The rightmost element in attendanceV...

7년 초과 전

문제를 풀었습니다


Back to basics 10 - Max Float
Covering some basic topics I haven't seen elsewhere on Cody. Return the largest positive floating-point number MATLAB can han...

7년 초과 전

문제를 풀었습니다


Write an expression
Assigns finalResult with firstSample plus secondSample, squared, then divided by 3. Ex: If firstSample is 18 and secondSample is...

7년 초과 전

문제를 풀었습니다


Make a 1 hot vector
Make a vector of length _N_ that consists of all zeros except at index _k_, where it has the value 1. Example: Input ...

7년 초과 전

문제를 풀었습니다


Back to basics 15 - classes
Covering some basic topics I haven't seen elsewhere on Cody. Return the class of the input variable.

7년 초과 전

문제를 풀었습니다


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

7년 초과 전

문제를 풀었습니다


So many choices
For inputs _n_ and _k_ (in that order), output the number of ways that k objects can be chosen from amongst n distinct objects. ...

7년 초과 전

문제를 풀었습니다


Find the largest value in the 3D matrix
Given a 3D matrix, A, find the largest value. E.g. >> A = 1:9; >> A=reshape(A,[3 1 3]); >> islargest(A) ans = 9

7년 초과 전

문제를 풀었습니다


Generate a vector like 1,2,2,3,3,3,4,4,4,4
Generate a vector like 1,2,2,3,3,3,4,4,4,4 So if n = 3, then return [1 2 2 3 3 3] And if n = 5, then return [1 2 2...

7년 초과 전

문제를 풀었습니다


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

7년 초과 전

문제를 풀었습니다


Relational operators: Guessing game
Row array userGuess contains a sequence of user guesses. Create a logical indexing array correctGuess with true in each location...

7년 초과 전

문제를 풀었습니다


Rotate a Matrix
Input a Matrix x, Output y is the matrix rotating x 90 degrees clockwise

7년 초과 전

문제를 풀었습니다


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

7년 초과 전

문제를 풀었습니다


Who knows the last digit of pi?
There is only one man who knows the last digit of pi, who is that man? Give the name of that man, who, by popular believe, can ...

7년 초과 전

문제를 풀었습니다


Population growth
Assign finalPopulation with the population size given an initial population, population growth rate, and number of years. The fi...

7년 초과 전

문제를 풀었습니다


All your base are belong to us
Find the base _b_ logarithm of the input decimal number _x_. Express the output as a decimal number. The first argument is the n...

7년 초과 전

문제를 풀었습니다


Number of Horns on a unicorn!
Calculate the number of horns on a *unicorn*! And I'm talking about a unicorn with not more than one horn on it!

7년 초과 전

문제를 풀었습니다


Getting the indices from a vector
This is a basic MATLAB operation. It is for instructional purposes. --- You may already know how to <http://www.mathworks....

7년 초과 전

더 보기