Community Profile

photo

ANKUR KUMAR


Last seen: 3일 전

NASA IMPACT

224 2017 이후 총 참여 횟수

Researching with NASA IMPACT |
MATLAB for fun | Python for research |

연락

ANKUR KUMAR's 배지

  • Personal Best Downloads Level 2
  • First Review
  • 5-Star Galaxy Level 1
  • First Submission
  • Pro
  • Revival Level 3
  • Solver
  • Knowledgeable Level 3
  • Thankful Level 3
  • 3 Month Streak
  • First Answer

세부 정보 보기...

참여 게시물
보기 기준

답변 있음
Does cell2mat work in Matlab 2019?
It is working well for me. C = {[1], [2 3 4]; [5; 9], [6 7 8; 10 11 12]} A = cell2mat(C) 1 2 3 4 ...

6일 전 | 0

답변 있음
Trying to add color gradient to patch(isosurface))
Not sure about the exact what you wish to plot. But you can give it a try to plot using imagesc, use the gray colormap to plot. ...

6일 전 | 0

답변 있음
Predetermine axis limits without plotting
You can give it a try to add small value to the maximum value of the array. It can either be 10% or 20% of the extreme. x_vals...

6일 전 | 0

답변 있음
How to average each row from two indivisual comlum vectors?
vector1=[1,2,3,4] vector2=[4,3,2,1] output= nanmean(cat(1,vector1,vector2))

6일 전 | 0

답변 있음
how to find derivative of a function and ploting the surface of function and its derivative
In order to plot a surface, you can use the below commands: [X,Y] = meshgrid(1:0.5:10,1:20); Z = sin(X) + cos(Y); surf(X,Y,Z)...

6일 전 | 1

답변 있음
Changing input data sample from the same dataset
SInce you have not attached sample data, that is why I am generating some random dataset like yours. dataset=randi(5,23,6); dat...

6일 전 | 0

| 수락됨

답변 있음
Onramp problem 14.1 and 14.2 plotting problems
Few points I need to mention: 1) You are calculating R1_av as a function of u, so if you use the below chunk of code, it will p...

10일 전 | 2

답변 있음
How to change datenum to normal date format?
You can use this function from the matlab file exchange to read time from a ncetcf file in user specified format: https://in.ma...

10일 전 | 1

제출됨


ncreadtime
This function helps user to read the time variable in netcdf file in a specific matlab readable format

10일 전 | 다운로드 수: 0 |

답변 있음
For loop for hilb matrix
for i = 5:5:40 output_mat=hilb(i); % if you wish to store in cell array, uncomment the below line output_mat_cell{i...

10일 전 | 0

답변 있음
How to create nc file having lat, long, time, and 2D matrix
I hope this helps. [data]=xlsread('test.csv'); lat=data(2,2:end); lon=data(1,2:end); vardata=data(3:end,2:end); vardata(:,s...

2년 이하 전 | 0

답변 있음
Extract data by shapefile
You can use maskregion function, which mask out the data as per your shapefile. Example you can refer to for your convenience ...

2년 이하 전 | 0

제출됨


maskregion
maskregion mask out the data in the nc file as per the shape file provided as the fourth argument

2년 이하 전 | 다운로드 수: 15 |

Thumbnail

제출됨


cropregion
cropregion crops the data in the nc file as per the bounding % box provided as the fourth argument

2년 이하 전 | 다운로드 수: 8 |

Thumbnail

제출됨


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

2년 이하 전 | 다운로드 수: 3 |

제출됨


nccreatewrite(varargin)
Create a .nc file

2년 이하 전 | 다운로드 수: 6 |

답변 있음
How to save the results of NetCDF as .nc file?
You can use nccreatewrite function to create a nc file having all the required variables. Example: lon=(65:0.5:95)'; lat=(3:0....

2년 이하 전 | 1

| 수락됨

답변 있음
Saving data to .txt
Use dlmwrite to write into a ASCII file. A=magic(5) dlmwrite('sample.txt',A)

약 2년 전 | 0

답변 있음
determining the value of an x corresponding to specifec y from the graph
Use polyfit to fit a linear line along all data points. It gives you a linear equation in terms of x and y. Just insert the valu...

약 2년 전 | 0

| 수락됨

답변 있음
How to draw this 2 dimension figure (antenna feature) in Matlab?
I have just plotted your data simply. Check this out. figure('Units', 'Normalized', 'OuterPosition', [0, 0.04, 0.32, 0.96]);...

약 2년 전 | 1

| 수락됨

답변 있음
How to sum two probability density functions?
"sum two of these pdfs and also substract both"? Are you pretty sure to add the pdfs? My suggestion is to first add data and ...

약 2년 전 | 0

| 수락됨

답변 있음
Converting a 2d vector to a 4d vector
Let's take a random data A A=randi(10,30,2); Use permute to change into 4D B=permute(A,[3,4,2,1]); Now, B(:,:,2,24) and...

약 2년 전 | 0

| 수락됨

답변 있음
How do i filter out certain values in a cell matrix using conditions for strings ?
You can use _contains_ to find the required letter. _contains_ gives true if the part of search string contains in the main stri...

2년 이상 전 | 1

| 수락됨

답변 있음
The size of X must match the size of Z or the number of columns of Z.
There are few mistakes I want to highlight. You have used, contour(lat,lon,z............. It should be contour(lon...

2년 이상 전 | 0

| 수락됨

답변 있음
How do I efficiently find the mean and covariance of a cell containing matrices with different rows?
Use concatenate to mix up all cells into one matrix. cat(2,C{:}); %you can use this only if number of rows must be same in ...

2년 이상 전 | 1

| 수락됨

답변 있음
How to present OBJ file (read as a mesh file) in a contour plot?
An example of creating a mesh is here, [X,Y] = meshgrid(-5:.2:5); R = sqrt(X.^2 + Y.^2); Z = sin(R)./R; mesh(X,Y,Z...

2년 이상 전 | 1

답변 있음
Placing multiple rectangles layout
figure rectangle('Position',[1 1 2 4],'Curvature',0) rectangle('Position',[5 2 4 3],'Curvature',0) rectangle('Positio...

2년 이상 전 | 1

답변 있음
Shapefile distorted on World Map
"I'm not sure if it is an issue with my shapefiles or with how I'm projecting". Its only because of projection, the continen...

2년 이상 전 | 1

답변 있음
Remove Data Outside Range
AA=temp(temp(:,1)>=4 & temp(:,1)<=20,:); There is no need to remove. Directly store the numbers which you need. [xx,yy...

2년 이상 전 | 1

| 수락됨

답변 있음
interp and interp3 give different size arrays
x0 = 1:100; y0 = 1:90; z0 = 1:100; data1=randi(10,90,100,100); %defining data over coarser resolution dimen...

2년 이상 전 | 2

| 수락됨

Load more