Community Profile

photo

KSSV


Last seen: Today

7,438 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
How to read .txt file which have complex numbers and how to separate real and imaginary parts of the complex numbers?
fid = fopen("smithchartall.txt") ; S = textscan(fid,'%f %f %f\n','HeaderLines',1) ; fclose(fid) ; C1 = S{1} ; C2 = S{2} ; ...

27 minutes ago | 0

Answered
how to find out the cell array size in for loop with conditions?
Your mat file has a cell SoC2W. This is of size 60*48. Each element is a cell. You can convert it to matrix using: M = cell2mat...

35 minutes ago | 0

Answered
Matrix with variable number of rows and fixed columns
As you will have variable number of values in each column, save them in the cell. [H,W] = size(BT); x = cell(W,1) ; y = cell(...

19 hours ago | 0

Answered
Find slope signal change
https://www.mathworks.com/matlabcentral/answers/410698-find-time-of-slope-change https://www.mathworks.com/matlabcentral/answ...

19 hours ago | 0

Answered
2D plot (x,y) with third axis (z-axis) as color bar
Read about surf, pcolor.

19 hours ago | 0

Answered
plot matrix with variables
N = 100 ; t = linspace(0,2*pi,N) ; y = sin(2*pi*t) plot(t,y)

20 hours ago | 0

Answered
Insert value at particular index of cell array in a loop
You can insert a number in an array on knowing the value of the element and at what position you want to insert the value. A =...

21 hours ago | 0

Answered
matrix and making another matrix from it
Hint: For upper triangular major, we use: [m,n] = size(A) ; for i = 1:m for j = 1:n if i <=j A(i,j) end ...

22 hours ago | 0

Answered
Finding period of EEG (peak2peak)
load("tsout.mat") ; data = tsout.MCOS ; [pks,locs]=findpeaks(data) ;

24 hours ago | 0

Answered
Hi I need help with for loop
This single loop is fine enough: N = length(v_x) ; xpos = zeros(N-1,1) ; xpos(1) = 4 ; for i = 2:N-1 xpos(i) = v_x(i)*...

1 day ago | 0

| accepted

Answered
How to import data from .txt file?
data = importdata(mytextfile) ;

1 day ago | 0

| accepted

Answered
ASSIGN COMPLEX NUMBERS(X+jY) RANDOM INTEGERS BETWEEN 1 and 3
N = 5 ; C = zeros(N,1) ; for i = 1:N C(i) = randperm(3,1)+1i*randperm(3,1) ; end

1 day ago | 0

Answered
Why subplots doesn't work?
subplot(2,2,1) plot(a) subplot(2,2,2) plot(b) subplot(2,2,3) plot(a2) subplot(2,2,4) plot(b2) Note that figure will open...

1 day ago | 0

Answered
How to load multiple .mat files into two different groups
USe this file exchange: https://www.mathworks.com/matlabcentral/fileexchange/47434-natural-order-filename-sort First nine will ...

1 day ago | 0

Answered
Error with surf function
[m,n] = size(data) ; x = 1:n ; y = 1:m ; surf(x,y,data) Also you can straight away use: surf(data) ;

1 day ago | 1

| accepted

Answered
Plotting after a for loop
x = -5:5 ; y = zeros(size(x)) ; y(x>=0.5) = 0.5 ; plot(x,y)

1 day ago | 0

Answered
how to put only one element randomly in row of matrix
A = zeros(4,3) ; [m,n] = size(A) ; for i = 1:m idx = randperm(n,1) ; A(i,idx) = 1 ; end

2 days ago | 0

| accepted

Answered
How can you clear the content of a workspace in the MATLAB environnement
There are multiple errors possible in MATLAB. Refer here: https://en.wikibooks.org/wiki/MATLAB_Programming/Error_Messages

2 days ago | 0

Answered
I want to divide color image in small tiles and then need to count number of color pixels in each tile.
Refer this to split the matrix/ image into blocks https://www.mathworks.com/matlabcentral/answers/362262-i-have-a-32-32-matrix...

2 days ago | 0

Answered
hi i want to save images
for i = 1:44 h=figure ; plot(rand(1,10)) ; saveas(h,sprintf('FIG%d.png',i)); % will create FIG1, FIG2,... end

3 days ago | 0

| accepted

Answered
How can I create a small cell 500*500 pixel in one satellite image?
Refer this....it should help you: https://www.mathworks.com/matlabcentral/answers/362262-i-have-a-32-32-matrix-i-want-to-take-m...

3 days ago | 0

Answered
How to use matlab to calculate this sum?
With loop N = 1000 ; thesum = 0 ; for i = 1:N thesum = thesum +(1/i+1/((i+2)*(i+3))) ; end Without loop N = 1000 ; ...

3 days ago | 0

Answered
how to specify the particular column numbers of a matrix in for loop
for i = 1:1801 for j = 70:75

3 days ago | 0

| accepted

Answered
How do I call to function from other function?
You need to save both the function files in the same folder and yes call the other function in the required function. It is very...

4 days ago | 1

| accepted

Answered
How to set different marker for some different values?
fmt = {'*','o','^','.','+','x','s','p','h'}; % different markers x = 1:9 ; y = rand(size(x)) ; figure hold on for i = 1:...

4 days ago | 0

| accepted

Answered
Sum the values of one column based on another column in Table
Let T be your table. R = T.Range ; val = 862.33 ; count = nnz(abs(R-val)<=10^-5)

4 days ago | 0

Answered
Recover matrix Z from XZX', Z es symmetric and n-by-n, while X is k-by-n where n>>k
Does this match your criteria? k = 8 ; n = 5 ; % create dummy data X = rand(n,k) ; Z = rand(n) ; Z = Z+Z' ; % make ...

4 days ago | 0

Answered
How to find the power of a matrix?
A=A/10^5 ; A = A.^2 ;

5 days ago | 0

Answered
How to find convolution of three functions.
Read about conv2. s1 = conv2(conv2(f1,f2),f3) s2 = conv2(conv2(f2,f3),f1) s3 = conv2(conv2(f1,f3),f2) All the abve three a...

5 days ago | 0

| accepted

Load more