Community Profile

photo

ANKUR KUMAR


National Institute of Technology, Rourkela

110 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

Contact

ANKUR KUMAR's Badges

  • 3 Month Streak
  • Knowledgeable Level 2
  • Revival Level 2
  • Thankful Level 2
  • First Answer

View details...

Contributions in
View by

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

4 days ago | 1 answer | 0

1

answer

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

6 days ago | 0 answers | 0

0

answers

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

1 month ago | 1 answer | 0

1

answer

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

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

2 months ago | 2 answers | 0

2

answers

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

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

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

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

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

4 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'))

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

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

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

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

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

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

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

4 months ago | 0

Submitted


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

4 months ago | 7 downloads |

Thumbnail

Submitted


spatialcorr3(varargin)
Spatial correlation having timesteps

4 months ago | 2 downloads |

Submitted


spatialcorr2( varargin)
Spatial Correlation of 2D datasets (without having timesteps)

4 months ago | 2 downloads |

Submitted


Scatter(varargin)
Plot the fitting line with statistics on Scatter plot

4 months ago | 2 downloads |

Submitted


ncdispread( varargin )
Display and load all the variables of nc file

4 months ago | 0 downloads |

Submitted


nccreatewrite(varargin)
Create a .nc file

4 months ago | 1 download |

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

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

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

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

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

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

4 months ago | 0

| accepted

Load more