Community Profile

photo

KSSV


Last seen: Today Active since 2011

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

Statistics

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

Content Feed

Answered
How to plot data?
T = readtable(filename) ; % your file where data is present x = (1:24)' ; plot(x,T.(2),'r',x,T.(3),'b')

alrededor de 11 horas ago | 0

| accepted

Answered
Create line between plot points
You would have plotted them using plot(x,y,'*r') So use: plot(x,y,'*r') hold on plot(x,y,'b') You can speecify your requi...

alrededor de 12 horas ago | 0

Answered
How to test to see if a user input is not a number?
y = input('Input a number: ','s') ; if isnan(str2double(y)) disp('The entry is not a number') end

alrededor de 12 horas ago | 0

Answered
How to extract satellite measured chlorophyll-a (chl-a) in MATLAB
Let lon,lat be your grid coordinates of the nc file. [X,Y] = meshgrid(lon,lat) ; xi = linspace(30,100) ; yi = linspace(0,30...

alrededor de 12 horas ago | 0

Answered
What is the best way to define vectors based on a condition?
A=2.*p+1; Bm=p+1; Bs=p+2; x_i=(x+y)*0.01; x_s=x-x_i; [r,c] = size(T); k = 0.001*ones(r,1); % condition 1 idx1 = x>=x_i ;...

alrededor de 15 horas ago | 0

Answered
How do I create a vector by repeating a vector
A = [1; 2] ; B = repmat(A,2,1)

alrededor de 17 horas ago | 1

Answered
Saving Table in Excel while in loop
Loop is not needed, you can striaght away write the matrix into excel. writematrix(AllMI,'test.xlsx');

alrededor de 17 horas ago | 0

| accepted

Answered
How to save output images after preprocessing into new folder sequentially without overwriting?
infolder = '' % give the path of the folder where your RGB images are present outfolder = '' % give the path of the folder...

alrededor de 17 horas ago | 0

| accepted

Answered
Invalid Training data. The Output size of the last layer does not match the reponse size
This is due to number of filters at Final-convolution layer. DEfault it has number of filters as 2, you need to change it to 1. ...

alrededor de 20 horas ago | 0

Answered
Help with symbolic substitution
Why don't you use anonymous function ? zz = @(x) (x(1) + x(2) + x(3))^2/(x(1)^2 + x(1)*x(2) + x(1)*x(3)) ; % Generate a rando...

1 día ago | 0

Answered
Compare elements of an array with all elements in a matrix
No loop needed. You can use straight away like shown: P = randn(18,10); C = randn(1,10); C1 = repmat(C,18,1) ; idx = C1 >...

1 día ago | 0

| accepted

Answered
Reading and Processing Many Text Files
txtFiles = dir('*.txt') ; N = length(txtFiles) ; for i = 1:N thisFile = txtFiles(i).name ; fid1 = fopen(thisFile)...

1 día ago | 0

Answered
Variable out_vec must be of size [1 3]. It is currently of size [1 20]. Check where the variable is assigned a value.
x = 1:20 ; idx = sort(randperm(length(x),3)) ; % select randomly x(idx)

1 día ago | 0

Answered
Accessing elements in a structure
file = dir('*.mat'); %fine all the .mat files num_files = length(file); %record how many files have been found [~, index] = na...

1 día ago | 0

| accepted

Answered
Fit data to array values
x = 1:5 ; y = [0.987,0.95,1.06,1.02,1.04] ; p = polyfit(x,y,2) ; yi = polyval(p,x) ; figure hold on plot(x,y,'.r') pl...

1 día ago | 0

Answered
How to avoid scientific notation in tables?
REad about format format long

1 día ago | 0

Answered
keep getting Index exceeds matrix dimensions.
The error is clear.....you are trying to extract more number of elements than present from an array. EXample: A = rand(1,5) ;...

1 día ago | 0

Answered
To find Maximum value and minimum value for each group of four rows for a 180*1 matrix
A = rand(180,1) ; B = reshape(A,12,[])' ; themax = max(B) ; themin = min(B) ;

1 día ago | 0

| accepted

Answered
How to generate a matrix of random decimal values from -1 to 1?
format long A = single(rand(3)) ; fmt = [repmat(' %0.6f',1,3),'\n']; fprintf(fmt,A)

1 día ago | 0

Answered
adding data to a cell array without loosing the order
idx = 1:24000; id = reshape(idx,5,[])' ; [m,n] = size(id) ; C = cell(m,n) ; for i = 1:m for j = 1:n C{i,j} =...

1 día ago | 0

| accepted

Answered
given two matrices find the indices of B in A
Read about ismember, in there you can specify the option of rows. https://in.mathworks.com/help/matlab/ref/double.ismember.htm...

1 día ago | 0

Answered
Getting an array of points along an arc
clc; clear all ; figure; a = [124.0102 62.2260]; b = [33.3602 77.9434]; r=250; syms x y [x,y]=solve((x-a(1))^2+(y-a(2)...

1 día ago | 0

| accepted

Answered
How to scatter3 row vector with different colors
LEt A be your 3*510 matrix. x = A(1,:) ; y = A(2,:) ; z = A(3,:) ; scatter(x,y,10,z,'.'); If you want to use scatter3. ...

2 días ago | 0

Answered
combined Filled area and contour plotting
Refer here: https://in.mathworks.com/matlabcentral/answers/412639-creating-surface-plot-from-a-matrix-with-3-columns

2 días ago | 0

Answered
Change the value in multiple text file?
You need not to take a loop, you can straight away use the logical indexing. ZEE=xlsread('zee.xlsx','Area','B2:MP138'); ZEE=Z...

3 días ago | 0

Answered
Generate training progress plot from saved trained model
[testnet,traininfo] = trainNetwork(augimdsTrain,lgraph,options); save('data.mat','testnet','traininfo') traininfo has the deta...

3 días ago | 0

| accepted

Answered
Is it possible to create a road at once in shp file data?
S = shaperead(filename) ; P = [[S(:).X]' [S(:).Y]'] ; plot(P(:,1),P(:,2))

3 días ago | 0

Answered
Creating hourly average data with geographic coordinates to produce 3D matrix
T = readtable('New Text document.txt') ; t = T.hour ; lon = T.lon ; lat = T.lat ; temp = T.temp ; [c,ia,ib] = uniqu...

3 días ago | 0

Answered
how to plot by varying initial conditions
function myfun() %plot n vs x n vs y R = cell(10,1) ; figure hold on for n=1:10 [t,r]=ode45(@fn,[0 140],[0.01+n 0.01 ]) ;...

3 días ago | 0

Answered
scatter3 color projection
clc; clear all ; load('test_data.mat') x=test(:,1); y=test(:,2); z=test(:,3); figure scatter(x,y,1000,z,'s','filled'); ...

4 días ago | 0

| accepted

Load more