Community Profile

# KSSV

4,010 total contributions since 2011

Professional Interests: Mathematical Computing

View details...

Contributions in
View by

How do i use divideblock to split my Datasets (5,749 images) in 80-20 split to obtain training and test datasets only?
N = 5749; % number of images idx = 1:N ; PD = 0.80 ; train_idx = idx(1:round(PD*N) ; % training indices tes...

1 day ago | 0

| accepted

How to make the balls in this program organize and settle at the top of the box instead of leaving it
function y = atoms() n = 25; % no. of atoms dt = 0.1; % time ma=1; mb=1; x0=[0 0 0 0]; ...

1 day ago | 1

How to plot satellite orbits around the Earth? (combining plots)
Use _hold on_ and then plot both on the same figure. Simple... :)

2 days ago | 1

how to convert data from minute to hourly average
YOu can load the text file using _load_ or _importdata_. To egt hourly mean check the below example code. t = 1:24...

2 days ago | 0

appending to a list or an array
You need not to run a loop for this. Read about element by element operations in matlab. <https://in.mathworks.com/help/fixe...

2 days ago | 0

How to extract data from .nc file based on latitude, longitude, time?
There are very easy functions available to deal netCDF files in MATLAB. It is a very straight forward and simple job. Only you n...

2 days ago | 0

How to write the Netcdf file including latitude, longitude and time.
MATLAB has very simple netcdf interface......you need to know read about _nccreate_, _ncwrite_ and _ncwriteatt_. Just with these...

3 days ago | 0

How scatter with groups in this format
doc _gscatter_.

3 days ago | 0

| accepted

generating an equispaced vector using a variable
This would be more apt: B(1:50,5)=linspace(aNumber , aNumber*50,50) then B(1:50,5)=(aNumber : aNumber*50) Your...

3 days ago | 1

| accepted

I want to print the result in a table format. How do I do this?
fprintf('%f %f %f %f %f %f %f\n',t, ER, Yco, Yco2, Ych4, Yh2, LHV) Read about _fprintf_

3 days ago | 0

Surface Roughness of 3D Scatter Plot
Read about _delaunayTriangulation_. This will help you to get what you want. Check the below example code. N = 100 ; x ...

3 days ago | 0

Contourf with loops and making movie from contourf
h = figure; axis tight manual % this ensures that getframe() returns a consistent size filename = 'test.gif'; for n =...

3 days ago | 1

How can I process an image 100 times as explained below?
Let I be your image. iwant = cell(100,1) ; % do first process and save, let I1 be the precessed image iwant{i} =...

3 days ago | 0

I want to cycle average an excel data (36000*5) which repeats every 720 deg and make a separate excel file
Read about _reshape_. You can reshape your data into 3D matrices and then write into excel sheet.

3 days ago | 0

| accepted

How to assemble matrices?
This is helpful; go through: <https://in.mathworks.com/matlabcentral/fileexchange/32029-plate-bending>

3 days ago | 0

How can I do a 80-20 split on datasets to obtain training and test datasets?
Let P and T be your input and target sets. PD = 0.80 ; % percentage 80% Ptrain = P(1:round(PD*length(T)),:) ; Ttrain ...

3 days ago | 0

| accepted

program for converting minute data to hourly.

4 days ago | 0

Extracting certain months from an array
Read about _datevec_. This splits your dates into years, months, days and time. From this you can get the index of the months yo...

4 days ago | 0

find the identification of similar binary image from a colour image?
Use _imread_ to read the image. _rgb2gray_ converts RGB image to gray. _im2bw_ converts RGB image to binary image.

4 days ago | 0

| accepted

read number from file name leaving special characters
matfiles = dir('*.mat') ; % you are in the folder of mat files N = length(matfiles) ; % total number of files % loo...

4 days ago | 0

| accepted

I want to remove zeroes from an array. The array more zero per row. For example: a = [200.03 303.56 0 0 0; 155.23 0 0] Should be turned into a = [200.03 303.56; 155.23]
a = [1 4 3 0 0 0 1 5 0 0 0 1 8 1 0 0 5 4 4 0 0 1 5 2 0 0] % b = [1 4 3 1 5 5 1 8 1 5 4 4 1 ] ; b = a ; b(a==0) =...

4 days ago | 0

How to add results into a matrix?
Ma = 0.5:0.2:0.9; x = pi/9:0.01:pi/2; M = length(Ma) ; N = length(x) ; Y = zeros(M,N) ; for i = 1:M ...

4 days ago | 1

| accepted

How to get Lat/Lon from vec2mtx
You have two options: 1. You can generate points inside in a scattered way...i.e generate a unstructured mesh, and you wil...

4 days ago | 0

| accepted

How to to create timestamp from imported data when time data is sperated in three different columns (Month ,Day, Hour)
Read about _datestr_ d = [2018 03 14 12 0 0] ; datestr(d)

4 days ago | 0

How to calculate the mean values in this case?
Read about _mean_ it gives you option of specifying the dimension to calculate the mean. If you think you need to arrange your m...

4 days ago | 0