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

output of interp2 is single - why?

It's because of your xb,yb,zb, xcovis and ycovis are single. If you want your output in double, just use double before using int...

output of interp2 is single - why?

It's because of your xb,yb,zb, xcovis and ycovis are single. If you want your output in double, just use double before using int...

9 days ago | 0

Question

Significance of writing (_,'uni',0)

A' ans = 1×10 cell array '16' '16' '16' '4' '17' '17' '6' '9' '17' '17' ...

2 months ago | 1 answer | 0

Question

Is this right way of integrating throughout the depth

I have to integrate matrix A throughout the depth. [integration from depth to top] of A A=[0 .00852,0.00957,0.01550,0.0...

3 months ago | 1 answer | 0

Question

Error using fill plot on log scale

I am trying to use fill on the X log scale but after changing X axis on log scale, the shade becomes invisible. <</matlabcen...

3 months ago | 0 answers | 0

Question

Running bash commands in MATLAB command window

Is there any way to run all linux commands in MATLAB. I have installed few more programming language in linux. Can I use ...

4 months ago | 1 answer | 0

Answered

4 dimensional matrix multiplication

Use this function from file exchange <https://in.mathworks.com/matlabcentral/fileexchange/25977-mtimesx-fast-matrix-multiply-...

4 dimensional matrix multiplication

Use this function from file exchange <https://in.mathworks.com/matlabcentral/fileexchange/25977-mtimesx-fast-matrix-multiply-...

5 months ago | 0

Question

Divide a matrix with an array along a specific dimension

A=rand(10,20,30); B=[1:30]; I want to divide A with B along the third dimension. I got the required result using loop. ...

5 months ago | 2 answers | 0

Answered

Separate yearly data into months in different columns

"Jan 1999 in one column then Feb 1999 in 2nd and so on till Dec 2003......" This never be possible because the length of elemen...

Separate yearly data into months in different columns

"Jan 1999 in one column then Feb 1999 in 2nd and so on till Dec 2003......" This never be possible because the length of elemen...

5 months ago | 0

Answered

Represent Data in Circle with Colormap

You can define your own colormap or you can use predefined colormaps too colormap jet(15) %if you want 15 colors on t...

Represent Data in Circle with Colormap

You can define your own colormap or you can use predefined colormaps too colormap jet(15) %if you want 15 colors on t...

7 months ago | 0

Answered

How to plot multiline with variable inputs

Up to my understanding of your question, I think you are struggling to plot. You can try this one. Sorry, if I misunderstood ...

How to plot multiline with variable inputs

Up to my understanding of your question, I think you are struggling to plot. You can try this one. Sorry, if I misunderstood ...

7 months ago | 0

Answered

histcounts error in place of histc

Try this. A=randi(5,1,15) a=histcounts(A) bar(unique(A),a) If you are facing problem using histcounts, then yo...

histcounts error in place of histc

Try this. A=randi(5,1,15) a=histcounts(A) bar(unique(A),a) If you are facing problem using histcounts, then yo...

7 months ago | 0

Answered

How to plot a graph for one set of data against two y axes, one a function of the other?

You can use plotyy predefined function to plot on 2 Y axis. x=(0:10:300); figure() yyaxis left plot(x,randi(...

How to plot a graph for one set of data against two y axes, one a function of the other?

You can use plotyy predefined function to plot on 2 Y axis. x=(0:10:300); figure() yyaxis left plot(x,randi(...

7 months ago | 0

Answered

finding the max values

arr= [ 1 9 4 7 38 8] k= 4; [arr1 b]=sort(arr,'descend'); b1=b(1:k) arr(sort(b1,'ascend'))

finding the max values

arr= [ 1 9 4 7 38 8] k= 4; [arr1 b]=sort(arr,'descend'); b1=b(1:k) arr(sort(b1,'ascend'))

7 months ago | 0

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

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

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

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

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

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

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

7 months ago | 0

Submitted

TimeSaving ToolBox

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

7 months ago | 8 downloads |

Submitted

spatialcorr2( varargin)

Spatial Correlation of 2D datasets (without having timesteps)

7 months ago | 2 downloads |

Submitted

Scatter(varargin)

Plot the fitting line with statistics on Scatter plot

7 months ago | 0 downloads |

Submitted

ncdispread( varargin )

Display and load all the variables of nc file

7 months ago | 0 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...

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

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

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

7 months ago | 0

| accepted