已回答
How can I use imfindcircles function to find circle centers without sorting
Your comment suggests that you *do* want the results to be sorted, but according to position rather than strength. (Strength mea...

10 years 前 | 3

| 已接受

已回答
Help with scatteredInterpolant: masking and meshgrid alternatives
A quick thought - would it help to switch off extrapolation? Use F = scatteredInterpolant(X,Y,Z,C,'nearest','none');

10 years 前 | 2

已回答
how can convert matrix of image from douple to single
If imageDouble is the original image, use imageSingle = single(imageDouble);

10 years 前 | 1

| 已接受

已回答
Dear All, I am really new to matlab and dont know how to run this code. can anybody guide me stepwise? code courtesy: http://www.cs.sfu.ca/~hamarneh/software/livewire/lwcontour_sven.m
Probably the best place to start is the <http://uk.mathworks.com/help/matlab/getting-started-with-matlab.html getting started gu...

10 years 前 | 1

已回答
How can I create a circle in the middle of the figure which do not touch axis..??
Try adding margin = 2; % how much space to leave axis([x x y y] + [-1 1 -1 1]*(r+margin));

10 years 前 | 0

已回答
Looping both rows and columns
Try putting the line n = 1; between the two "while" statements. This variable needs to start at the beginning for each v...

10 years 前 | 1

| 已接受

已回答
Approximate the variable in the workspace to one digite ?
If you mean you have 1000 values stored in an array, and you want to change the stored values to be rounded to one decimal place...

10 years 前 | 1

| 已接受

已回答
I am trying to write code for canny edge detection but it is not giving exact output like inbuilt function.can any one help me
The differences are quite small, and I don't think there is very much wrong. My own implementation of the Canny edge detector al...

10 years 前 | 0

| 已接受

已回答
add circles to starting and ending point of a line
Here is some test data, to make a plot that looks a bit like yours: x = 2:0.1:18; y1 = 20 - 0.05 * x; y2 = y1 - 0.2 *...

10 years 前 | 0

已回答
How to form a matrix
The question doesn't entirely make sense. You say you want to record the value of i when i equals 4, 6, 9, 12. Taking the questi...

10 years 前 | 0

| 已接受

已回答
Creating an indexed array of images having the same size
It looks like arr is already a non-cell array. Assuming you don't need the old value of arr, assign a cell array to it before tr...

10 years 前 | 0

已回答
How to read or extract modis HDF aerosol data .
I've been using <http://www.mathworks.com/help/matlab/ref/hdfinfo.html hdfinfo> with 'eos' as the second argument and <http://ww...

10 years 前 | 1

提问


Current folder window: how does "MATLAB Code File" differ from "Script"
I'm puzzled by the listing in my current folder window. I hadn't noticed a file type called "MATLAB Code File" before, and I'm t...

10 years 前 | 1 个回答 | 0

1

个回答

已回答
Indexing a 3D array with a vector
c = b(:,3,:); c(c > 5) = -100; b(:,3,:) = c;

10 years 前 | 0

| 已接受

已回答
How can I get the values of a circular region around a particular pixel?
Assuming: * your image is grayscale and is called img; * the central pixel is at column x and row y; * the radius of the ci...

10 years 前 | 2

| 已接受

已回答
Plot y^2 = x^2 + 1 (The expression to the left of the equals sign is not a valid target for an assignment.)
The error message says it all: you can't assign something to y1^2. Remember that in a programming language, the "=" operator isn...

10 years 前 | 1

已回答
how to smooth data?
It's impossible to say what the best method is without a model of spike formation and a function that quantifies the cost of res...

10 years 前 | 0

已回答
Finding the index of each last field of an array that contains a value between two set values
It may be that you just need to use & instead of &&.

10 years 前 | 1

| 已接受

已回答
How to add an unknown amount of number in matlab?
The trick is to add on to the result vector each time through the loop. I don't understand what sv is in your code, and I'm n...

10 years 前 | 0

已回答
Attempted to access x(-36); index must be a positive integer or logical.?
Image Analyst's comment is correct - working code and the values for the variables should be given. Nevertheless, I can make a g...

10 years 前 | 2

已回答
Concatenating a cell array
I guess you mean that you would like to delete rows 1 and 4. If that's right, here's one way: % set up the test data dat...

10 years 前 | 2

| 已接受

已回答
Creating a circle with segments of colour
Not sure what you mean by "adjustable in colour". The code below does the full colour wheel - it should give you a starting poin...

10 years 前 | 2

| 已接受

已回答
How to get If Then statements to work on a vector
y = x; y(x > 5) = 5;

10 years 前 | 0

| 已接受

已回答
Why, oh why does isempty return 0? Questions related to dataset access and return from strfind.
The two earlier answers are both correct. Another suggestion which might help is to use ismember() instead of ~isempty(strfind()...

10 years 前 | 1

已回答
If Condition with array of elements
You should try to state more clearly what is not working. Give an example set of initial values, say what you expect the result ...

10 years 前 | 1

已回答
keep getting error in the covariance: Subscript indices must either be real positive integers or logicals.
It looks as if you have used *cov* as the name of a variable. Do which cov to see if this is the case. You should see...

10 years 前 | 2

| 已接受

已回答
how to make a colorwheel in matlab?
The functions you need are meshgrid, atan2 and hsv2rgb. Possibly also hypot if you want to make the centre bright or dark.

10 years 前 | 0

已回答
unexpected figure with inverted child photo pops up when i run my code
It's because you are assigning a value to *img* but using the value of *image*, which has the side effect of displaying the boy....

10 years 前 | 0

已回答
Why does it not calculate x & y for all values of t?
Your code process all the values of t - the problem is that the calls to disp are outside the loop, so they only show the values...

10 years 前 | 2

| 已接受

已回答
Cylinder unwrapping with imtransform
I haven't tested this, but here's a quick thought: try replacing f = @(x, unused) arcsin(1/x); with f = @(x, unused...

10 years 前 | 0

| 已接受

加载更多