Community Profile

# KSSV

### INCOIS

6 639 total contributions since 2011

Professional Interests: Mathematical Computing

View details...

Contributions in
View by

Making a Function for matrix
iwant = (max(A,[],2)-min(A,[],2))'

en dag ago | 0

Averaging z values for xy gridded data
A = [60.0000 50.0000 170.0000 180.0000 -16.1680 60.0000 50.0000 170.0000 180.0000 -8.6020 70.0000 60.0000 ...

en dag ago | 0

How do I sum the elements of each corner of a matrix?
iwant = A(1,1)+A(1,end)+A(end,1)+A(end,end)

3 dagar ago | 1

| accepted

Interpolation Question Regarding Value Alignment
Let t be your 4 seconds sampled time and y be your respective data. dt = 3 ; ti = min(t):dt:max(t) ; yi = interp1(t,y,ti)...

3 dagar ago | 0

I wish to integrate this expression
syms V T v U r S C t f = (V/(9.81*(T-T*V/v)-U*r*S*C(t^2-V^2)/2)) ; int(f,V)

6 dagar ago | 0

I need to plot a trajectory, of a point on circumference of a circle moving around its centre and centre is moving along its x-axis.
% cicle th = linspace(0,2*pi) ; r = 1. ; xc = r*cos(th) ; yc = r*sin(th) ; % center of circle movine along ax axes x...

6 dagar ago | 0

Searching point unknown on the grid

6 dagar ago | 0

Removing zeros from a binary array if length of zeros is lesser than a value
input = [0;0;0;0;0;0;0;1;0;1;1;1;0;0;0;0;0;0;1;1;0;0;0;0] ; idx = input==1; % get the locations of 1 % split zeros and on...

7 dagar ago | 0

| accepted

how can i change this code
in = 0 ; pivot = table(in,index); In the above line you have indexed in to zero. There is no zero and negaitve indices in MAT...

7 dagar ago | 0

How to take the inverse of each individual array value and store it to a new array?
If R is value, if you want inverse use C = 1/R ; If R is an array use: C = 1./R ; In your case..use Conductances = 1....

7 dagar ago | 0

selecting specific rows from a matrix corresponding to the columns of other matrix
Let A abd B be your matrices of size 40*2 and 25000*9. [m,n] = size(A) ; C = cell(m,1) ; for i = 1:m C{i} = B(A(i,1...

7 dagar ago | 0

| accepted

Vector plot over a surface plot
TT = hypot(qx, qy); figure() pcolor(x, y, TT); xlim([-7 7]); ylim([-5 5]) colormap jet colorbar view(2) hold on quiver(...

7 dagar ago | 0

| accepted

Calculate the length of symbolic expression
S = char(df) ; % convert sym to string idx = strfind(s,' ') ; % get empty spaces S(idx) = [] ; % remove the mepty sp...

7 dagar ago | 0

| accepted

how to plot euler formula in matlab?
i = linspace(0,1,100) ; y = exp(100*i*pi) ; plot(i,y)

7 dagar ago | 0

K-Means Matlab cluster assignment
If idx are the indices and P are the points you have. figure hold on for i = 1:4 plot(P(idx==i,1),P(idx==i,2),'.') ; ...

7 dagar ago | 0

How can I limit a set of input data, 6 values, to a min and max point and as an integer
if min(user)<1 || max(user)>59 error("Check the input") endif

7 dagar ago | 1

| accepted

Error to applying ismember for cell arrays
load("example.mat") ; N = length(A) ; A1 =zeros(N,1) ; for i = 1:N A1(i) = str2num(A{i}') ; end B1 = cell2mat(B)' ;...

8 dagar ago | 0

| accepted

Converting flowchart to matlab code
x = 0 ; % your initial x value y = 100 ; % your fixed y value t0 = 0 ; % initial time dt = 0.00025 ; % time step t =...

8 dagar ago | 0

| accepted

How do i find the intersection between two torus ?

8 dagar ago | 1

| accepted

Make coastline contour from DEM (3d matrix)
[c,h] = contour(dem,[0.5 0.5]) ; % filter c idx = c(1,:)<1 ; c(:,idx) = NaN ; figure pcolor(dem) ; shading interp ;...

8 dagar ago | 0

| accepted

How to pull a range of values out of an array using a loop
Simply use: idx = tau < 1e8 ; In idx, 1 is acceptable and 0 is unacceptable. Read baout logical indexing. You need not run ...

8 dagar ago | 0

how to combine three different column into a single colum using colon
If you have it in matrix...A use.. iwant = A(:) ;

8 dagar ago | 0

Increase the resolution of line plots

8 dagar ago | 0

calculation x-value, given the y-value of a discrete function

8 dagar ago | 0

How can i query last column based on another values column

8 dagar ago | 0

How to generate point cloud of two merged spheres?
Refer here: https://in.mathworks.com/help/matlab/math/numbers-placed-randomly-within-volume-of-sphere.html

8 dagar ago | 0

Index in position 2 exceeds array bounds
You size of pos is 4x2....you are trying to accessing third coulmn from pos....where as it has only two columns..so obviously yo...

8 dagar ago | 0

Is there a way to pass in a matrix of color values (n*3) into plot in matlab
You need not use a loop..you can make your data a matrix and use plot. X = repmat(1:10,10,1) ; Y = rand(10) ; plot(X',Y')

8 dagar ago | 0

Convert 2D data to 3D matrix
If T is your Table...you can access the data of the column using T.(1) , T.(2), T.(3) etc.,. If you have column names....you can...

8 dagar ago | 1