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 6 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 6 Jahre ago

Solved

radius of a spherical planet

you just measured its surface area, that is the input.

fast 8 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 8 Jahre ago

Solved

Find the alphabetic word product

If the input string s is a word like 'hello', then the output word product p is a number based on the correspondence a=1, b=2, ....

fast 8 Jahre ago

Solved

Quote Doubler

Given a string s1, find all occurrences of the single quote character and replace them with two occurrences of the single quote ...

fast 8 Jahre ago

Solved

Target sorting

Sort the given list of numbers |a| according to how far away each element is from the target value |t|. The result should return...

fast 8 Jahre ago

Solved

Cell joiner

You are given a cell array of strings and a string delimiter. You need to produce one string which is composed of each string fr...

fast 8 Jahre ago

Solved

The Goldbach Conjecture

The <http://en.wikipedia.org/wiki/Goldbach's_conjecture Goldbach conjecture> asserts that every even integer greater than 2 can ...

fast 8 Jahre ago

Solved

Create a cell array out of a struct

Create a cell array out of a (single) struct with the fieldname in the first column and the value in the second column: in: ...

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

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

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

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

fast 8 Jahre ago

Solved

Determine if input is odd

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

fast 8 Jahre 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:...

fast 8 Jahre ago

Answered

How can I remove all the paths for Toolboxes in MATLAB?

There is no supported way of undoing the path setting in MATLAB. The safest way to avoid name collisions is to rename all user f...

How can I remove all the paths for Toolboxes in MATLAB?

There is no supported way of undoing the path setting in MATLAB. The safest way to avoid name collisions is to rename all user f...

fast 9 Jahre ago | 2

| accepted

Answered

Second order homogeneous differential equation

You can use the DSOLVE command in the Symbolic Math Toolbox: >> dsolve('D2y - Dy - 6*y = 0') ans = C4*exp(3*t) +...

Second order homogeneous differential equation

You can use the DSOLVE command in the Symbolic Math Toolbox: >> dsolve('D2y - Dy - 6*y = 0') ans = C4*exp(3*t) +...

fast 9 Jahre ago | 1

Answered

How do I dynamically generate a file name for save in MATLAB

You can use the function form of the SAVE command: i = 10; fname = sprintf('myfile%d.mat', i); save(fname) For m...

How do I dynamically generate a file name for save in MATLAB

You can use the function form of the SAVE command: i = 10; fname = sprintf('myfile%d.mat', i); save(fname) For m...

fast 9 Jahre ago | 8

Answered

Why do I get false results when using equal relational operation for the logical operation?

If you look carefully at the definition of fundamental arithmetic operations like addition and multiplication, you soon encounte...

Why do I get false results when using equal relational operation for the logical operation?

If you look carefully at the definition of fundamental arithmetic operations like addition and multiplication, you soon encounte...

fast 9 Jahre ago | 0

Answered

How does logical indexing work?

Assume A is a MxN matrix. Let "tf" be a MxN logical matrix. Then A(tf) extracts all elements of A corresponding to all tru...

How does logical indexing work?

Assume A is a MxN matrix. Let "tf" be a MxN logical matrix. Then A(tf) extracts all elements of A corresponding to all tru...

fast 9 Jahre ago | 0

Answered

Why is 6*i not a complex number in my program?

Looks like you might have a variable defined named "i" which is a real. If this is the case, then the "definition" of "i" as ima...

Why is 6*i not a complex number in my program?

Looks like you might have a variable defined named "i" which is a real. If this is the case, then the "definition" of "i" as ima...

fast 9 Jahre ago | 0

Answered

Does absolute intensity in an image matter when computing the normalized cross correlation with NORMXCORR2?

The normalized cross correlation computed in normxcorr2 is robust to differences in illumination between the template and input ...

Does absolute intensity in an image matter when computing the normalized cross correlation with NORMXCORR2?

The normalized cross correlation computed in normxcorr2 is robust to differences in illumination between the template and input ...

fast 9 Jahre ago | 1

| accepted

Answered

How is the winning neuron selected by the NEWSOM function within Neural Network Toolbox?

The NEWSOM function is used to obtain a self-organizing network. The syntax for this function is as follows: net = newsom(P...

How is the winning neuron selected by the NEWSOM function within Neural Network Toolbox?

The NEWSOM function is used to obtain a self-organizing network. The syntax for this function is as follows: net = newsom(P...

etwa 9 Jahre ago | 1

| accepted

Question

Is there a function which calculates a POLYFIT and MEAN of vectors in MATLAB 7.11 (R2010b)?

I am working with MATLAB 7.11 (R2010b). In my project I need to linear fit multiple vectors and calculate the mean of them. I wo...

etwa 9 Jahre ago | 1 answer | 0

Question

How is the winning neuron selected by the NEWSOM function within Neural Network Toolbox?

I would like to know how the winning neuron is selected by the NEWSOM function within Neural Network Toolbox.

etwa 9 Jahre ago | 1 answer | 0