Feeds
已解决
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 前
已解决
Is my wife right? Now with even more wrong husband
Again, as in "Is my wife right?" ( <http://www.mathworks.com/matlabcentral/cody/problems/149-is-my-wife-right> ), answer 'yes' r...
10 years 前
已解决
Determine if input is odd
Given the input n, return true if n is odd or false if n is even.
10 years 前
已提交
Immediate_Neighbors(x)
Function that calculates the sum of the 8 neighboring pixels for every pixel in an image
10 years 前 | 1 次下载 |
提问
How can I generate a "movie" using a series of binary images?
I have a 3-D matrix where each x-y plane defines a binary image. variable(:,:,1) calls image one; variable(:,:,2) is image 2...
10 years 前 | 1 个回答 | 0
1
个回答已解决
Create a Matrix of Zeros
Given an input x, create a square matrix y of zeros with x rows and x columns.
10 years 前
已解决
Circle area using pi
Given a circle's radius, compute the circle's area. Use the built-in mathematical constant pi.
10 years 前
已解决
Simple equation: Annual salary
Given an hourly wage, compute an annual salary by multiplying the wage times 40 and times 50, because salary = wage x 40 hours/w...
10 years 前
已解决
The Hitchhiker's Guide to MATLAB
Output logical "true" if the input is the answer to life, the universe and everything. Otherwise, output logical "false".
10 years 前
已解决
Bottles of beer
Given an input number representing the number of bottles of beer on the wall, output how many are left if you take one down and ...
10 years 前
提问
How do I individually calculate the area of each enclosed space within a binary image?
I have a binary image with multiple enclosed, assumed to be circular, areas and would like to calculate the enclosed areas indiv...
11 years 前 | 1 个回答 | 0
1
个回答已回答
how to calculate the area of the segmented region?
You can calculate the area of a segmented image using the regionprops function: area = regionprops(your_image_name , 'Area'...
how to calculate the area of the segmented region?
You can calculate the area of a segmented image using the regionprops function: area = regionprops(your_image_name , 'Area'...
11 years 前 | 0
已回答
How do I convert data stored in a variable as a matrix to an excel file?
There is a built-in function that can do this for you called 'xlswrite'. It is much better than transcribing numbers by hand. ...
How do I convert data stored in a variable as a matrix to an excel file?
There is a built-in function that can do this for you called 'xlswrite'. It is much better than transcribing numbers by hand. ...
11 years 前 | 0
提问
How to call a function with a GUI push button
I would like to create a GUI that performs a set of specified operations (defined in a separate function) on an image chosen by ...
11 years 前 | 1 个回答 | 0
1
个回答已解决
Pizza!
Given a circular pizza with radius _z_ and thickness _a_, return the pizza's volume. [ _z_ is first input argument.] Non-scor...
11 years 前
已解决
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 ...
11 years 前
已解决
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 前
已解决
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 前




