Community Profile

photo

KSSV


Last seen: Today

8 449 total contributions since 2011

https://sites.google.com/site/kolukulasivasrinivas/
Professional Interests: Mathematical Computing

Contact

KSSV's Badges

  • MATLAB Central Treasure Hunt Finisher
  • Personal Best Downloads Level 4
  • First Review
  • 5-Star Galaxy Level 5
  • First Submission
  • 36 Month Streak
  • Master
  • Revival Level 3
  • Thankful Level 2
  • Knowledgeable Level 4
  • First Answer
  • Solver

View details...

Contributions in
View by

Answered
showing hours elapsed not date and time data
Let d be your datetime array. d.Format = 'hh:mm:ss'; t = cellstr(d)

en dag ago | 0

Answered
How do I remove all filenames from my cellarray with .m ending, if else how do I save those with .bmp?
idx = contains(filenames,'.bmp') ; filenames(idx)

en dag ago | 0

Answered
Horizontal line in plot up to a graph
If you have the xlimits (x0,x1) and the y-value..the required equations is y = k. x = 1:10 ; k = 3 ; y = k*ones(*Size(x)) ; ...

en dag ago | 0

Answered
Summing randomly generated numbers
n1 = 0:0.1:0.9; n2 = 0:0.1:0.9; r1 = n1(randi([1,numel(n1)])); r2 = n2(randi([1,numel(n2)])); thesum = r1+r2

en dag ago | 0

Answered
Array indices must be positive integers or logical values.
function [z]=phi(x) %Determine phi(x) using the formulas provided %2/25/21 %AE 227 a=0.4361836; b=0.1201676; c=0.937298;...

en dag ago | 1

Answered
How can I surface plot a 1000x2 matrix?
A = randn(1000,2); hist(A(:)) hist(A)

en dag ago | 0

| accepted

Answered
How to find the position of a number in an cell-array?
P= {[2,5], [3], [], [1,14], [], [9]} ; N = length(P) ; val = 14 ; for i = 1:N idx = ismember(14,P{i}) ; if any(i...

en dag ago | 0

| accepted

Answered
count number of rows in csv outside of matlab
csvFiles = dir('*.csv') ; N = length(csvFiles) ; f = cell(N,1) ; % first row l = cell(N,1) ; % last row for i = 1:N ...

en dag ago | 0

Answered
Creating a 3D graph of many 2D-view surface plots
On using contour, you will get the points/ locations (x,y).... do interp2 and you will get the respective z values......do the s...

en dag ago | 0

Answered
How to create a netcdf in matlab which can be read by grads without using descriptor file?
% nc filename to be written file = 'myfile.nc' ; %% Write lon and lat variables % Get data lon = 1:10 ; lat = 1:10 ; nx ...

en dag ago | 0

Answered
Finding matching points between two 2d point sets, but different sizes
Read about knnsearch.

en dag ago | 0

Answered
Eigen Vectors and Values using Matlab
A=[4 6 2;6 0 3;2 3 -1]; lambda=eig(A) syms l eqn = det(A-l*eye(3))==0 ; solve(eqn,l) ; l = double(vpasolve(eqn,l))

2 dagar ago | 0

Answered
Insert certain percentages of missing values in a dataset
A = rand(600,10) ; % demo data N = numel(A) ; % number of elements idx = randperm(N,10/100*N) ; % get 10% of data indi...

3 dagar ago | 1

| accepted

Answered
How to link lat/lon to a variable based on time?
load ABdatasets.mat ; % Remove NaN's from B_time idx = isnan(B_time) ; B_time(idx) =[] ; B_reflectance(idx) =[] ; A_reflec...

3 dagar ago | 0

Answered
Cell to mat conversion
iwant = reshape(cell2mat(a),[],length(a))' ; iwant(1,:)

3 dagar ago | 1

Answered
How to count sum for values corresponding to repeated numbers in matrixes.
clc; clear all ; data = [9170 1 1 9443 2 14 9443 4 14 9443 8 14 15872 4 12 15...

4 dagar ago | 0

| accepted

Answered
Can anyone help me figure out the preallocation of the unknown matrix which no. of rows changing in every cycle? Thank in advance
close all; clc; tic p=dir('*.txt'); nFiles=numel(p); A_cat=cell(nFiles,1); % A_cat=zeros(500000,30); for k=1:nFiles A...

4 dagar ago | 0

| accepted

Answered
How to find the indices of elements in an array?
A = rand(100) ; [val,idx] = min(A(:)) ; [i,j] = ind2sub(size(A),idx) ; val A(i,j)

5 dagar ago | 0

Answered
MAKING A SCATTER PLOT BASED ON INDEX VALUES
[C,ia,ib] = unique(column1) ; % column1 is your column idx = zeros(size(column1)) ; % make indices to save each class fo...

5 dagar ago | 0

| accepted

Answered
How to draw a 3D plot from an excel data?
num = xlsread('test3.xlsx') ; x = num(2:end,1) ; y = num(1,2:end) ; Z = num(2:end,2:end) ; surf(x,y,Z')

5 dagar ago | 1

| accepted

Answered
Plotting 3D data
load('Error_matrix.mat') x = Error_matrix(:,1) ; y = Error_matrix(:,2) ; z = Error_matrix(:,3) ; xi = unique(x) ; nx =...

5 dagar ago | 1

| accepted

Answered
calculating sum of integers
n = 123456789; iwant = sum(num2str(n) - '0')

5 dagar ago | 0

| accepted

Answered
how to plot ?
Read about pcolor, surf. [X,Y,Z] = peaks(50) ; figure surf(X,Y,Z) figure pcolor(X,Y,Z)

6 dagar ago | 1

| accepted

Answered
write a matlab program to plot signal xt=sin t+sin 2t+sin 3t+…
This is a very simple homework/ exercise; which you are supposed to do. Read about linspace, plot. Read about the function sin. ...

6 dagar ago | 0

Answered
Plot specific coloured dots
Read about gscatter. Also you can use plot with 'Markercolor' mentioning.

8 dagar ago | 1

| accepted

Answered
how to merge the data in a table into one column
A = rand(4,3) ; A(end,:) = [] ; % delete last row A = A(:)

9 dagar ago | 0

Answered
color the surface of each triangle considering the RGB value
Try this package: https://www.mathworks.com/matlabcentral/fileexchange/25555-mesh2d-delaunay-based-unstructured-mesh-generation ...

9 dagar ago | 0

Answered
plot multiple rectangles/circles in the same frame, hold on
To plot them you can specify the centers and use markers, increase the size of markers. Have a look on plot.

9 dagar ago | 0

Answered
how to code surf graph?
x = 0:0.01:0.2 ; nx = length(x) ; y = 0:0.01:0.2 ; ny = length(t) ; [X,Y] = meshgrid(x,y) ; Z = reshape(z,nx,ny) ; ...

11 dagar ago | 2

| accepted

Load more