Answered
Median filtering for medical images
doc medfilt2 Is probably a good place to start.

14 years ago | 0

| accepted

Answered
Displaying images after a Fourier Transform and Phase Retrieval Algorithms
your first question: doc ifftshift % ;)

14 years ago | 0

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

14 years ago

Answered
referencing arrays
action = { ['short'] ['long'] ['waiting'] ['short']}; profit = { [-50.00] [100.00] [0] [20.00]}; resul...

14 years ago | 0

Answered
how to limit arrow length in 3D quiver plot?
Couldn't you just takle the log or log10 f the u/v/w components? 2-d example: [xx yy] = meshgrid(1:5); u = (rand(5)+1)....

14 years ago | 0

Answered
How to converting 2D MRI dcm files to 3D VRML (STL, VRML files)??
I would recommend looking here first in a valiant attempt to save yourself from reinventing the wheel: <http://www.mathworks....

14 years ago | 1

Answered
Integrating A Vector (Or rather a series of point values)
trapz([0.6 1.3 2:5],[12.6 87.2 74.2 45.3 23.4 14.2]) And to see if it makes sense, look at each trapezoid's contribution:...

14 years ago | 1

| accepted

Answered
Simple reformat data question
If you can explain what's going on we might be able to help you with a more general solution. Otherwise, there doesn't appear t...

14 years ago | 0

Solved


Sorted highest to lowest?
Return 1 if the input is sorted from highest to lowest, 0 if not. Example: 1:7 -> 0 [7 5 2] -> 1

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

14 years ago

Answered
Computing times differences between computers
Is one 32bit and the other 64? If so, it is expected that the 32bit system will run faster. Try running |bench| on both mach...

14 years ago | 0

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

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

14 years ago

Answered
FREAD() help
You have to specify the precision of the numbers you're reading (i.e. double). You could also look at |dlmread| and |dlmwrite...

14 years ago | 0

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

14 years ago

Solved


All capital?
Are all the letters in the input string capital letters? Examples: 'MNOP' -> 1 'MN0P' -> 0

14 years ago

Solved


Given an unsigned integer x, find the largest y by rearranging the bits in x
Given an unsigned integer x, find the largest y by rearranging the bits in x. Example: Input x = 10 Output y is 12 ...

14 years ago

Solved


Find perfect placement of non-rotating dominoes (easier)
Given a list of ordered pairs, find the order they should be placed in a line, such that the sum of the absolute values of the d...

14 years ago

Answered
Timer precedence during called functions
Set the timer's _'busymode'_ option to _'queue'_ so that the most recent event is queued. Then add a bunch of |drawnows| in you...

14 years ago | 1

Answered
How to export text box values into text file
doc fopen doc fprintf doc fwrite doc fclose A combination of these.

14 years ago | 0

Answered
Improving MATLAB code ideas? - cells and matrices
How are you generating _a1,a2,b1,b2,etc._? Store the _'a's_ along the third dimension of a matrix and concatenate the _'b's_ co...

14 years ago | 0

Answered
loop intial guesses in fsolve
Copying and pasting what you have above works for me. What do you have for |fsolve|? IS it being shadowed perhaps? which ...

14 years ago | 1

Answered
By element average of multiple matrices
Stack your 40 matrices into one three-dimensional matrix, then take the mean along the 3rd dimension meanMatrix = mean(stac...

14 years ago | 1

Answered
Getting minimum value from an array
[val index] = min(A(~~A)) If you wanted the index involving zeros, find it after index = find(A==val,1,'first')

14 years ago | 0

Answered
Deciphering an Error message
x = rand(2,2) _x_ is now a 2x2 matrix. If I try to get x(3,3): x(3,3) I'll get that error because x(3,3) doesn't...

14 years ago | 0

Answered
Help on solving equation
Use a |for|-loop to loop through your _w_ values. for ii = 1:numel(w) solve_with_w(ii) end

14 years ago | 0

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

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

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

14 years ago

Answered
Write a program in a script file that determines the real roots of a quadratic equation
doc roots and, specifically: roots([a b c]);

14 years ago | 1

Load more