Community Profile

photo

Nurul Ain Basirah Zakaria


Last seen: 1 year ago Active since 2020

Statistics

  • Thankful Level 3

View badges

Content Feed

View by

Question


function doesnt works well
Hi, I am using this function; function [s,tint] = spei(t,prec,pevap,varargin) But, I am not sure what is varargin works for?...

2 years ago | 2 answers | 0

2

answers

Question


Not enough input arguments
function [spei_index]=calculate_spei(t,prec,pevap,varargin); [nlon, nlat, n]=size(prec); prec=squeeze(prec); for i=1:nlon ...

2 years ago | 0 answers | 0

0

answers

Question


looping for a function
Hi, can I apply [output1, output2] = calculate(b); in a 3D data such as 80x30x400 data?

3 years ago | 2 answers | 0

2

answers

Question


intensity of dought events
Hi, I have a drought duration over time file. So, it is the drought duration event where it contains consecutive months of negat...

3 years ago | 2 answers | 0

2

answers

Question


extract without change my NaN value
Hi, I have a data of 420x32x20 (precip over timexlatxlon) And then, I need to apply this formula into each grid: %F=n/N×100 %...

3 years ago | 2 answers | 0

2

answers

Question


how do i get MATLAB to extract a specific value in multidimension array or matrix
Hi, i have a matric 420x32x20 then i want to extract the value form -1 to -4 thus, i tried for i=1:32 for j=1:20 idx(:,i,j)...

3 years ago | 2 answers | 0

2

answers

Question


using the vertical bars in calculation
Hi, how can I calculate, i mean i want to include the vertical bar | x |, for instance, | 1/40 |

3 years ago | 1 answer | 0

1

answer

Question


applying the formula into the data
Hi. Can someone please help me to understand this formula: where; SSPI is SPI value below the threshold K is drought thre...

3 years ago | 0 answers | 0

0

answers

Question


make a better map
hi, how can i edit and change the colormap to make it better? this is my script: ax = axes(); Spi3=permute(New_freq,[2 3 1]);...

3 years ago | 1 answer | 0

1

answer

Question


Calculate frequency for each gridded
Hi. Is it possible that I want to, Change the value of -1.00 untill -3.00 tu 1 and the rest as 0. Then, I want to know how much...

3 years ago | 1 answer | 0

1

answer

Question


fit the y=mx+c in time series
Hi. I have 420x1 data of time series. How can I fit y=mx+c line in the plotting?

3 years ago | 1 answer | 0

1

answer

Question


how to fit trend line in time series
Hi. I plotted a figure of my time series but I want to calculate and fit in the trend line. Can I use the polyfit to d...

3 years ago | 1 answer | 0

1

answer

Question


calculating frequency in matlab
Hi. Ive calculated the spi index in matlab. And now I want to calculate the frequency (moderate, severe and strong) drought with...

3 years ago | 0 answers | 0

0

answers

Question


change start point of plot
Hi how can I change the Jan to start at 0?

3 years ago | 1 answer | 0

1

answer

Question


Root Mean Square Error
Hi, I want to ask if it is possible for me to find the RMSE for observation=444x15x7 model=300x15x7

3 years ago | 0 answers | 0

0

answers

Question


Grouping data by value
Hi. I have 432x1 data. I need to grouping the data. for example; -0.989088822111364 -1.16881053159657 -0.687960193675098 0....

3 years ago | 2 answers | 0

2

answers

Question


How to change my x axis value
Hello. Is it possible for me to change my x axis value? My data is from 1982-2017. I plot and came out like this: but I wan...

3 years ago | 2 answers | 0

2

answers

Question


Calculation using the spi script
Hello. I'm currently using this script to calculate my SPI but it seems not working on my 3d data. My data size is: 288x32x26 ...

3 years ago | 0 answers | 0

0

answers

Question


How to change my color map
Hi. How to change my colormap? I want to reverse the color, -2 should be the orange one. Can anyone teach me how to do it. I've...

3 years ago | 1 answer | 0

1

answer

Question


Average for 4d data
Hi! How can I calculate the average for a 160x140x1x12 which are lat,lon,year and month. I want to calculate the average of mont...

3 years ago | 1 answer | 0

1

answer

Question


How to extract certain time in matrix data
Hi. I have a 476x160x140 precipittaion data (precip/time,lon,lat), from 1981 to 2011 in nc file. Can I extract certain data for...

3 years ago | 0 answers | 0

0

answers

Question


How can plot precipitation data with latitude longitude information? I have matrix of precipitation over the time,latitude and longitude all are in 470*160*140 dimensions.
How can plot precipitation data with latitude longitude information? I have matrix of precipitation over the time,latitude and l...

3 years ago | 2 answers | 0

2

answers

Question


Why do I get "Array indices must be positive integers or logical values"
J=rand(9); K=rand(12); L=rand(10); a=meshgrid(J,K,L); sc=3; [n,m,p0]=size(a); SI=zeros(n,m,p0); for ii=1:n for jj=1:m t...

3 years ago | 1 answer | 0

1

answer

Question


How to loop through cell arrays 3d
I have a 444x200x400 cell array, called chirps, that I am trying to loop through and do an equation on each cell. How would I do...

3 years ago | 1 answer | 0

1

answer