Community Profile

photo

Oliver Scott


Northumbria Univ

Active since 2015

Followers: 0   Following: 0

Message

Statistics

All
  • Solver

View badges

Feeds

View by

Question


If statement check not working correctly (possible floating point error.)
I am writing a function file, that at one point includes an if statement. (if curious, it is a monte-carlo simulation for damage...

9 years ago | 0 answers | 0

0

answers

Solved


Roll the Dice!
*Description* Return two random integers between 1 and 6, inclusive, to simulate rolling 2 dice. *Example* [x1,x2] =...

9 years ago

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

9 years ago

Solved


Weighted average
Given two lists of numbers, determine the weighted average. Example [1 2 3] and [10 15 20] should result in 33.333...

9 years ago

Solved


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

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

9 years ago