ANKUR KUMAR
NASA IMPACT
Researching with NASA IMPACT | MATLAB for fun | Python for research | https://www.nsstc.uah.edu/users/ankur.kumar/
Estadística
CLASIFICACIÓN
114
of 295.495
REPUTACIÓN
1.098
CONTRIBUCIONES
34 Preguntas
253 Respuestas
ACEPTACIÓN DE RESPUESTAS
67.65%
VOTOS RECIBIDOS
305
CLASIFICACIÓN
5.594 of 20.240
REPUTACIÓN
217
EVALUACIÓN MEDIA
4.90
CONTRIBUCIONES
8 Archivos
DESCARGAS
16
ALL TIME DESCARGAS
1980
CLASIFICACIÓN
44.418
of 153.991
CONTRIBUCIONES
0 Problemas
7 Soluciones
PUNTUACIÓN
80
NÚMERO DE INSIGNIAS
1
CONTRIBUCIONES
0 Publicaciones
CONTRIBUCIONES
0 Público Canales
EVALUACIÓN MEDIA
CONTRIBUCIONES
0 Temas destacados
MEDIA DE ME GUSTA
Feeds
Trying to add Minor Ticks and grid with duration data
If you want grid line and ticks both in the plot, you can prefer handling ticks direclty on the majorticks. Here is an example o...
casi 3 años hace | 1
Replace 32767 with NaN in entire table
You can get the table in a matrix form using .Variables. Once you have a matrix, then you can use boolean to replace any numbers...
casi 3 años hace | 1
| aceptada
Create a custom legend
You can add the legend manually and set the color and marker as per your own. See the below example for your reference. x = lin...
casi 3 años hace | 9
| aceptada
Import multiple xml.files in a folder
You can use the dir command to store the file names and use for loop to read all the files. F = dir('path/*.xml') for index = ...
alrededor de 3 años hace | 0
How to plot multiple lines (with a varying slope coefficient) in the same graph?
You code is producing the same results for all iteration. You can simply use a for loop, and use hold on to plot multiple plot...
alrededor de 3 años hace | 0
How to remove ticks of right y-axis when plot two y-axes figure using yyaxis
You can simply use yticks([]) after calling the yyaxis right. This simply remove all the ticks from the right y axis. x = linsp...
alrededor de 3 años hace | 1
| aceptada
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...
más de 3 años hace | 2
| aceptada
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...
más de 3 años hace | 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...
más de 3 años hace | 0
| aceptada
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...
más de 3 años hace | 0
Data extraction from stacked plot
Let us load random data. tbl = readtable('patients.xls'); stackedplot(tbl,{'Height','Weight','Systolic','Diastolic'}) There m...
más de 3 años hace | 0
| aceptada
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...
más de 3 años hace | 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 ...
más de 3 años hace | 0
| aceptada
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...
más de 3 años hace | 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 ...
más de 3 años hace | 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...
más de 3 años hace | 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 ...
más de 3 años hace | 0
| aceptada
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...
más de 3 años hace | 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...
más de 3 años hace | 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...
más de 3 años hace | 2
| aceptada
Enviada
nccreatewrite
Creates the NetCDF file directly, and these NetCDF files are readbale in GrADS. Get rid of writing the long commands everytime t...
más de 3 años hace | 4 descargas |
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...
más de 3 años hace | 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...
más de 3 años hace | 0
| aceptada
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 ...
más de 3 años hace | 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,...
más de 3 años hace | 1
| aceptada
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...
más de 3 años hace | 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...
más de 3 años hace | 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...
más de 3 años hace | 1
| aceptada
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...
más de 3 años hace | 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...
más de 3 años hace | 0
| aceptada