Community Profile

photo

ANKUR KUMAR


NASA IMPACT

Last seen: 5일 전 2017 이후 활성

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

https://www.nsstc.uah.edu/users/ankur.kumar/

Statistics

All
  • 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

배지보기

Content Feed

보기 기준

답변 있음
How to adjust x-axis in a plot?
You can use circshift to rotate your data in a circular fashion. Once you have the circular shifted data, you can just manipulat...

2달 전 | 1

| 수락됨

답변 있음
How to store matrices in a cell from a loop?
I am taking random data to show how you can store the output in a cell array using loop. for index=1:16 output{index}=rand...

3달 전 | 0

답변 있음
Deforming an image without changing axis scale
You can use axis square to force image to be square. See this below example. Let us load sample image: corn_gray = imread('cor...

3달 전 | 0

| 수락됨

답변 있음
Subplot with geobasemap and boxplot
You can do it easily using subplot. subplot(1,2,1) boxplot(randi(100,1,500)); subplot(1,2,2) tsunamis = readtable('tsunam...

3달 전 | 0

답변 있음
Data extraction from stacked plot
Let us load random data. tbl = readtable('patients.xls'); stackedplot(tbl,{'Height','Weight','Systolic','Diastolic'}) There m...

3달 전 | 0

| 수락됨

답변 있음
Access data from a cell array
Let us create a random data. random_data_cell=arrayfun(@(x) rand(138,18), 1:10, 'uni',0); Let merge these data set in a matrix...

3달 전 | 0

답변 있음
How to subtract symbol associated matrix columnwise
You cannot simply substract these two matrices, becasue B contains integers (double), and A has strings. You need to convert B ...

3달 전 | 0

| 수락됨

답변 있음
How to use the function uigetfile?
"How can I select the file from any folder on my computer?" This is pretty simple. You need to provide the full path of the fil...

3달 전 | 0

답변 있음
Removing data that exceeds y limit in a plot
x=linspace(0,3*pi,200); y=cos(x); plot(x,y) You can set range while calling the plot function. This is just an example. I am ...

3달 전 | 0

답변 있음
How to change the colour of the markers on a scattered graph?
I don't think I understood your question completely. Please do attach sample data (probably in a .mat file) and your complete co...

3달 전 | 0

답변 있음
Loop for renamed files from a folder
You can find the unique prefixes in the filename, and then use it to generate the string of numbers to rename the file. Here is ...

3달 전 | 0

| 수락됨

답변 있음
How to display an image in 3D cordinate axes ?
It is not really a 3D image. The third dimension has the RGB values. That is why you can able to see the color image. Let's see...

3달 전 | 0

답변 있음
Extract Digital Numbers from Image
You can simply use ocr command to do that. Refer to this documentation for some example, which would be a good starting point fo...

3달 전 | 0

답변 있음
How to create a netcdf in matlab which can be read by grads without using descriptor file?
There are often times when MATLAB created NetCDF files are not readable in earth and atmospheric science visualization softwares...

4달 전 | 2

| 수락됨

제출됨


nccreatewrite
Creates the NetCDF file directly, and these NetCDF files are readbale in GrADS. Get rid of writing the long commands everytime t...

4달 전 | 다운로드 수: 3 |

Thumbnail

답변 있음
How do I find the zero crossings for a function sinx/x against x?
Do you mean to find the x values which cooresponds to the zero in the y values? I do not think you have zero value in y variabl...

4달 전 | 0

답변 있음
How to calculate mean and standard deviation for loops?
You don't need to use loop for that. You can use cat command to concatenate, and then use mean and std functions to the matrix i...

4달 전 | 0

| 수락됨

답변 있음
How can I do this iteration?
Here is the sample code using random data a=rand(1,50); b=rand(1,50); threshold=0.5; % You need to change it to 1e-6 and use ...

4달 전 | 0

답변 있음
How to create a geographic colormap of the world using lat lon data?
You can simply use the contour or contourf or imagesc function to do that. Let us start with the random data. temp=randi(5,50,...

4달 전 | 1

| 수락됨

답변 있음
How can I produce equation from data set and optimize the equation
In order to produce equations for the datasets,, you can use fitnlm fucntion to do that. You will get an equation from that. Si...

4달 전 | 0

답변 있음
2D scatter-plot with colorbar
You can represent the no of measurements in bin as the fourth argument while calling the scatter plot. Here is the sample plot u...

4달 전 | 1

답변 있음
How to display subplot with multiple image with its own x and y axes ?
You need to make xaxis visible in every subplots. Here are the lines which you need to modify. title("Foreground before and aft...

4달 전 | 1

| 수락됨

답변 있음
How to find the point of highest concentration (plot)
There are multiple methods to select the center of the oval where density is maximum. One of the methods is just by counting the...

4달 전 | 0

답변 있음
How can I code a two variable function?
You can simply use for loop to iterate x and y. Refer to the below code just for your reference. You might need to make modifica...

4달 전 | 0

| 수락됨

답변 있음
Plotting multiple box plots on same graph with same size vector?
As you have not provided the exact data, I am generating just the random data. col=@(x)reshape(x,numel(x),1); boxplot2=@(C,var...

6달 전 | 0

| 수락됨

답변 있음
how can i select random 2*2 matrice of random number?
A=rand(randi(10,1,1),randi(10,1,1))

7달 전 | 0

답변 있음
error using sum what can I change to fix it
mean(displacement(isnumeric(displacement)))

7달 전 | 0

답변 있음
How would I find the Eigen values and plot the Eigen vector onto my scatter plot
In order to find the eigen values, you need to have a matrix. You can plot eigen values of two matrix on a scatter plot. A=rand...

7달 전 | 0

답변 있음
How can I read in comma separated data from csv where some cells contain multiple numeric values that are also comma separated?
"there are 6 cells containing data in MouseX, and each contains 7 comma separated values. So I'd want a 6 x 7 numeric array.": T...

7달 전 | 0

| 수락됨

답변 있음
identity matrix nth order
n=20; eye(n) % identity matrix of order 20 eye(randi(50,1,1)) % identity matrix of a random order generated by randi

7달 전 | 0

더로드