Community Profile

photo

Stepen Sahrun


20 total contributions since 2011

Professional Interests: Aircraft Design, Aerodynamics, Game Programming

Contact

Stepen Sahrun's Badges

Contributions in
View by

Submitted


VirusShooter
VirusShooter allows user to play a simple webcam-based shooting game.

4 years ago | 3 downloads |

Thumbnail

Solved


Summing digits
Given n, find the sum of the digits that make up 2^n. Example: Input n = 7 Output b = 11 since 2^7 = 128, and 1 + ...

4 years ago

Solved


Select every other element of a vector
Write a function which returns every other element of the vector passed in. That is, it returns the all odd-numbered elements, s...

4 years ago

Submitted


Congklak
Congklak_custom allows user to play Congklak game (a traditional) in MATLAB GUI against a simple AI.

4 years ago | 1 downloads |

Thumbnail

Solved


Too mean-spirited
Find the mean of each consecutive pair of numbers in the input row vector. For example, x=[1 2 3] ----> y = [1.5 2.5] x=[1...

5 years ago

Solved


Pizza!
Given a circular pizza with radius _z_ and thickness _a_, return the pizza's volume. [ _z_ is first input argument.] Non-scor...

5 years ago

Solved


Bottles of beer
Given an input number representing the number of bottles of beer on the wall, output how many are left if you take one down and ...

5 years ago

Submitted


2D Potential Flow Simulator
2D Potential Flow Simulator calculates and simulates a potential flow.

5 years ago | 19 downloads |

Thumbnail

Submitted


Othello
Othello allows user to play Othello game in MATLAB GUI against a simple AI.

5 years ago | 12 downloads |

Thumbnail

Submitted


Sudoku
This code generates a random Sudoku puzzle or solves any given Sudoku puzzle.

5 years ago | 6 downloads |

Thumbnail

Submitted


DoodleJump
DoodleJump allows user to play DoodleJump game on MATLAB GUI.

5 years ago | 9 downloads |

Thumbnail

Solved


How to find the position of an element in a vector without using the find function
Write a function posX=findPosition(x,y) where x is a vector and y is the number that you are searching for. Examples: fin...

5 years ago

Solved


Find all elements less than 0 or greater than 10 and replace them with NaN
Given an input vector x, find all elements of x less than 0 or greater than 10 and replace them with NaN. Example: Input ...

5 years ago

Solved


Determine if input is odd
Given the input n, return true if n is odd or false if n is even.

5 years ago

Solved


Is my wife right?
Regardless of input, output the string 'yes'.

5 years ago

Solved


Make the vector [1 2 3 4 5 6 7 8 9 10]
In MATLAB, you create a vector by enclosing the elements in square brackets like so: x = [1 2 3 4] Commas are optional, s...

5 years ago

Solved


Column Removal
Remove the nth column from input matrix A and return the resulting matrix in output B. So if A = [1 2 3; 4 5 6]; and ...

5 years ago

Solved


Times 2 - START HERE
Try out this test problem first. Given the variable x as your input, multiply it by two and put the result in y. Examples:...

5 years ago

Solved


Find the sum of all the numbers of the input vector
Find the sum of all the numbers of the input vector x. Examples: Input x = [1 2 3 5] Output y is 11 Input x ...

5 years ago

Submitted


drawDATCOMaircraft
drawDATCOMaircraft generates an aircraft's thre view drawings from given DATCOM input files.

5 years ago | 49 downloads |

Thumbnail