Réponse apportée
Make change for a dollar amount
This question usually comes out a lot in job-interviews. The common method of implementation is using a recursive function. Save...

plus de 11 ans il y a | 3

| A accepté

Réponse apportée
Create equally spaced 2-d array
arrayName=bsxfun(@times,(1:n)',linspace(1,2*pi,100*n))

plus de 11 ans il y a | 0

| A accepté

Réponse apportée
How can I map consecutive elements to a vector value?
That is easy, r and c are the row and column index of X. I am assuming X is of size 22198x41, (since your m is 22198 and your...

plus de 11 ans il y a | 0

| A accepté

Réponse apportée
Creating a function that identifies repeated items in a vector
testVector=[11 22 33 44 55 66 77 99 11 102]; result=(numel(testVector)~=numel(unique(testVector))) if testVector has...

plus de 11 ans il y a | 1

| A accepté

A soumis


loadLandSat8(metaFileName,bandList)
loading LandSat images using the metadata

plus de 11 ans il y a | 1 téléchargement |

0.0 / 5
Thumbnail

A soumis


parseLandSat8MetaData(filename)
Parsing LandSat 8 Meta Data

plus de 11 ans il y a | 1 téléchargement |

5.0 / 5
Thumbnail

Réponse apportée
finding index of min value in a matrix
So, you know what elements of the matrix you want to check? If that is so, then let's say the row and column of those three e...

plus de 11 ans il y a | 1

| A accepté

Réponse apportée
How to count number of devices in a given area ?
If you know the polygon defining the coverage all you need to do is find out if a point falls in that coverage or not. MATLAB...

plus de 11 ans il y a | 0

| A accepté

Réponse apportée
How to delete a set of numbers in the end of nth text file ?
So read the numbers in an array numberArray=myreadingfunction(...); then filter those that you don't want Lets say your ...

plus de 11 ans il y a | 0

| A accepté

Réponse apportée
Circularity of an image
does it have to be circularity? Can you replace circularity with the ratio between major/minor axis length?

plus de 11 ans il y a | 0

| A accepté

Réponse apportée
How can I remove everything except leaves?
Use a combination of hsv and activecontour I=imread('Finger2.png'); hsv=rgb2hsv(I); m=(hsv(:,:,1)>0.08 & hsv(:,:,1)<0...

plus de 11 ans il y a | 1

| A accepté

Réponse apportée
parfor. Error: The variable eavg in a parfor cannot be classified.
your parfor is based on i0 eavg is not being sliced by that. So it doesn't know how to slice eavg and then once it comes out ...

plus de 11 ans il y a | 0

| A accepté

Réponse apportée
Is there a facility witin Matlab(r2014b), which would allow the user to see an entire image display(even using a sliding window)?
Check <http://www.mathworks.com/help/images/ref/imscrollpanel.html imscrollpanel()>. Also http://www.mathworks.com/help/image...

plus de 11 ans il y a | 0

| A accepté

Réponse apportée
How to concatenate or save iteration from a loop when the answers are vectors?
add an extra dimension So instead of Answer(i)= .... write Answer(i,j)= .... where j is the loop index. ...

plus de 11 ans il y a | 0

| A accepté

Réponse apportée
Creating a gradient ascent matlab function?
It is the same as gradient descent except that you don't multiply your step by a negative sign. So your step has the same sign a...

plus de 11 ans il y a | 0

| A accepté

Réponse apportée
png to tif convertion
I=imread('image.png'); imwrite(I,'image.tif','tif');

plus de 11 ans il y a | 0

| A accepté

Réponse apportée
How to calculate period of signal with matlab
use autocorrelation. If your data is periodic you should get high correlation once the lag time matches the period. here is an e...

plus de 11 ans il y a | 10

| A accepté

Réponse apportée
Convert nearly created string in a structure format to a variable name in a for loop
I code it something like this: (note the use of ( ) while referencing structure fields with string, such as *A.(carNumber).speed...

plus de 11 ans il y a | 1

| A accepté

Réponse apportée
How to read and write this file?
[h11,h12,h22]=textread('data.txt','%f %f %f','headerlines',2);

plus de 11 ans il y a | 1

| A accepté

Réponse apportée
Sparse Arrays - Specific Function?
s=sprand(100,100,0.05); s(sub2ind(size(s),1:100,1:100))=1.0; *or* s=sprand(100,100,0.05); s(1:101:(100*100))=1.0...

plus de 11 ans il y a | 0

| A accepté

Réponse apportée
Going from switch case construct to loop?
put your current code in a function such as function outputMorse=char2morse(inputeChar) So this function gets a characte...

plus de 11 ans il y a | 0

| A accepté

Réponse apportée
what is the x-axis in the figure represent ? frequency, samples?
the way that you are using stem function, the x axis would be the index number. So your xFFT is an array of 201 double precis...

plus de 11 ans il y a | 1

| A accepté

Réponse apportée
For what reason an ODE solver could run for ever?
It could be various reason. How do you store the variables? Once running the code for twice the time t_max=2000, are you sto...

plus de 11 ans il y a | 0

| A accepté

Réponse apportée
how to convert a series of RGB images into grayscale and save them?
Actually you are only saving the last snap shot as grayscale. Change your code to this: for i=1:10 a=getsnapshot (cam...

plus de 11 ans il y a | 1

| A accepté

Réponse apportée
how can i validate in my code if a user inputs non numeric values? how can i limit just for 4 values?
use <http://www.mathworks.com/help/matlab/ref/validateattributes.html validateattributes>. You can check for both type and si...

plus de 11 ans il y a | 0

| A accepté

Réponse apportée
recognize count white dots in grey background
Generally this should work. Use graythresh and im2bw to make a mask of white dots and then use bwconncomp to count them. Chec...

plus de 11 ans il y a | 0

| A accepté

Réponse apportée
how to multiply matrix vectors with one column?
M*B'

plus de 11 ans il y a | 0

| A accepté

Réponse apportée
Coding Euler's Method!!
Your code is correct. What is x0 = [2;0;0]; at the end though. Here is a modified version of your code. It is modified in...

plus de 11 ans il y a | 0

| A accepté

Réponse apportée
Three ways to do the same integration leading to three different speeds: why?
Calling a function has some overhead. So you are adding that overhead 1,000,000 times and that's why it takes longer. The sam...

plus de 11 ans il y a | 0

| A accepté

Réponse apportée
Geo or Map Raster Reference Orientation
Look at it this way, you have A of size MxN. then each element of A can be referenced as A(r,c) or A(1,1) A(1,2) A(1,3) ...

plus de 11 ans il y a | 0

| A accepté

Charger plus