Answered
I am stuck trying to add together all the integers from -10 to 10 using a while-end loop.
If you must do this in a loop, create a variable called TotalSum. Before the loop, say TotalSum = 0; Then inside the...

10 years ago | 0

Submitted


sortwith
Sort elements of several matrices corresponding to the sorting order of one matrix.

10 years ago | 1 download |

0.0 / 5

Answered
index must be a positive integer or logical.
In the loop you try to evaluate y(i+1)=y(i)+h(y(i),k) but |k| equals |0.45|, so that's the problem. Calling h(1...

10 years ago | 0

Answered
Different way of displaying numbers
Try this for three decimal places: num2str(pi,'%0.3f')

10 years ago | 0

| accepted

Answered
How can i find elevation only from latitude and longitude point using matlab codes?
You'll need some sort of digital elevation model (DEM), which is a gridded elevation dataset. Depending on the resolution that ...

10 years ago | 0

| accepted

Answered
TIFF format to DEM info
If you have the Mapping Toolbox you can use <http://www.mathworks.com/help/map/ref/geotiffinfo.html |geotiffinfo|> to get geospa...

10 years ago | 0

Answered
Hi, how can i read each point of lat lon of shapefile so that i can compare first point to next point for simplification process?
Use <http://www.mathworks.com/help/map/ref/shaperead.html |shaperead|> with the |'usegeocoords',true| option. The output will b...

10 years ago | 0

Submitted


Draw a 3D airplane
Draw a very simple 3D airplane and animate it too

10 years ago | 7 downloads |

4.7 / 5
Thumbnail

Submitted


Sound Pressure Level Calculator
Calculates sound pressure level in decibels, given a pressure signal in pascals.

10 years ago | 4 downloads |

3.4 / 5
Thumbnail

Answered
Matlab gives me a blank plot?
You're overwriting |Y| each time through the loop. If you want to keep the loop, try this: t=0:0.01:Ttotal ; for k = ...

10 years ago | 1

| accepted

Answered
How do I change the projection of raster data in MATLAB?
Halushka, The <http://www.mathworks.com/help/map/ref/mfwdtran.html |mfwdtran|> and <http://www.mathworks.com/help/map/ref/mi...

10 years ago | 1

Answered
How can I plot polar stereographic projection?
I did this for the Antarctic in a function called <http://www.mathworks.com/matlabcentral/fileexchange/50126-daily-antarctic-sea...

10 years ago | 0

| accepted

Answered
How to calculate Fourier Transform of an Image ?
You can use <http://www.mathworks.com/help/matlab/ref/fft2.html |fft2|>.

10 years ago | 0

Answered
Why are many of MATLAB's mapping functions reserved for data in geographic coordinates?
I think the answer to this question is that the Mapping Toolbox has never received due attention from TMW. I get the sense that...

10 years ago | 3

| accepted

Answered
Using epsilon in legend
Try this: title(' $\varepsilon_{21}$ ','interpreter','latex')

10 years ago | 1

Answered
Form a tree view of path names?
Have you checked the file exchange site? There are a few options available, e.g. <http://www.mathworks.com/matlabcentral/fileex...

10 years ago | 1

Answered
Volume under an iso surface
This is a sum. Each grid cell has a volume which is its height x width x length. In your case height at a given row and column...

10 years ago | 0

| accepted

Answered
How do you calculate average value of area within a polygon shapefile?
The title of this question and the text of the question seem to be different. I'll try to answer both. If you want the are...

10 years ago | 1

| accepted

Answered
Why are the hour portions of my GMT times not being shown when I export data to Excel?
It looks like exporting dates and times to Excel might require <http://www.mathworks.com/help/matlab/import_export/when-to-conve...

10 years ago | 0

Answered
rank the columns by the means of nonzero values
Use the |mean| function and specify the dimension along which you want to calculate the means. Then use |sort| in the syntax ...

10 years ago | 0

| accepted

Answered
colorbar/colormap issue
I'm guessing the problem is |imsc|. Is that a specialized function you created? What happens if you change that line to ...

10 years ago | 0

Answered
function or code can detect the increment of force equations ?
You could fit a least squares trend line over some predefined range to determine slope. % define some array of times: ...

10 years ago | 0

| accepted

Answered
Plotting 1MHz sine wave
I see the problem. |1/N| is 1/64 and you're trying to populate a vector in steps of 1/N from 0 to 3e-6 when you do t = 0:...

10 years ago | 0

Answered
Map Plot with stem3 and worldmap and geoshow
A couple of notes: 1. Never use |quiverm| because it scales vectors as a function of latitude. It shrinks vectors toward th...

10 years ago | 0

| accepted

Submitted


L8read Landsat 8 Level 1 tiff reader
Easily read full or partial Landsat 8 .tiff images.

10 years ago | 1 download |

5.0 / 5
Thumbnail

Answered
How to populate complete time series with incomplete data
You can get a vector in |datenum| format by t = datenum(YEAR,1,DOY); and if you'd like you can get t into year, month,...

10 years ago | 1

| accepted

Submitted


bedhead
Subglacial pressure head or hydrostatic potential

10 years ago | 3 downloads |

0.0 / 5
Thumbnail

Answered
How to count values in a script?
You can indeed use |sum| if you design your script for it. I'm gonna simplify the problem and consider this case with three age...

10 years ago | 0

Answered
Combining 2 Matrixes to Run in Large Data Set
You define |utcStarts| and |utcEnds| twice, and the second time overwrites the first time. That's why Matlab says |utcStarts| g...

10 years ago | 1

Load more