Feeds
提问
Find closest 8-connected chessboard distance between multiple pairs of points: shortest m-path
I am working on binary images. I have two sets of points: PNodes and FNodes. I want to find the closest PNode to each of the FNo...
7 years 前 | 1 个回答 | 0
1
个回答提问
Function similar to bwconncomp, but on 3D point clouds.
Is there a MATLAB function which does this: _Given a 3D matrix (say, point cloud) two adjacent pixels should be connected if...
7 years 前 | 0 个回答 | 0
0
个回答提问
Element by element (xor) operation on cells.
I have two variables, |Test| and |Train|. |Test| = |cell| of dimension |10 x 1| and |Train| = |cell| of dimension |20 x ...
7 years 前 | 1 个回答 | 0
1
个回答提问
Eliminate all rows with '\N' element in a cell
This is a simple question, but I'm getting confused cuz of the different datatypes in cell I have Cell_A (attached). I want t...
8 years 前 | 1 个回答 | 0
1
个回答已回答
how to detect the value angle of rotation object ?
You can find the major axes of all the four objects. The direction of each of their major axis gives the angle of rotation.
how to detect the value angle of rotation object ?
You can find the major axes of all the four objects. The direction of each of their major axis gives the angle of rotation.
8 years 前 | 0
已回答
Starting a new line
Are you typing your code in the Command Window? Then use "..." and < enter > <</matlabcentral/answers/uploaded_files/48325/Un...
Starting a new line
Are you typing your code in the Command Window? Then use "..." and < enter > <</matlabcentral/answers/uploaded_files/48325/Un...
8 years 前 | 0
已回答
I'm trying to simplify an expression or equation symbolically and I get the same error every time. Undefined function or variable 'x'.
What exactly is your command? It seems like you haven't told MATLAB what the value of |x| is. First, initialize a value for |x| ...
I'm trying to simplify an expression or equation symbolically and I get the same error every time. Undefined function or variable 'x'.
What exactly is your command? It seems like you haven't told MATLAB what the value of |x| is. First, initialize a value for |x| ...
9 years 前 | 0
| 已接受
已回答
hello guys, i have mat file < 15151x723 double > but i want this file with 3 columns only. after 15151 rows i want next 3 columns should come bellow that.same with next 3 columns ...hope you understand...
Have you tried using |reshape|? If a = [1 2 3 4 5 6 10 20 30 40 50 60 100 200 300 400 500 600 1000 2000 3000 4000 ...
hello guys, i have mat file < 15151x723 double > but i want this file with 3 columns only. after 15151 rows i want next 3 columns should come bellow that.same with next 3 columns ...hope you understand...
Have you tried using |reshape|? If a = [1 2 3 4 5 6 10 20 30 40 50 60 100 200 300 400 500 600 1000 2000 3000 4000 ...
9 years 前 | 0
已回答
how can i replace white pixel (in binary image) with a color pixel of another image?
I do this all the time. This is what I do: |mask| is the binary image mask (2D) (converted to logical values). |rgbImg| is th...
how can i replace white pixel (in binary image) with a color pixel of another image?
I do this all the time. This is what I do: |mask| is the binary image mask (2D) (converted to logical values). |rgbImg| is th...
9 years 前 | 1
已回答
How to have a contour with 4-connectivity?
Fill the image ( |imfill|). Use <http://in.mathworks.com/help/images/ref/bwboundaries.html |bwboundaries|> with |conn| = 4.
How to have a contour with 4-connectivity?
Fill the image ( |imfill|). Use <http://in.mathworks.com/help/images/ref/bwboundaries.html |bwboundaries|> with |conn| = 4.
9 years 前 | 0
| 已接受
已回答
how to find pixels in donut slices
Do you mean the _intensity_ values of each pixel in an image? If so, use <http://in.mathworks.com/help/images/ref/imtool.html...
how to find pixels in donut slices
Do you mean the _intensity_ values of each pixel in an image? If so, use <http://in.mathworks.com/help/images/ref/imtool.html...
9 years 前 | 0
已回答
what does this error means-"Function definitions are not permitted at the prompt or in scripts."?
It means you are trying to define a function in the prompt or maybe within a different script. This is not permitted in MATLAB. ...
what does this error means-"Function definitions are not permitted at the prompt or in scripts."?
It means you are trying to define a function in the prompt or maybe within a different script. This is not permitted in MATLAB. ...
9 years 前 | 0
已回答
Save data to file with different array size
When you execute |A = [a b c d e];| don't you get an error? The dimensions of |a, b, c, d| & |e| aren't consistent. You cannot c...
Save data to file with different array size
When you execute |A = [a b c d e];| don't you get an error? The dimensions of |a, b, c, d| & |e| aren't consistent. You cannot c...
9 years 前 | 0
已回答
Want to find a specific column of needed data
Have you tried using <http://in.mathworks.com/help/matlab/ref/ismember.html#btcnv44-12 |ismember|>? I believe you can use a comb...
Want to find a specific column of needed data
Have you tried using <http://in.mathworks.com/help/matlab/ref/ismember.html#btcnv44-12 |ismember|>? I believe you can use a comb...
9 years 前 | 0
提问
Detect irregular dark spots in a gray scale image.
I require ideas to detect these kind of black spots in a gray scale image. <</matlabcentral/answers/uploaded_files/39748/Gra...
9 years 前 | 1 个回答 | 0
1
个回答已回答
3D Point Cloud to 2D depth image
Use <http://in.mathworks.com/help/vision/ref/disparity.html |disparity|>.
3D Point Cloud to 2D depth image
Use <http://in.mathworks.com/help/vision/ref/disparity.html |disparity|>.
9 years 前 | 0
已解决
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...
9 years 前
已解决
Pizza value using expression with parentheses
Pizza prices are typically listed by diameter, rather than the more relevant feature of area. Compute a pizza's value (cost per ...
9 years 前
已解决
Get the length of a given vector
Given a vector x, the output y should equal the length of x.
9 years 前
已解决
Roll the Dice!
*Description* Return two random integers between 1 and 6, inclusive, to simulate rolling 2 dice. *Example* [x1,x2] =...
9 years 前
已解决
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...
9 years 前
已解决
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]
9 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 ...
9 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".
9 years 前
已解决
Summing digits
Given n, find the sum of the digits that make up 2^n. Example: Input n = 7 Output b = 11 since 2^7 = 128, and 1 + ...
9 years 前
已解决
Length of the hypotenuse
Given short sides of lengths a and b, calculate the length c of the hypotenuse of the right-angled triangle. <<http://upload....
9 years 前
已解决
Right and wrong
Given a vector of lengths [a b c], determines whether a triangle with those sides lengths is a right triangle: <http://en.wikipe...
9 years 前
已解决
Finding Perfect Squares
Given a vector of numbers, return true if one of the numbers is a square of one of the other numbers. Otherwise return false. E...
9 years 前
已解决
Make a checkerboard matrix
Given an integer n, make an n-by-n matrix made up of alternating ones and zeros as shown below. The a(1,1) should be 1. Example...
9 years 前
已解决
Is this triangle right-angled?
Given three positive numbers a, b, c, where c is the largest number, return *true* if the triangle with sides a, b and c is righ...
9 years 前