Community Profile

photo

Benjamin


Active since 2012

Followers: 0   Following: 0

Message

Statistics

All
  • Solver

View badges

Feeds

View by

Answered
Selecting the min value in a matrix but with conditions
The below code is my fix to the problem, it is ugly but it seems to be working. Feel free to send improvements my way if you ha...

mer än 11 år ago | 0

Question


Selecting the min value in a matrix but with conditions
I am trying to simulate swarms of agents. I have working code (using loops) but now I am trying vectorize the code. I have a f...

mer än 11 år ago | 1 answer | 0

1

answer

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

mer än 11 år ago

Solved


Add two numbers
Given a and b, return the sum a+b in c.

mer än 11 år 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:...

mer än 11 år ago

Question


Vectorization conversion issues for matrix computations
This is my first attempt to increase the speed of my already working simulation but I am running into some problems. For this p...

mer än 11 år ago | 0 answers | 0

0

answers