Community Profile

photo

KSSV


Last seen: Today

INCOIS

6,718 total contributions since 2011

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

Contact

KSSV's Badges

  • 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
Elements in array and matrix
Read about input and unique.

1 day ago | 1

Answered
how can I convert many images from m x n x 3 to m x n by rgb2gray?
img = dir('*.jpeg') ; N = length(img) ; for i = 1:N thisimg = img(i).name ; I = imread(thisimg) ; Ig = rgb2...

1 day ago | 1

Answered
Plotting two variables from a loop
% Constants g=9.81; m=1.5; A=0.028; Cd=0.8; rho=1.225; B=(rho*Cd*A)/2; Dt=1e-6; % Initial values x=0; y=6.4008; %21...

2 days ago | 1

| accepted

Answered
plot values in the loop
p=3 ; k = 1:p ; val = zeros(1,p) ; for i = 1:length(p) %something if %something d=d+1 val(i) = ...

3 days ago | 0

Answered
How to plot an inversely proportional graph ?
plot(k,1./T) ; You can find the inverse/ reciprocal using 1./T.

3 days ago | 0

| accepted

Answered
How to make a function that calculates percentage change in a vector
Loop: x=csvread('gdp.csv') for i=1:length(x)-1 p = (x(i+1)-x(i))/(x(i)) end Vector: p = diff(x)./x(1:end-1) ;

3 days ago | 0

Answered
How get this program to calculate derivative properly?
Yn=A*sin(w*t); dYn = A*w*cos(w*t) ;

3 days ago | 0

Answered
converting 2D XY coordinated into Grid format
It depends whether your data is gridded or scattered. Follow the below code to get what you want. Let A be your m*2 array. x =...

4 days ago | 0

Answered
Area of intersection of two ellipses
You can follow the below steps. For the two ellipses i.e get coordinates of both the ellipses. Let L1, L2 be your coordinates ...

5 days ago | 0

| accepted

Answered
Common numbers between arrays
Read about intersection.

5 days ago | 1

Answered
I can’t get the program to run for some reason. I want to use for loops for this program.
You need not to use two for loops.....that is a wrong idea. This is what you should do: Ti = 0; Tinc = pi/180; Tf = pi...

6 days ago | 0

Answered
need Matlab program to count the number of lines until dollar sign is given
Read about strfind. YOu can search for you string using this.

6 days ago | 0

Answered
Single line of code for vectorization, Need Help!!
r = [0.1 0.2 0.3 0.4 0.5] ; h = [0.2 0.3 0.4 0.5] ; [r,h] = meshgrid(r,h) ; v = 1/3*pi*r.^r.*h ;

6 days ago | 0

Answered
How do you detect duplicate values within a random array?
If you want to use inbuilt functions......you can use unique. Read about it. Let A be your array. B = unique(A) ; if lengt...

6 days ago | 0

| accepted

Answered
Plotting question using data (water saturation)
sat_data = water_sattemp_data ; plot(sat_data(:,1),sat_data(:,2)) ;

6 days ago | 0

Answered
Adding Array elements from one element to another
Let A be your array. iwant = sum(A(487146:513795)) ;

6 days ago | 0

| accepted

Answered
Identifying the circle that fits the outer white pixels in a binary image (or make external mask)
I = imread("SampleXRmorph.PNG"); [y,x] = find(I) ; % Get center of cricle C = [mean(x) mean(y)] ; % GEt raidus d = sqrt...

10 days ago | 1

| accepted

Answered
How to fill the area between contour line and upper bound.
Get your required curve/ line coordinates; form a closed polygon and use patch/ area.

10 days ago | 1

Answered
How to divide vector to matrix(same row and column)
To remove extra elements and convert to square matrix A = rand(82580526,1) ; l = length(A) ; % GEt the nearest perfect squ...

10 days ago | 0

| accepted

Answered
Plotting user inputs in a 2D plot
prompt = 'Enter any number that you like:'; %{ I only want the user to enter a maximum of 10 numbers. %} N = 10 ; figure...

10 days ago | 0

| accepted

Answered
2D plot of a matrix
Read about importdata to load the data into MATLAB. You can normalize an array x to [0,1] using: norm_x = (x-min(x))/(max(x)-...

11 days ago | 0

| accepted

Answered
how to write a for loop in this case?
daily_tmax = cell(length(tmax),1) ; for i = 1:length(tmax) daily_tmax{i} = squeeze(mean(reshape(tmax{i}, size(tmax{i}, 1)...

11 days ago | 1

| accepted

Answered
Read spesific rowintervals from .txt file and store them
I = [12 40 68] ; iwant = cell(length(I),1) ; for i = 1:length(I) C = textscan(fid,'%.6f %.6f',npoints,'delimiter','\n',...

11 days ago | 0

Answered
How do I plot a line graph from scatter plot?
clc clear all A = 0.05; l_r = 2; %Wave length of the road v = 45; %Speed(m/s) P = l_r/v; %Period %Om = 1/P*2*pi; %Forcin...

12 days ago | 1

| accepted

Answered
For loop using strings
Let A be your data of size m*3. for i = 1:3 [pks_x_sit1,locs_x_sit1] = findpeaks(A(:,i),'MinPeakHeight',1.25); nr_...

12 days ago | 0

| accepted

Answered
How to graph using a for loop
YOu need not use a loop as the other user has suggested you. If you use a loop, you need to intiilaize the array and save it in ...

13 days ago | 1

| accepted

Answered
How to get all values existing in arrays/matrices?
Read about unique a = myArray(:) ; [cnt_unique, unique_a] = hist(a,unique(a)) ;

13 days ago | 1

Answered
In an image to set reference coordinate and get coordinates of color points .
If I is your matrix of image ..use [y,x] = find(I==val) ; where val is your pixel value you want. If I is m*n*3 RGB image....

13 days ago | 0

| accepted

Answered
Create random paths between two known points in 3D
A = [0,0,0] ; B = [1,1,1] ; N = 10 ; x = (B(1)-A(1)).*rand(N) + A(1); y = (B(2)-A(2)).*rand(N) + A(2); z = (B(3)-A(3)).*...

15 days ago | 0

Answered
How to change from cell to array
Read about cell2mat.

17 days ago | 0

Load more