Answered

Experiences with release 2012b

(cross-posting a comment I just submitted on <http://blogs.mathworks.com/loren/2012/09/12/the-matlab-r2012b-desktop-part-1-intro...

Experiences with release 2012b

(cross-posting a comment I just submitted on <http://blogs.mathworks.com/loren/2012/09/12/the-matlab-r2012b-desktop-part-1-intro...

10 years ago | 12

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

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

11 years 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 = ...

11 years 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]

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

11 years ago

Solved

Determine if input is odd

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

11 years ago

Solved

Sort a list of complex numbers based on far they are from the origin.

Given a list of complex numbers z, return a list zSorted such that the numbers that are farthest from the origin (0+0i) appear f...

11 years ago

Solved

Find the numeric mean of the prime numbers in a matrix.

There will always be at least one prime in the matrix. Example: Input in = [ 8 3 5 9 ] Output out is 4...

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

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

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

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

11 years ago

Answered

R2011b Prints script name in Command Window

Phil - Sorry that this change has been disruptive to your workflow. We made the change intentionally, motivated by precisely wh...

R2011b Prints script name in Command Window

Phil - Sorry that this change has been disruptive to your workflow. We made the change intentionally, motivated by precisely wh...

11 years ago | 3

| accepted

Answered

Pre-allocating linked arrays for "live" plotting

I think the issue might simply be with your call to nan. You are creating 200 x 200 arrays of NaNs for x and y. I imagine your...

Pre-allocating linked arrays for "live" plotting

I think the issue might simply be with your call to nan. You are creating 200 x 200 arrays of NaNs for x and y. I imagine your...

11 years ago | 0

Answered

running exe with system

I'm a little confused about your question. I would expect that you want to build a string that looks exactly like the one you w...

running exe with system

I'm a little confused about your question. I would expect that you want to build a string that looks exactly like the one you w...

12 years ago | 0

Answered

Speech recognition Coding

Is your goal to have speech recognition running in MATLAB, or to actually learn how to implement the algorithm? If you just w...

Speech recognition Coding

Is your goal to have speech recognition running in MATLAB, or to actually learn how to implement the algorithm? If you just w...

12 years ago | 2

Answered

Writing software in MATLAB is useful or in C++

Manu - you might find that the <http://www.mathworks.com/matlabcentral/newsreader/ MATLAB newsgroup> is a better place to hold ...

Writing software in MATLAB is useful or in C++

Manu - you might find that the <http://www.mathworks.com/matlabcentral/newsreader/ MATLAB newsgroup> is a better place to hold ...

12 years ago | 0

| accepted

Answered

Add directory to search path

A couple of techniques come to mind, of various complexity and robustness. *Easy, but fragile* Build a partial path specif...

Add directory to search path

A couple of techniques come to mind, of various complexity and robustness. *Easy, but fragile* Build a partial path specif...

12 years ago | 3

| accepted

Answered

Slider appearance on Macs in a cross platform GUI

This page gives a whole range of tips for making GUIs that look good on multiple operating systems: <http://www.mathworks.com...

Slider appearance on Macs in a cross platform GUI

This page gives a whole range of tips for making GUIs that look good on multiple operating systems: <http://www.mathworks.com...

12 years ago | 3

Answered

How to read images in a folder

Nilushi - We won't be able to hand you a complete answer, but can give some pointers. Here's a code snippet that shows comm...

How to read images in a folder

Nilushi - We won't be able to hand you a complete answer, but can give some pointers. Here's a code snippet that shows comm...

12 years ago | 24

| accepted

Answered

Problem with the "get" function to get dat from a handles structure in a GUI

|handles.lambda| is a number, not a graphics object, so |get| won't work on it. Just type |handles.lambda| at the command line ...

Problem with the "get" function to get dat from a handles structure in a GUI

|handles.lambda| is a number, not a graphics object, so |get| won't work on it. Just type |handles.lambda| at the command line ...

12 years ago | 0

| accepted

Answered

Can I use multiple versions of the MATLAB Compiler Runtime on the same machine?

Yes to both questions. You can install multiple versions of the MCR on a single machine. Deployed applications will automatica...

Can I use multiple versions of the MATLAB Compiler Runtime on the same machine?

Yes to both questions. You can install multiple versions of the MCR on a single machine. Deployed applications will automatica...

12 years ago | 6

| accepted