A résolu


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

presque 14 ans il y a

A résolu


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

presque 14 ans il y a

A résolu


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

presque 14 ans il y a

A résolu


Determine if input is odd
Given the input n, return true if n is odd or false if n is even.

presque 14 ans il y a

A résolu


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

presque 14 ans il y a

A résolu


How to find the position of an element in a vector without using the find function
Write a function posX=findPosition(x,y) where x is a vector and y is the number that you are searching for. Examples: fin...

presque 14 ans il y a

Réponse apportée
image toolbox help
type doc images in the command window.

environ 14 ans il y a | 0

Réponse apportée
plotting more data from large data
Hi doc gscatter hope this helps. Regards, W.

environ 14 ans il y a | 0

Réponse apportée
What does +(A>0) do?
I often do this to convert a logical matrix to double. However, I just tried and realized that this is slower than A = double(A>...

environ 14 ans il y a | 1

Réponse apportée
error using imsubtract
Hi Megah, apparently both variables don't have the same class. Try image3 = imsubtract(im2double(image1),im2double(BWfinal)...

plus de 14 ans il y a | 0

Réponse apportée
Calculate the indirect distance between two points
Bahare, you might find this contribution interesting: <http://www.mathworks.com/matlabcentral/fileexchange/8625-shortest-pat...

plus de 14 ans il y a | 0

Réponse apportée
Ordered connected components
Hi Dustin, I don't have MATLAB at hand right now, so I cannot try, but I think bwboundaries should solve your problem. [...

plus de 14 ans il y a | 0

Réponse apportée
Graph analysis question
I just tried your example. While results of a kmeans clustering don't look too promising, the function clusterdata works quite w...

plus de 14 ans il y a | 0

Réponse apportée
Overlay digital elevation model on hillshade
Hi Ajay, you might want to check TopoToolbox, which includes such a function. <http://physiogeo.unibas.ch/topotoolbox/> ...

plus de 14 ans il y a | 0

Réponse apportée
Count black and white pixels on a image
How about using *blockproc* to get the number of white pixels (in case you have the image processing toolbox)? A = full(spran...

plus de 14 ans il y a | 1

Question


Keeping k largest values in each column of a sparse matrix
Hi everyone, I am trying to implement an algorithm that involves a pruning of a large sparse matrix. The pruning scheme shoul...

plus de 14 ans il y a | 1 réponse | 0

1

réponse

Réponse apportée
data correction
Hi, you can identify the NaNs using the function isnan. I = isnan(dem); % where dem is the digital elevation model The inpa...

plus de 14 ans il y a | 0

Réponse apportée
Problem on fuzzy inference calculations ..
Hi, the error message says all: The first input must be a defined DOUBLE matrix Is the variable input in double format? ...

plus de 14 ans il y a | 1

| A accepté

Réponse apportée
finding neighbor of a position
Hi, you might find this function useful. <http://www.mathworks.com/matlabcentral/fileexchange/16991-neighbor-indexing> ...

plus de 14 ans il y a | 1

Réponse apportée
Connect bwlabeled components
I'd start with using the function bwlabeln to label the connected components in the 3d. This, however, requires them to never ov...

plus de 14 ans il y a | 0

Réponse apportée
straighten curved Image
This is not trivial and I think you should show what you have done so far. If you haven't really started yet, you may want to lo...

plus de 14 ans il y a | 0

Réponse apportée
correlation coefficient
Hi, doc corrcoef Best regards, W.

plus de 14 ans il y a | 1

| A accepté

Réponse apportée
how to draw a grid in MATLAB???
Hi, take a look at Steve's blog, where he describes how to generate a pixel grid. Perhaps, this is what you want. <http://...

plus de 14 ans il y a | 1

Réponse apportée
Kriging
To my knowlegde there is no comprehensive geostatistical software written in Matlab. I would always use packages such gstat or g...

plus de 14 ans il y a | 2

Réponse apportée
How to plot a 2D vector-field and exclude zero-vectors (dots) in the graph?
How about: I = ~(T(:,3)==0 & T(:,4)==0); quiver(T(I,1),T(I,2),T(I,3),T(I,4)); cheers, Wolfgang

plus de 14 ans il y a | 2

| A accepté

Réponse apportée
Is there a way to prevent or circumvent the formation of long edges in a Deluanay Triangulation?
Hi AJP, without knowing what exactly yoou want to do, I like to link to a tool that was extremely helful to me. <http://w...

plus de 14 ans il y a | 0

Réponse apportée
TSP using GA
If this is so urgent for you, did you anything to find available code? Apparently not. Searching google with "tsp matlab ga" dir...

plus de 14 ans il y a | 0

Réponse apportée
Edge direction
Hi, to extract edges of any direction, you just need to choose the right structuring element for a morphological opening. E....

plus de 14 ans il y a | 3

| A accepté

Réponse apportée
How to make a 2-d binary shape a little more round?
You could also use a median filter to remove small objects and irregular boundaries. In a BW image, the median image would act l...

plus de 14 ans il y a | 0

Réponse apportée
Locating the end points of a bridge-like structure in an image
Hi G, you might identify these two points by calculating a skeletonization of your BW-image. SK = bwmorph(BW,'skel',inf...

plus de 14 ans il y a | 0

Charger plus