Community Profile

photo

KSSV


Last seen: Today

8,435 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
Cell to mat conversion
iwant = reshape(cell2mat(a),[],length(a))' ; iwant(1,:)

9 hours 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...

1 day ago | 0

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...

1 day 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)

1 day 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...

1 day 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')

2 days 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 =...

2 days ago | 1

| accepted

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

2 days ago | 0

| accepted

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

3 days 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. ...

3 days ago | 0

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

5 days 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(:)

6 days 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 ...

6 days 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.

6 days 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) ; ...

8 days ago | 2

| accepted

Answered
Comparison of symbolic expressions
syms a b c = a+b ; d = b+a ; isequal(c,d)

8 days ago | 0

Answered
How to plot streamline for velocity data??
https://in.mathworks.com/help/matlab/ref/streamline.html

8 days ago | 0

Answered
Area under a hysteresis curve
Yes yoou can use trapz. Other option is, arrange the coordinates of curves into a closed polygon and use polyarea.

9 days ago | 0

| accepted

Answered
Error using textscan when I try to plot from text file
data = importdata('test50000.txt') ; data is a array of dimensions 12371x23. Next what?

9 days ago | 0

Answered
How to vectorize the following code snippet?
x = -1.0:0.2:1.0; y = -2:0.25:3; [X,Y] = meshgrid(x,y) ; result = exp(X.^2-Y.^2);

10 days ago | 0

| accepted

Answered
How to save variables into a matrix
count = 0 ; iwant = zeros([],3) ; % to store i,j,ortho(i,j) in respective columns sz = size(ortho); md= median(ortho); pk...

10 days ago | 0

| accepted

Answered
How to calculate sum without loop?
n = 1:100 ; s = sum(n.*cos(n/100))

12 days ago | 2

Answered
rotating a line using rotation matrix
L = rand(2,2) ; % line % Rotation matrix R = @(theta) [cos(theta) -sin(theta) ; sin(theta) cos(theta)] ; % Get mean m = ...

12 days ago | 0

| accepted

Answered
How can get roots of polynomial having variables in denominator.?
Read about vpasolve. syms x F = (x^2+1)/(x+1)+(2*x^2+3)/(x+2)==0 ; r = vpasolve(F)

12 days ago | 0

| accepted

Answered
Using or with strfind
position1 = strfind(str,p1) ; position2 = strfind(str,p2) ; OR position = strfind(str,[p1, p2]) ;

12 days ago | 0

Answered
generate random numbers between limits and satisfy condition
How about something like this? a = 5000 ; b = 6000 ; x = zeros(1,16) ; x(1) = randi([a b],1,1) ; for i = 2:16 x...

13 days ago | 0

Answered
How to solve Index out of bounds because numel(A)=4
This line: O = A(i)*E ; should be changed to: O = A*E

13 days ago | 1

Answered
how to get the index from the plot for a specific condition
idx = myX>1200 ; % logical indexing myX(idx) idx = find(idx)

13 days ago | 0

| accepted

Answered
Help needed on this
You have to proceed something like below: x = -1:0.1:+1 ; y = -1:0.1:+1 ; [x,y] = meshgrid(x,y) ; U0 = 5 ; k = pi/4 ; L...

13 days ago | 0

| accepted

Load more