Submitted

simple-threads-coder

A simple POSIX threading and webserver library for MATLAB Coder.

mehr als ein Jahr ago | 2 downloads |

Submitted

Robotics Toolbox for MATLAB

MATLAB and Simulink tools for analysing and simulating mobile robots and robot manipulators.

fast 2 Jahre ago | 0 downloads |

Solved

middleAsColumn: Return all but first and last element as a column vector

Given input A, return all but the first and last elements, arranged as a column vector. (I.e., all dimensions after the first s...

fast 2 Jahre ago

Solved

"Low : High - Low : High - Turn around " -- Create a subindices vector

Let two vectors *lo* and *hi* be given. The job is to create a index vector like so idx = [lo(1):hi(1) lo(2):hi(2) ...]...

fast 2 Jahre ago

Solved

First non-zero element in each column

For a given matrix, calculate the index of the first non-zero element in each column. Assuming a column with all elements zero ...

fast 2 Jahre ago

Solved

Matrix indexing with two vectors of indices

Given a matrix M and two index vectors a and b, return a row vector x where x(i) = M(a(i),b(i)).

fast 2 Jahre ago

Solved

Return unique values without sorting

If the input vector A is [42 1 1], the output value B must be the unique values [42 1] The *values of B are in the s...

fast 2 Jahre ago

Solved

Specific Element Count

Given a vector _v_ and a element _e_, return the number of occurrences of _e_ in _v_. Note: NaNs are equal and there may be n...

fast 2 Jahre ago

Solved

Return elements unique to either input

Given two numeric inputs a and b, return a row vector that contains the numbers found in only a or only b, but not both. For ex...

fast 2 Jahre ago

Solved

Getting logical indexes

This is a basic MATLAB operation. It is for instructional purposes. --- Logical indexing works like this. thresh = 4...

fast 2 Jahre ago

Solved

Replicate elements in vectors

Replicate each element of a row vector (with NaN) a constant number of times. Examples n=2, A=[1 2 3] -> [1 1 2 2 3 3] ...

fast 2 Jahre ago

Solved

Set the array elements whose value is 13 to 0

Input A either an array or a vector (which can be empty) Output B will be the same size as A . All elements of A equal to 13...

fast 2 Jahre ago

Solved

Find the largest value in the 3D matrix

Given a 3D matrix A, find the largest value. Example >> A = 1:9; >> A = reshape(A,[3 1 3]); >> islargest(A) a...

fast 2 Jahre ago

Solved

Check if number exists in vector

Return 1 if number _a_ exists in vector _b_ otherwise return 0. a = 3; b = [1,2,4]; Returns 0. a = 3; b = [1,...

fast 2 Jahre ago

Solved

Most nonzero elements in row

Given the matrix a, return the index r of the row with the most nonzero elements. Assume there will always be exactly one row th...

fast 2 Jahre 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...

fast 2 Jahre ago

Solved

Which values occur exactly three times?

Return a list of all values (sorted smallest to largest) that appear exactly three times in the input vector x. So if x = [1 2...

fast 2 Jahre ago

Solved

Reverse the vector

Reverse the vector elements. Example: Input x = [1,2,3,4,5,6,7,8,9] Output y = [9,8,7,6,5,4,3,2,1]

fast 2 Jahre ago

Solved

Who Has the Most Change?

You have a matrix for which each row is a person and the columns represent the number of quarters, nickels, dimes, and pennies t...

fast 2 Jahre 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...

fast 2 Jahre ago

Solved

Remove all the consonants

Remove all the consonants in the given phrase. Example: Input s1 = 'Jack and Jill went up the hill'; Output s2 is 'a ...

fast 2 Jahre ago

Solved

Back and Forth Rows

Given a number n, create an n-by-n matrix in which the integers from 1 to n^2 wind back and forth along the rows as shown in the...

fast 2 Jahre 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 ...

fast 2 Jahre 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...

fast 2 Jahre 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...

fast 2 Jahre ago

Submitted

rollingShutter

Simulates the effect of a rolling shutter camera observing a rotating object

etwa 2 Jahre ago | 4 downloads |

Submitted

Polynomialspirals

Interactively plot cubic polynomial spirals

etwa 2 Jahre ago | 4 downloads |

Answered

Is it possible to connect Ev3 brick(Lego Mindstorms) with Matlab?

There's already a thread on this, have a look at the answers here http://www.mathworks.com/matlabcentral/answers/88078-suppor...

Is it possible to connect Ev3 brick(Lego Mindstorms) with Matlab?

There's already a thread on this, have a look at the answers here http://www.mathworks.com/matlabcentral/answers/88078-suppor...

mehr als 6 Jahre ago | 0

Answered

Support for Lego Mindstorms EV3

This has matured, check out https://wiki.qut.edu.au/display/cyphy/Lego+EV3 for the details: documentation and MATLAB code. ...

Support for Lego Mindstorms EV3

This has matured, check out https://wiki.qut.edu.au/display/cyphy/Lego+EV3 for the details: documentation and MATLAB code. ...

mehr als 6 Jahre ago | 0

| accepted