Community Profile

photo

KSSV


INCOIS

6 351 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 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(...

environ 6 heures ago | 0

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

environ 7 heures 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

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

environ 7 heures 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')

environ 14 heures ago | 0

| accepted

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

environ 14 heures 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...

3 jours 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

3 jours 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')...

3 jours 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 = ...

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

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

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

4 jours 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 jours 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)

5 jours ago | 0

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

5 jours 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']

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

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

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

5 jours 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,:))

5 jours 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 jours ago | 0

| accepted

Answered
How to print value in 3 column table
Read about scatteredInterpolant n = 10 ; x = rand(n,1) ; y = rand(n,1) ; z = rand(n,1) ; F = scatteredInterpolant(x,y,z) ...

6 jours ago | 0

Answered
Selecting 3 Random Elements from a list Without Repetition
Read about nchoosek. P = [375.7,515.3,432.3,530.7,454.4,490.7,503.4,449.9,509.0,447.2,474.2,398.3,410.6] ; idx = nchoosek(1:...

6 jours ago | 0

| accepted

Answered
Index a matrix multiplied by a time dependent function
U = zeros(2,2,length(ft)) ; for i = 1:length(ft) U(:,:,i) = exp(-1i.*ft(i)./2).*Z.*exp(1i.*mi.*E(i).*ft(i)).*V.*Z1.*i...

6 jours ago | 0

| accepted

Answered
Remove outliers from signal
USe this: https://in.mathworks.com/matlabcentral/fileexchange/24885-remove-outliers

6 jours ago | 0

Answered
Saving a text file as a time step array
YOu can save the required into a matrix using: iwant = zeros([],3) ; count = 0 ; for nn = 1:TMAX if mod(nn,10)=...

6 jours ago | 1

| accepted

Load more