Community Profile

photo

KSSV


INCOIS

6,356 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
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.

약 1시간 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...

약 2시간 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...

약 2시간 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...

약 2시간 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...

약 2시간 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(...

약 18시간 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...

약 19시간 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

약 19시간 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...

약 19시간 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일 ago | 0

| accepted

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

1일 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일 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일 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일 ago | 1

| 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일 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일 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일 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일 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일 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일 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일 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일 ago | 0

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

6일 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일 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일 ago | 0

| accepted

Answered
How to insert a 3D model into a graph?
Read the data from stl using: https://in.mathworks.com/matlabcentral/fileexchange/6678-stlread https://in.mathworks.com/help/m...

6일 ago | 0

Answered
How to link two given points and add isolines to a plot?
It looks like you have three curves i.e three different set of (x,y) arrays corresponding to Red, Blue and Green. Also you three...

6일 ago | 0

| accepted

Answered
how can I plot particular rows of a matrix?
If A is your data...and you want to plot ith row; use plot(A(i,:))

6일 ago | 0

Answered
extract the most repeated element of a cell array
clc; clear all ; A={[],[18],[14],[],[],[],[14],[],[14],[18]}; B = cell2mat(A) [a,b]=hist(B,unique(B)) ; [b' a']

6일 ago | 0

| accepted

Load more