# Nurul Ain Basirah Zakaria

**Statistics**

**MATLAB Answers**

**24** Questions

**0** Answers

RANK**62,629**

of 272,986

REPUTATION**0**

CONTRIBUTIONS

**24** Questions

**0** Answers

ANSWER ACCEPTANCE **
45.83%
**

VOTES RECEIVED**0**

RANK

of 18,440

REPUTATION**N/A**

AVERAGE RATING**0.00**

CONTRIBUTIONS**0** Files

DOWNLOADS **0**

ALL TIME DOWNLOADS**0**

RANK

of 122,389

CONTRIBUTIONS

**0** Problems

**0** Solutions

SCORE**0**

NUMBER OF BADGES**0**

CONTRIBUTIONS**0 Posts**

CONTRIBUTIONS**0** Public Channels

AVERAGE RATING

CONTRIBUTIONS**0** Highlights

AVERAGE NO. OF LIKES

**Content Feed**

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

1 year ago | 2 answers | 0

### 2

answersQuestion

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

1 year ago | 0 answers | 0

### 0

answersQuestion

looping for a function

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

1 year ago | 2 answers | 0

### 2

answersQuestion

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

1 year ago | 2 answers | 0

### 2

answersQuestion

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

2 years ago | 2 answers | 0

### 2

answersQuestion

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

2 years ago | 2 answers | 0

### 2

answersQuestion

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 |

2 years ago | 1 answer | 0

### 1

answerQuestion

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

2 years ago | 0 answers | 0

### 0

answersQuestion

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]);...

2 years ago | 1 answer | 0

### 1

answerQuestion

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

2 years ago | 1 answer | 0

### 1

answerQuestion

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?

2 years ago | 1 answer | 0

### 1

answerQuestion

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

2 years ago | 1 answer | 0

### 1

answerQuestion

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

2 years ago | 0 answers | 0

### 0

answersQuestion

change start point of plot

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

2 years ago | 1 answer | 0

### 1

answerQuestion

Root Mean Square Error

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

2 years ago | 0 answers | 0

### 0

answersQuestion

Grouping data by value

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

2 years ago | 2 answers | 0

### 2

answersQuestion

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

2 years ago | 2 answers | 0

### 2

answersQuestion

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

2 years ago | 0 answers | 0

### 0

answersQuestion

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

2 years ago | 1 answer | 0

### 1

answerQuestion

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

2 years ago | 1 answer | 0

### 1

answerQuestion

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

2 years ago | 0 answers | 0

### 0

answersQuestion

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

2 years ago | 2 answers | 0

### 2

answersQuestion

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

2 years ago | 1 answer | 0

### 1

answerQuestion

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

2 years ago | 1 answer | 0