답변 있음
Plotting piece-wise functions with absolute value????
To fix your existing code, with the loop, you need y(k) = abs(x(k)); and y(k) = x(k).^2; Your condition x(k) > 2...

대략 11년 전 | 0

답변 있음
subtract two identical float number it gives a very small number not a zero
It's round-off error. See, for example <http://www.mathworks.com/matlabcentral/answers/102419-how-do-i-determine-if-the-error-in...

대략 11년 전 | 0

제출됨


Rotate images with automatic cropping
The blank triangles that appear in the corners of rotated images are cropped away.

대략 11년 전 | 다운로드 수: 2 |

4.0 / 5
Thumbnail

답변 있음
How to upscale the image and make it higher resolution?
You can't truly increase the resolution of an image, because in making the sampled digital image information at higher resolutio...

대략 11년 전 | 1

| 수락됨

답변 있음
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...

대략 11년 전 | 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');

대략 11년 전 | 2

답변 있음
how can convert matrix of image from douple to single
If imageDouble is the original image, use imageSingle = single(imageDouble);

대략 11년 전 | 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...

대략 11년 전 | 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));

대략 11년 전 | 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...

11년 초과 전 | 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...

11년 초과 전 | 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...

11년 초과 전 | 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 *...

11년 초과 전 | 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...

11년 초과 전 | 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...

11년 초과 전 | 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...

11년 초과 전 | 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...

11년 초과 전 | 답변 수: 1 | 0

1

답변

답변 있음
Indexing a 3D array with a vector
c = b(:,3,:); c(c > 5) = -100; b(:,3,:) = c;

11년 초과 전 | 0

| 수락됨

제출됨


Gradients with Gaussian smoothing
Grey-level gradients are estimated using Gaussian smoothing followed by symmetric differencing.

11년 초과 전 | 다운로드 수: 1 |

4.33333 / 5

답변 있음
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...

11년 초과 전 | 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...

11년 초과 전 | 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...

11년 초과 전 | 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 &&.

11년 초과 전 | 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...

11년 초과 전 | 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...

11년 초과 전 | 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...

11년 초과 전 | 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...

11년 초과 전 | 2

| 수락됨

답변 있음
How to get If Then statements to work on a vector
y = x; y(x > 5) = 5;

11년 초과 전 | 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()...

11년 초과 전 | 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 ...

11년 초과 전 | 1

더 보기