Top 5% contributor
You can however use the Simulink Support Software for Arduino, Raspberry Pi , Lego, iPhone & iPad as well as some Android mobile...
Answered 26 days ago
3 years ago
This is a short self-paced course for first year students to get started with MATLAB
This is a first course in scientific computing using MATLAB for scientists and engineers.
2 years ago
Lecture notes and MATLAB files for a first course in Model Predictive Control
The simulations explore the behaviour of dynamical systems complementing a first course on mechanics
Remove all characters that are below space in ASCII value.
12 months ago
Write a function posX=findPosition(x,y) where x is a vector and y is the number that you are searching for.
Given a circular pizza with radius _z_ and thickness _a_, return the pizza's volume. [ _z_ is first input argument.]
Flip the outermost columns of matrix A, so that the first column becomes the last and the last column becomes the first. All oth...
Complete the function below such that if the value of x is in the range 10 to 14, inclusive, the value 18 is assigned to y. Oth...
Input x is the sampled signal vector, may have both AC and DC components. Output y should not contain any DC component.
you just discovered its circumference, that is the input.
Calculate the nth Fibonacci number.
Given n, return f where f = fib(n) and f(1) = 1, f(2) = 1, f(3) = 2, ...
1 year ago
The sum of the primes below 10 is 2 + 3 + 5 + 7 = 17.
Find the sum of all the primes below the input, N.
Thank you <http:/...
Find the eigenvalues y for a given matrix x.
Triangle numbers are the sums of successive integers. So 6 is a triangle number because
6 = 1 + 2 + 3
which can be displa...
Given an input vector x, find all elements of x less than 0 or greater than 10 and replace them with NaN.
Given a positive, scalar integer n, create a (2^n)-by-n double-precision matrix containing the binary numbers from 0 through 2^n...
In MATLAB, you create a vector by enclosing the elements in square brackets like so:
x = [1 2 3 4]
Commas are optional, s...
This example comes from Steve Eddins' blog: <http://blogs.mathworks.com/steve/2009/05/27/learning-lessons-from-a-one-liner/ Lear...
At one time or another, we all had to memorize boring times tables. 5 times 5 is 25. 5 times 6 is 30. 12 times 12 is way more th...
Given n, find the sum of the digits that make up 2^n.
Input n = 7
Output b = 11
since 2^7 = 128, and 1 + ...
Given the input n, return true if n is odd or false if n is even.
Write a two-input, two-output function that swaps its two input arguments. For example:
[q,r] = swap(5,10)
returns q = ...
Find the sum of all the numbers of the input vector x.
Input x = [1 2 3 5]
Output y is 11
Input x ...
Well its Ohm's law...
So V = IR!
I will give two of the three values, such as V and I or I and R and you have to return th...
Suppose you go from position 7 to 10 to 6 to 4. Then you have walked 9 units of distance, since 7 to 10 is 3 units, 10 to 6 is 4...
Reverse the vector elements.
Input x = [1,2,3,4,5,6,7,8,9]
Output y = [9,8,7,6,5,4,3,2,1]
Given the number x, y must be the summation of all integers from 1 to 2^x.
For instance if x=2 then y must be 1+2+3+4=10.
Join the conversation