Community Profile # KSSV

Last seen: Today Active since 2011

Programming Languages:
Python, MATLAB, Fortran
Spoken Languages:
English, Hindi, Telugu

#### Statistics

All
• • • • • • • • • • • • #### Content Feed

View by

Enter a string and print it backwards
str = 'MATLAB' ; % Option 1 flip(str) % option 2 str(end:-1:1) For printing, you can use fprintf fprintf('%s\n',str)

alrededor de 20 horas ago | 0

Constructing a 3D model out of 2D image slices

alrededor de 21 horas ago | 0

xlFiles = dir('*.xls') ; % give extension of your files N = length(xlFiles) ; % loop for each file for i = 1:N xlFile =...

3 días ago | 0

How to implement the output matrix without if conditions
n = 5 ; A = zeros(n) ; for i = 1:n for j = 1:i A(i,j) = i+j-1 ; end end A You cannot remove zeros, if yo...

4 días ago | 1

| accepted

Apply 'findpeaks' in every column
ncol=size(Pilant_Vy_env,2); MAX = zeros(ncol,3) ; for k = 1:ncol [PKS,locs,~,prm] = findpeaks(Pilant_Vy_env(:,k)); ...

6 días ago | 0

Calculating a distance between a point and a contour along an axis
Let O(x,y) be your red point. You can get the blue line intersecting the contour using knnsearch. If you want to draw a line...

6 días ago | 1

| accepted

I want to apply a different color to the bar in yyaxis.
figure(2), grid on, hold on ...

6 días ago | 1

issue while concatenating the matrix
[file_list, path_n] = uigetfile('final*.mat', 'Grab all the files', 'MultiSelect','on'); if ischar(file_list); file_list = {f...

6 días ago | 1

| accepted

Can you explain ?
Thats is simple.... min(b)--> this takes minimum value from b max(c)--> this picks maximum from c a:b--> this will gnerate...

6 días ago | 1

| accepted

Extracting along a dimension in a 4D array
YEs, it is correct. When you extract you will get 1x121x121 array. You may remove the extra dimension using squeeze. na = 11; n...

6 días ago | 0

| accepted

For loops for printing pattern in matlab
str = '#' ; for i = 5:-1:1 s = repmat(str,1,i) ; fprintf('%s\n',s) ; fprintf('\n') end

6 días ago | 0

How to save data in csv format as output data?

7 días ago | 0

How to extract only certain points contained in a segment?

7 días ago | 0

adding variable in the name of table for while loop
i=4; while i<37 Alq_i_t.Properties.VariableNames{i} = 'mz'; i=i+1; end

7 días ago | 0

Creating a 2D grid with evenly spaced points
Read about meshgrid x = linspace(0,1,10) ; y = linspace(0,1,10) ; [X,Y] = meshgrid(x,y) ; plot(X,Y,'.r')

7 días ago | 0

| accepted

How do i get multiple values all at once from cell array?
Let A be your cell array of size 7365x60 where each cell has 1x7 array. B = cell2mat(A) ; iwant = B(:,2:7:end) ;

7 días ago | 0

define color range in scatter plot

7 días ago | 0

Cascading sort order that restarts count at each subsequent column
DAT = array2table([ "A" "a" "1" "A" "a" "2" "B" "a" "3" "C" "a" "3" "C" "b" "5" "C" "a" "4" "...

7 días ago | 0

Unable to perform assignment because the left and right sides have a different number of elements.
Error is simple.... you are trying to save more number of elements in an array then it is initialized for. Example: A = zeros...

8 días ago | 1

| accepted

The distance of a point from a set

8 días ago | 0

Interpolating with 3 variables

8 días ago | 0

| accepted

how to make a patch on geoplot?
x = [126.509 126.508 126.511 126.512] ; y = [37.403 37.4063 37.4048 37.4081] ; patch(x,y,'r') In case, you looking for: [val...

8 días ago | 0

Find Intersection between curves
This should not dissappoint you. https://in.mathworks.com/matlabcentral/fileexchange/22441-curve-intersections

8 días ago | 0

How to plot two parameter bifurcation diagram
One of the option: https://in.mathworks.com/matlabcentral/fileexchange/35355-stability-chart

8 días ago | 0

change histogram to PDF
x = randn(10000,1) ; histogram(x) pd = fitdist(x,'kernel'); x_values = min(x):0.01:max(x) ; y_values = pdf(pd,x_values);...

8 días ago | 0

plot using user custumized legend lines
K = [100;200;400;600;800;1000;1200;1400;1600;1800;2000]; a = 1; B=0.2; r = radius_cal (K,B) ; c = {'r','g','b','c','m','y'...

8 días ago | 1

Plotting Inequalities in Matlab
x = -10:0.1:10 ; y = -10:0.1:10 ; [X,Y] = meshgrid(x,y); ineq = (X > 0) & (Y > 5./X) & (Y > (X.^(2)-25)./(5*X)); h = pcolo...

8 días ago | 0

| accepted

a single line of code that will take complex variables x and y and define a variable z as the phase of the product of x and y.
x = rand+1i*rand ; y = rand+1i*rand ; p = x*y ; iwant = atan(imag(p)/real(p))

8 días ago | 0