Community Profile

photo

KSSV


INCOIS

6,360 total contributions since 2011

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

Contact

KSSV's Badges

  • 36 Month Streak
  • Master
  • Revival Level 3
  • Thankful Level 2
  • Knowledgeable Level 4
  • First Answer
  • Solver

View details...

Contributions in
View by

Answered
Marker points are not fully visible
plot(x,y,'ok','MarkerSize',12,'MarkerFaceColor','k');hold on plot(x1,y1,'LineWidth',2); hold off a = datenum(x1); datetick('...

2 hours ago | 0

Answered
Linear Regression - how to incorporate in figure
Read about plotregression x=[1 2 5 9 4 10 11 2 6] ; y=[5 3 6 8 5 12 14 4 8] ; plotregression(x,y);

3 hours ago | 0

Answered
number format using solve
REad about double and vpasolve

4 hours ago | 0

Answered
Write Data to Excel
x = rand(3,1) ; y = rand(3,1) ; z = rand(3,1) ; T = table(x,y,z) ; writetable(T,'test.xlsx')

6 hours ago | 0

Answered
How do I put elements from one matrix into separate matrices using a loop?
You can use functions like ismember. You can also use logical indexing. The best would be ismember. Read about the function.

9 hours ago | 0

Answered
how to divide a 3D figure in matlab in to cubes and getting the cubes's addresses
How about using this function? https://in.mathworks.com/matlabcentral/fileexchange/15161-plotcube You can draw cubes by provid...

9 hours ago | 0

Answered
Intersection between lines and traced shape
The best you can use is: https://in.mathworks.com/matlabcentral/fileexchange/22441-curve-intersections?focused=5165138&tab=funct...

9 hours ago | 0

Answered
Getting image dimensions into a table
%% Get the dimensions of the image Namelist = cell(length(filelist), 1); N = length(filelist) ; S = zeros(N,3) ; for i = 1...

9 hours ago | 0

| accepted

Answered
Read images in four different folders
This is asked multiple times int he forum and it has ben answered lot of times. Refer this one for example: https://in.mathwor...

9 hours ago | 0

Answered
How to change contour level in different range?
[X,Y,Z] = peaks(100) ; figure hold on contour(X,Y,Z,'LevelList',-6:0.2:4) % levels with difference 0.2 for till 4 contour(...

1 day ago | 1

| accepted

Answered
why i get an error ?
Z=uint8(254*((L-mm)/oo))+1; Y = uint8(Y) ; SS=mod((Y+Z),256) Note that same class varibales only can be added. A integer sho...

1 day ago | 0

Answered
How do I get the area of this problem?
Refer this: https://in.mathworks.com/matlabcentral/fileexchange/33543-monte-carlo-method?focused=5201749&tab=function

1 day ago | 1

Answered
How to convert netcdf to tiff
Refer this for the same question: https://in.mathworks.com/matlabcentral/answers/353583-netcdf-into-geotiff-tiff-file-conversion...

1 day ago | 0

Answered
Smooth curves how to
x=[1 2 3]; y=[1.22 3.31 1.91]; xx = min(x):0.1:max(x); yy = spline(x,y,xx); plot(x,y,'r',xx,yy,'b')

1 day ago | 0

| accepted

Answered
Orthogonal Distance Regression plot and regression equation
Refer this: https://stackoverflow.com/questions/12250422/orthogonal-distance-regression-in-matlab

1 day ago | 0

| accepted

Answered
image processing, k nearest neighbor
This is how you can use knnsearch. a=imread('coins.png'); b=im2bw(a); c=zeros(size(b)); [ptx,pty] = ginput(1); newdata=[pt...

4 days ago | 0

Answered
Check for the length of the matrix
A = rand(3) ; B = zeros(5) ; [nx,ny] =size(A); B(1:nx,1:ny) = A ; Also read about padarrays

4 days ago | 0

Answered
If loop not executed in a function
Use strcmp instead of equating. function[A0,A1,A2,A3,A4,A5]=Trial_types(ship_type,x) if strcmp(ship_type,'Passenger ship')...

4 days ago | 2

| accepted

Answered
For loop error: Subscript indices must either be real positive integers or logicals
T_o=[0;0;0]; T_d=[0;0;0]; T_l=[0;0;0]; out_n=zeros([],3); tt=0:0.1:10 ; for i = 1:length(tt) t = tt(i) ; T_o = ...

4 days ago | 0

| accepted

Answered
for loop, assign variable
You should initiliaze ed before the loop. for i=1:rows for j=1:columns %calc and store sorted euclidean d...

4 days ago | 1

Answered
write node to cell center
I got the problem..I think you want to do the following. A = xlsread('NODETOSELL.csv') ; % read the file node_vals = A(:...

4 days ago | 0

Answered
Finding Lines in a Large Text File with a Specific Text
Read about textscan. This function gives you option of running a loop and reading required chunks (lines) of the file. In these ...

4 days ago | 0

Answered
Keep positive real values from a cell inside a matrix
Let A be your cell. Convert cells into matrix using: A = cell2mat(A) ; Pick the real parts of A using: A = real(A) ; Pic...

5 days ago | 0

Answered
find Nan in cell
Use isempty..not isnan A={[],[],[31],[2,1]}; %first case A1={[],[2],[3],[6]}% second case P=cellfun(@(x) isempty(x),A,'Un...

5 days ago | 1

| accepted

Answered
How to process .txt files in a folder to be read by readtable?
txtfiles = dir('*.txt') ; N = length(txtfiles) ; data = cell(N,1) ; for i = 1:N data{i} = readtable(txtfiles(i).name, '...

5 days ago | 0

Answered
Finding Data in a loaded file
Let A be your data and you want to seek b from it. idx = find(abs(A-b)<10^-5)

6 days ago | 0

Answered
Using OR logical operator
I = imread(myimage) ; idx = I>= 0 & I<=255 ;

6 days ago | 0

Answered
Checking for multiple values that are the same in a vector
B=[1,2,3,4,4,4,4,5,6,7,8] ; [a,b]=hist(B,unique(B)) ; [b' a']

6 days ago | 0

Answered
Find monthly mean from daily data of same year using find function
REad about datevec. This will give you years, months and days. Using the months and your data you can find mean. Let thedates be...

6 days ago | 0

| accepted

Load more