99 total contributions since 2017

Ankur Kumar, a student of National Institute of Technology, Rourkela is doing his masters degree in Atmospheric Sciences in the Department of Earth and Atmospheric Science.

Ankur is also an author of best selling novel, "The Emotions" which one can read from Amazon.

https://www.amazon.in/Emotions-Ankur-Kumar/dp/9385783149

Answered

Print point numbers with velocities

I haven't get the your question completely. Upto my understanding, you are trying to plot something with respect to something. ...

Print point numbers with velocities

I haven't get the your question completely. Upto my understanding, you are trying to plot something with respect to something. ...

3 days ago | 0

Answered

Write A Matlab Function of a matrix

A=randi(25,25,100); ss=func(A,10,20) function S = func(A,m,n) B=A(1:m,1:n); C=B(:); id=unique(C) S=sort(...

Write A Matlab Function of a matrix

A=randi(25,25,100); ss=func(A,10,20) function S = func(A,m,n) B=A(1:m,1:n); C=B(:); id=unique(C) S=sort(...

4 days ago | 1

Answered

Spatial Correlation between two variables

Here you can get timesaving toolbox in which spatialcorr3 is there. You can use this function to get the spatial correlation of ...

Spatial Correlation between two variables

Here you can get timesaving toolbox in which spatialcorr3 is there. You can use this function to get the spatial correlation of ...

4 days ago | 0

Answered

Matlab Function fibonacci series

fibon(41) function S = fibon(N) S(1)=1; S(2)=1; for ii=1:N-2 S(ii+2)=S(ii+1)+S(ii) end end If ...

Matlab Function fibonacci series

fibon(41) function S = fibon(N) S(1)=1; S(2)=1; for ii=1:N-2 S(ii+2)=S(ii+1)+S(ii) end end If ...

4 days ago | 0

Answered

How to plot 3 y axis or more in a single graph?

Use this function from the file exchange <https://in.mathworks.com/matlabcentral/fileexchange/9016-addaxis> plot((1:5...

How to plot 3 y axis or more in a single graph?

Use this function from the file exchange <https://in.mathworks.com/matlabcentral/fileexchange/9016-addaxis> plot((1:5...

4 days ago | 1

| accepted

Answered

M(t)=M(0) × e^(-t/T) + S × T × (1 - e^(-t/T)) How can I plot (T,M) graphic in MATLAB?

According to the equation written in the image, clc clear m_zero=5; S=25; k=2; for t=1:500 as(t)=m_zero*...

M(t)=M(0) × e^(-t/T) + S × T × (1 - e^(-t/T)) How can I plot (T,M) graphic in MATLAB?

According to the equation written in the image, clc clear m_zero=5; S=25; k=2; for t=1:500 as(t)=m_zero*...

8 days ago | 1

Answered

problem with vectors and dimensions

You are getting an error in this line R=R+(a(i)*Ck(w(i):p(i))); The dimension of R is 1*6 and dimension of *(a(i)*Ck(w(i...

problem with vectors and dimensions

You are getting an error in this line R=R+(a(i)*Ck(w(i):p(i))); The dimension of R is 1*6 and dimension of *(a(i)*Ck(w(i...

9 days ago | 0

Submitted

TimeSaving ToolBox

Bunch of functions which can save your lots of time. Get rid of writing long commands every time.

9 days ago | 9 downloads |

Submitted

spatialcorr2( varargin)

Spatial Correlation of 2D datasets (without having timesteps)

9 days ago | 3 downloads |

Submitted

Scatter(varargin)

Plot the fitting line with statistics on Scatter plot

9 days ago | 2 downloads |

Submitted

ncdispread( varargin )

Display and load all the variables of nc file

9 days ago | 7 downloads |

Answered

cell contents assignment to a non-cell array object

C{1}=[0 .1 0]; C{2}=[1 0 .10]; K{1}=[.001 .3 0]; The errors are in these above codes. You already have defined C in doub...

cell contents assignment to a non-cell array object

C{1}=[0 .1 0]; C{2}=[1 0 .10]; K{1}=[.001 .3 0]; The errors are in these above codes. You already have defined C in doub...

10 days ago | 0

Answered

How to plot 3 parameters on same axis having different values

You can use plotyy function yyaxis left plot(x,blt,'r','linewidth',1.5) yyaxis right plot(x,tchp,'b','linewid...

How to plot 3 parameters on same axis having different values

You can use plotyy function yyaxis left plot(x,blt,'r','linewidth',1.5) yyaxis right plot(x,tchp,'b','linewid...

10 days ago | 0

Answered

how to break and rezero x-axis

You can break your x axis by using this function from file exchange <https://in.mathworks.com/matlabcentral/fileexchange/4290...

how to break and rezero x-axis

You can break your x axis by using this function from file exchange <https://in.mathworks.com/matlabcentral/fileexchange/4290...

10 days ago | 1

Answered

How to group variables in a same cluster ?

A=[1 2; 2 4; 3 4; 4 1; 5 1; 6 4; 7 4; 8 2; 9 1; 10 1] id=unique(A(:,2)) for ii=1:length(id) iid{ii}=A(find(A(:,2)=...

How to group variables in a same cluster ?

A=[1 2; 2 4; 3 4; 4 1; 5 1; 6 4; 7 4; 8 2; 9 1; 10 1] id=unique(A(:,2)) for ii=1:length(id) iid{ii}=A(find(A(:,2)=...

10 days ago | 0

| accepted

Answered

Normalizing data in y-axis to become 0-100% instead of frequency

Y_axis_data=randi(25,1,2000); Y_axis_normalize=(Y_axis_data/(numel(Y_axis_data)))*100

Normalizing data in y-axis to become 0-100% instead of frequency

Y_axis_data=randi(25,1,2000); Y_axis_normalize=(Y_axis_data/(numel(Y_axis_data)))*100

11 days ago | 0

Answered

how to convert decimal degree to utm using loops ?

Firstly do the meshgrid of lon lat. [lon_new,lat_new]=meshgrid(lon,lat); for i=1:size(lon_new,1) for ii=...

how to convert decimal degree to utm using loops ?

Firstly do the meshgrid of lon lat. [lon_new,lat_new]=meshgrid(lon,lat); for i=1:size(lon_new,1) for ii=...

11 days ago | 0

| accepted

Answered

Write the function sideOf which accepts one side of a right-angle triangle, a or b, and the hypotenuse c as input arguments and outputs the other side b or a.

sideOf(3,5) function b=sideOf(a,c) b=sqrt(c^2 - a^2); end Just one line function. Use the above script...

Write the function sideOf which accepts one side of a right-angle triangle, a or b, and the hypotenuse c as input arguments and outputs the other side b or a.

sideOf(3,5) function b=sideOf(a,c) b=sqrt(c^2 - a^2); end Just one line function. Use the above script...

12 days ago | 0

Answered

Index exceeds matrix dimensions problem with this code below :-

c =[1 1 1 6; 2 4 2 16; -1 5 -4 -3] N = size(c,1) M=size(c,2) tol= 1e-6; for ii=1:M-1 ii ...

Index exceeds matrix dimensions problem with this code below :-

c =[1 1 1 6; 2 4 2 16; -1 5 -4 -3] N = size(c,1) M=size(c,2) tol= 1e-6; for ii=1:M-1 ii ...

12 days ago | 0

| accepted

Answered

How to save all the results from the loop into a vector

For saving the results in vector form after completing every loop, then just use A(i,:) example: A=randi(25,10,20); ...

How to save all the results from the loop into a vector

For saving the results in vector form after completing every loop, then just use A(i,:) example: A=randi(25,10,20); ...

15 days ago | 0

Answered

Why do I get markers on the second axis and how do I stop them?

You can do use the same marker properties. This is just an example to plot the similar using the same program with using differ...

Why do I get markers on the second axis and how do I stop them?

You can do use the same marker properties. This is just an example to plot the similar using the same program with using differ...

17 days ago | 0

| accepted

Answered

Contourf colour doesn't display correct values.

I have tried to plot the similar contour using your program and I am getting the correct contour. P=randi(60,20,30); ...

Contourf colour doesn't display correct values.

I have tried to plot the similar contour using your program and I am getting the correct contour. P=randi(60,20,30); ...

17 days ago | 0

| accepted

Answered

Random number between 0 and the value of another variable

As per my knowledge, there is no any predefined function which do your work. You can write the script as well or you can write f...

Random number between 0 and the value of another variable

As per my knowledge, there is no any predefined function which do your work. You can write the script as well or you can write f...

19 days ago | 1

Answered

what does it mean by [ ] in the following code

It returns a column vector containing the smallest element in each row along third dimension. Read this for more details <htt...

what does it mean by [ ] in the following code

It returns a column vector containing the smallest element in each row along third dimension. Read this for more details <htt...

19 days ago | 0

Answered

How to plot boxplot side by side of the two data set?

Read this thread to get on the result. <https://in.mathworks.com/matlabcentral/answers/289642-multiple-boxplots-on-same-figur...

How to plot boxplot side by side of the two data set?

Read this thread to get on the result. <https://in.mathworks.com/matlabcentral/answers/289642-multiple-boxplots-on-same-figur...

20 days ago | 0

Answered

Is it possible to save images into a single pdf with MATLAB without margin?

My suggestion is to save in tiff or png format to control the resolution of image. print('my_image','-dtiff','-r150') R...

Is it possible to save images into a single pdf with MATLAB without margin?

My suggestion is to save in tiff or png format to control the resolution of image. print('my_image','-dtiff','-r150') R...

20 days ago | 0

Answered

BMI graph, 3 variables on 2D graph

If you want to use 3 variables on 2D plot, then you can use contour or contourf or surf or surfc. clc clear lat=(1:10...

BMI graph, 3 variables on 2D graph

If you want to use 3 variables on 2D plot, then you can use contour or contourf or surf or surfc. clc clear lat=(1:10...

20 days ago | 0

Answered

Make r a 1x5 vector using rand. Find the elements that have values <0.5 and set those values to 0 (use find).

Use any of these two codes will get you to the desired result. A=rand(1,5) A(A<0.5)=0 or A(find(A<0.5))=0

Make r a 1x5 vector using rand. Find the elements that have values <0.5 and set those values to 0 (use find).

Use any of these two codes will get you to the desired result. A=rand(1,5) A(A<0.5)=0 or A(find(A<0.5))=0

20 days ago | 0

| accepted