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

Generate a sequence/vector of randomized letters
a='A':'Z'; letters= a(randi(numel(a), 1, 10)) iwant = strjoin(cellstr(letters'),',')

3 hours ago | 1

| accepted

Plot 2-d contour of 3D dataset

3 hours ago | 0

Solve the following differential equations using Matlab.
syms p(x) ode = diff(p)+8*p==9 ; cond = p(0)==-1 ; pSol(x) = dsolve(ode,cond)

3 hours ago | 0

Compare 2 Matrixs Different Dimension With For
A = [1 1 1 1 2 4 2 3 2 1]; B = [4 1 3 1 2]; idx = A'==B

18 hours ago | 0

| accepted

Create an image from x and y locations with greyscale value
data = [0 0 255 0 0.5 70 0 1 111 0.5 0 26 0.5 0.5 26 0.5 1 255 1 0 108 1 0.5 26 1 1 70] ; x = data(:,1) ; y = data(:...

22 hours ago | 0

getting x and y values and writing them
Already you have data in hand. If you want to write that into a file use: data = [t(:) x(:)] ; writematrix(data,'data.txt') ;...

23 hours ago | 0

| accepted

How to draw phase portrait
plot(t,xa(:,1)) In the baove use your required index for the column and plot. You can use quiver, if you have vectors. Assumin...

24 hours ago | 0

3D dose plot and color wash

24 hours ago | 0

I HAVE A KEY WHICH IS 1*16 MATRIX. HOW CAN I DETERMINE IT'S BIT SIZE?
KEY=[0 0 1 0 3 12 8 7 7 8 12 3 0 1 0 0] ; a = single(KEY) ; iwant = whos('a')

1 day ago | 0

| accepted

Create a structure of a field in the workspace
You can save them into a matfile and access, as you like. A = 1 ; B = 2; C = 3 ; save Test.mat ; S = matfile('Test.ma...

1 day ago | 0

append data to the already existed .txt file horizontally
T1 = readtable('file1.txt') ; T2 = readtable('file2.txt') ; T = [T1 T2] ; writetable(T,'file.txt')

2 days ago | 0

overlap the same data 5 times
Let M be the matrix in your mat file. matFiles = dir('*.mat') ; N = length(matFiles) ; iwant = []; for i = 1:N S = ma...

2 days ago | 0

How to determine an y value at a specific x value?

5 days ago | 0

How to get the first derivative of pixels along of line?

5 days ago | 0

How to plot this ellipse
syms s1 s2 t = 0 ; eqn = s1^2-15.156*s1*s2+229.7*s2^2+488.8*t^2+6844000*s2==4.752*10^10 ; fimplicit(eqn,[-600000 200000 -100...

6 days ago | 1

Integrate a polyfit-polyval in matlab, I would appreciate any input. I want to calculate the integral of the sine function from a trend li
%% Integration p2=polyfit(X,Y,4); fun = @(x) p2(1)*x.^4+p2(2)*x.^3+p2(3)*x.^2+p2(4)*x+p2(5) ; % using p2 from polyfit val =...

6 days ago | 0

| accepted

solve equation numerically 1=(1/y)x*exp(x*y)
syms x y f = 1==1/y*x*exp(x*y) solve(f,x) solve(f,y)

7 days ago | 0

How to remove leading zeros in decimal representation?
A = [23, 15, 256, 75]; B= dec2bin(A) strip(string(B),'left','0')

7 days ago | 1

| accepted

I want to select an Excel file by it's extension
%% Here only 1 Excel file will be present in ComparySummary folder. And I want select that Excel file with FilePath %% FilePath...

7 days ago | 0

How to retrieve the specific rows with all the columns in the dataset?
I hope the dataset is in the form of a table. So your table is going to be of size 2832x4. idx = T.Time==1.5 ; T1 = T(idx,:) ...

7 days ago | 0

| accepted

Terrain Elevation Data (Contour - Level Curve)
Load the kml file. This will be your boundary. Load the geotiff file. Make the necessary spatial coordinates using meshgrid U...

7 days ago | 0

How would I detect gray/white pixels in a picture?
REad about find. Gve the pixle value as zero and use find. This will give you the indices. [y,x] = find(I==0) ; % I is gray i...

9 days ago | 0

Average data to every 1, 2, 5, 12 hrs.

9 days ago | 0

scatteredInterpolant function is providing too much noise in interpolation
Read about griddata. Also explores the methods in these interpolations. Go for the method nearest.

10 days ago | 0

Ploting or seeing 3/4D Weather Data NC4 file in MATLAB
pcolor can be worked on only a matrix. You var3 is a 3D matrix. pcolor(var1,var2,var3(:,:,i)) ; % where i = 1,2,.....744 Also...

10 days ago | 0

| accepted

how to crop a size of 25x20 from a image if centre coordinates are known
Let (x,y) be your center pixl locations. iwant = imcrop(I,[x-10 y-10 20 20]) ;

12 days ago | 0

How to plote the stress for each element in the mesh with a color map.
Refer this: https://in.mathworks.com/matlabcentral/fileexchange/32719-postprocessing-in-fem

13 days ago | 0

How to plot this type of function?
t = linspace(-5,5) ; x = exp(t) ; y = 1-exp(-t) ; z = atan2(y,x) ; plot(t,z)

13 days ago | 0

different outputs for same input in every run
%%%%%%%%% rng(1) find_kmeans=kmeans(data(:,1),2); data_2=table(data(:,1),find_kmeans(:)); data_2.Properties.VariableNa...

13 days ago | 0

| accepted