4 views (last 30 days)

KSSV
on 9 Jul 2020

To load the data read about load, importdata, textscan.

If your raster data matrix is A, to get your formula use:

GDDmax = max(A(:)) ; % this gives max of A

GDDmin = min(A(:)) ; % this gives min of A

E = 4*(GDDmax-A).*(A-GDDmin)/(GDDmax-GDDmin)^2 ;

Image Analyst
on 9 Jul 2020

Opportunities for recent engineering grads.

Apply Today
## 3 Comments

## Direct link to this comment

https://au.mathworks.com/matlabcentral/answers/562217-how-to-make-algorithm-using-raster-file#comment_930707

⋮## Direct link to this comment

https://au.mathworks.com/matlabcentral/answers/562217-how-to-make-algorithm-using-raster-file#comment_930707

## Direct link to this comment

https://au.mathworks.com/matlabcentral/answers/562217-how-to-make-algorithm-using-raster-file#comment_930713

⋮## Direct link to this comment

https://au.mathworks.com/matlabcentral/answers/562217-how-to-make-algorithm-using-raster-file#comment_930713

## Direct link to this comment

https://au.mathworks.com/matlabcentral/answers/562217-how-to-make-algorithm-using-raster-file#comment_930782

⋮## Direct link to this comment

https://au.mathworks.com/matlabcentral/answers/562217-how-to-make-algorithm-using-raster-file#comment_930782

Sign in to comment.