Community Profile

# Wern-Juin Choy

### School of Mechanical and Systems Engineering

Active since 2012

All

#### Content Feed

View by

Ardupilot Mega 2.5 + problem with Run on Target Hardware
You need to check if you have the correct compiler installed on your pc. A list of the compilers is provided on page 9 in the Ho...

6 years ago | 0

Question

Run option not available after Prepare to run is completed
I want to upload a model that I have generated in Simulink onto my arduino board. I followed the instructions on how to uploa...

6 years ago | 1 answer | 0

### 1

S-function builder output: type mismatch error
Update: I have solved the problem. It is pretty simple actually. The inputs were reduced to a 4x1 vector. The output is reduced ...

7 years ago | 0

| accepted

Question

S-function builder output: type mismatch error
Hi everyone, I am creating a discrete S-function that has 4 inputs, 12 outputs and 12 discrete states, with sample time of 0....

7 years ago | 1 answer | 0

### 1

Solved

Fibonacci sequence
Calculate the nth Fibonacci number. Given n, return f where f = fib(n) and f(1) = 1, f(2) = 1, f(3) = 2, ... Examples: Inpu...

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

7 years ago

Solved

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

7 years ago

Solved

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

7 years ago

Solved

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

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

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

7 years ago

Question

Jury table
Hi guys, I am doing this project purely out of interest (not as a homework) The gist is to take a transfer function and test...

9 years ago | 2 answers | 0

### 2

Question

Finding another point on the curve
Lets say I have the following code which plots the curve out. [y,t] = step(Pz); plot(t,y); I have found a point on th...

9 years ago | 1 answer | 0