Published


Mathematics and Humanities: Understanding Sort Algorithms
Steve recently mentioned a video showing how the quiksort algorithm works, including an explanation from Bobby...

ongeveer 12 jaar ago

Thumbnail

Published


Running Scripts on a Cluster Using the Batch Command in Parallel Computing Toolbox
I'd like to introduce this week's guest blogger Edric Ellis. Edric works for the Parallel Computing development...

meer dan 12 jaar ago

Thumbnail

Published


Have You Visited MATLAB Central Recently?
I don't know if you visit MATLAB Central often, but there's a good reason to these days. ...

meer dan 12 jaar ago

Thumbnail

Published


Considering Performance in Object-Oriented MATLAB Code
I’m pleased to have Dave Foti back for a look at objects and performance. Dave manages the group responsible...

meer dan 12 jaar ago

Thumbnail

Published


New Regression Capabilities in Release 2012A
This week Richard Willey from technical marketing will be guest blogging about new regression capabilities...

meer dan 12 jaar ago

Thumbnail

Published


MATLAB Virtual Conference – 28 March 2012
I am pleased to announce that we have another MATLAB Virtual Conference planned and taking place towards the...

meer dan 12 jaar ago

Thumbnail

Published


Controlling RGB LED via Potentiometer Using Arduino and MATLAB
I'd like to introduce this week's guest blogger Ankit Desai. Ankit works for the Test & Measurement team...

meer dan 12 jaar ago

Thumbnail

Published


Separating Errors from Output in a Deployed Application
Guest blogger Peter Webb returns with another in an occasional series of postings about application...

meer dan 12 jaar ago

Thumbnail

Solved


Distance walked 1D
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...

meer dan 12 jaar ago

Solved


Create times-tables
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...

meer dan 12 jaar 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...

meer dan 12 jaar ago

Solved


Check if sorted
Check if sorted. Example: Input x = [1 2 0] Output y is 0

meer dan 12 jaar ago

Solved


Swap the first and last columns
Flip the outermost columns of matrix A, so that the first column becomes the last and the last column becomes the first. All oth...

meer dan 12 jaar ago

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

meer dan 12 jaar ago

Solved


Finding Perfect Squares
Given a vector of numbers, return true if one of the numbers is a square of one of the other numbers. Otherwise return false. E...

meer dan 12 jaar 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 ...

meer dan 12 jaar 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 ...

meer dan 12 jaar ago

Solved


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

meer dan 12 jaar ago

Solved


Remove any row in which a NaN appears
Given the matrix A, return B in which all the rows that have one or more <http://www.mathworks.com/help/techdoc/ref/nan.html NaN...

meer dan 12 jaar ago

Solved


Determine whether a vector is monotonically increasing
Return true if the elements of the input vector increase monotonically (i.e. each element is larger than the previous). Return f...

meer dan 12 jaar 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 ...

meer dan 12 jaar 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...

meer dan 12 jaar ago

Solved


Create a function handle that reverses the input arguments of another function handle
Given a function that takes two input arguments and returns one output, create another function handle that performs the same op...

meer dan 12 jaar ago

Solved


Swap the input arguments
Write a two-input, two-output function that swaps its two input arguments. For example: [q,r] = swap(5,10) returns q = ...

meer dan 12 jaar 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:...

meer dan 12 jaar ago

Published


Using GPUs in MATLAB
Today I’d like to introduce guest blogger Sarah Wait Zaranek who works for the MATLAB Marketing team. Sarah...

meer dan 12 jaar ago

Thumbnail

Published


MATLAB Documentation
For quite a while now, we have made MathWorks product documentation available from the support page on our web...

meer dan 12 jaar ago

Thumbnail

Published


Best Practices for Programming MATLAB
I thought I would share my top goto list of things I try to do when I write MATLAB code. And checking with...

meer dan 12 jaar ago

Thumbnail

Published


Liberating Deployed Application Output from the Console Window
Guest blogger Peter Webb returns with another in an occasional series of postings about application...

meer dan 12 jaar ago

Thumbnail

Published


Ginger Plot Winner
If you've been following the comments from my recent post on chaotic maps, you know that there were several...

meer dan 12 jaar ago

Thumbnail

Load more