Community Profile

photo

KSSV


Last seen: Today

7 234 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
Plotting a an equation as function of radius .
t = linspace(pi/2,3*pi/2) ; k = 10 ; r0 = 1000 ; r = r0*exp(t/k) ; % on solving the give equation for r plot(t,r)

ungefär 16 timmar ago | 0

Answered
Count number of values within a range in tall array per column and assign count to new matrix
You can achieve this using histogram. Read about histcounts.

en dag ago | 1

Answered
diameter of image (1024x1024 logical value)
Let A be your logical of 1024*1024 [y,x] = find(A) ; % get all th points with 1 C = [mean(x) mean(y)] ; % this gives ...

en dag ago | 1

Answered
Order of filenames is wrong
Use this fileexchange function: https://in.mathworks.com/matlabcentral/fileexchange/47434-natural-order-filename-sort

en dag ago | 1

Answered
Plotting with gaps in x-axis data
It looks like you have a non continuous x-axis data. This problem occurs when you have such data and try to plot. Make x-axis ...

en dag ago | 0

Answered
write a matlab code that generate a random number, then divide the generated number by 4 if its even number and greater than 100.
To generate randomnumber read about randi. To check whether even or not use mod. Read about mod. To check whether greater or...

en dag ago | 0

Answered
A year containing a date or not
Read about the function calendar. https://in.mathworks.com/help/matlab/ref/calendar.html Fromhere you can pick the required co...

en dag ago | 0

Answered
i have a variable in my workspace and i dont know its name directly
If you have variables in the workspace....to get the variable names use: S = whose ; names = {S.name} ; Use strcmp to find ...

2 dagar ago | 0

Answered
How to plot fft outputs in frequency domain?
You read here....https://in.mathworks.com/help/matlab/ref/fft.html You have to generate the frequency values based on the sampl...

2 dagar ago | 1

| accepted

Answered
How to generate one random integer
As you cannot fix infinity, decide a huge/large number ..say 10^5 and use: x = randi([-10^5 10^5],1)

2 dagar ago | 0

| accepted

Answered
How to calculate the derivative and deviation of a series of data
To find deviation i.e standard deviation use std. To find derivative ..if you have time step use... d = diff(data)/dt ; Alo...

3 dagar ago | 0

Answered
How to run a code several times using a for loop
Make your given code into a function with input and output. Output should be your required matrices/ data. Make output into ...

4 dagar ago | 0

Answered
K means image clustering with time series data
Let x be your 1D data. Assuming it column vector. t = 1:length(x); t = t'; idx = kmeans([t x],3);

4 dagar ago | 0

| accepted

Answered
How do I take the 'left' side of a matrix? (row-wise)
For your first example: b = a(:,1:3) ; If A is your matrix..if your first first n columns B = A(:,1:n) ; If you want fir...

5 dagar ago | 0

Answered
Making a matrix act like a coordinate plane
x = -50:50 ; y = -50:50 ; [X,Y] = meshgrid(x,y) ;

5 dagar ago | 0

| accepted

Answered
get indices where the value is 0
Let A be your vector....to get indices of zero use... idx = find(A==0) ; % gives indices directly idx_l = A==0 ; % gives...

5 dagar ago | 0

Answered
Two different ways of using iterations
In the first case, you are not saving the result. Check the below. load tal v_stor=zeros(1,length(V)); v_liten=zeros(1,lengt...

6 dagar ago | 1

Answered
How to store vector in a loop and print into excel file all at once?
You are wrtitng R in the xlswrite command. Replace R with Es. L = length(y_train_corr(1,:)); R = corrcoef(y_train_corr(:,2),y_...

6 dagar ago | 0

| accepted

Answered
f(x,y)<=0
It depends on what your function f is. Your function f will show some relation between x and y. Also you should define range of ...

6 dagar ago | 0

Answered
Problems of convert decimal number to a string
iwant = sprintf("0.12f 0.12f 0.12f",num) ; Try with sprintf. You can split each number into a cell using num2cell, and use ce...

7 dagar ago | 0

Answered
Put every 3 data points in matrix A into a separate row in matrix B.
A = 1:9 ; iwant = reshape(A,3,3)' ;

7 dagar ago | 0

| accepted

Answered
How can i make my results occupy less space on my plot?
n = 101; % Number of grids dy = 1.0 / (n-1); Re = 100; % Reynolds Number we define phi_new = zeros(1,n); % St...

8 dagar ago | 1

| accepted

Answered
Easy Substitution (variable)
delta = subs(delta,v)

9 dagar ago | 0

| accepted

Answered
Montage Function Problems in MATLAB
Try montage({im11, im22, im33, im44}) ; If all your images are 3D, try montage(cat(3,img1,img2,img3,img4)) ;

9 dagar ago | 0

Answered
How to Run a Code for all files in a folder
You input the filename to the function transformdata and save the output into cells. files = dir('*.csv') ; N = length(files...

9 dagar ago | 0

| accepted

Answered
if greater than in for loop
for k = 1:length(seven) if seven(k) > 100 seven(k) = seven(k) - 25 ; end end

9 dagar ago | 0

| accepted

Answered
how to get coordinates of a marker
You can plot your required circle given center and radius using the below method. C = [346 278] ; % Center of the circle R ...

10 dagar ago | 0

| accepted

Answered
How can I color the pixels of my image depending of it's value in an equation?
Let I be your image pixle matrix with the values Prob repalced using the shown formula. % To repalce values less than Prob id...

10 dagar ago | 0

Answered
Insert missing values in specified positions and use for loop
This problem is dicussed multiple times....you can checki there in this useful link: https://in.mathworks.com/matlabcentral/ans...

10 dagar ago | 0

| accepted

Answered
How do I colour a band between 2 sets of data of different length
x=randn(1,200) ; t=1:200 ; y=4+randn(1,180); t1=1:180 ; % Append NaN's in y1 to extend it to 1:200. n = length(t)-length(...

10 dagar ago | 0

Load more