Community Profile # M.Prasanna kumar

Last seen: más de 2 años ago Active since 2018

#### Statistics

• #### Content Feed

View by

Question

how to replace all elements with zeros after "ONE" (number) in every column of matrix???
in each column of 2000*32 matrix there are so many "ONES" i want to replace all elements with zeros after first "ONE". there mi...

más de 2 años ago | 2 answers | 0

### 2

Question

how to calculate deviation for set of values??
No of cases = 112; (112*9=1008) in each case i have 9 obsevations( but there are missing values in between for which matlab tre...

más de 2 años ago | 1 answer | 0

### 1

Question

how to reduce forloops and run time??
for rr = 1:25 for mm = 1:150 for nn = 1:300 [~,idx] = min(abs(var1(:,1) - tof(mm,nn,rr))...

casi 3 años ago | 0 answers | 0

### 0

Question

how to remove zero matrix(all elements are zeros) from 'distances which is 3d matrix'??
distances = reshape(dist3,[100,250,484]); in the above "distances" matrix there are 231 matrices in which all the elements are ...

alrededor de 3 años ago | 1 answer | 0

### 1

Question

how to reduce the use of repeated for loops as i explained below???
when SS =1 , KK loop should not take the value from 1 to 3 when SS = 2:23 , KK loop should not run for SS-1:SS+1 when SS =24 ,...

alrededor de 3 años ago | 1 answer | 0

### 1

Question

I want to reduce the repeated for loops as i explained below. any help??
when SS =1 , KK loop should not take the value from 1 to 3 when SS = 2:23 , KK loop should not run for SS-1:SS+1 when SS =24 ,...

alrededor de 3 años ago | 1 answer | 0

### 1

Question

i want to reduce the use of repeated for loops as i explained below???
when SS =1 , KK loop should not take the value from 1 to 3 when SS = 2:23 , KK loop should not run for SS-1:SS+1 when SS =24 ,...

alrededor de 3 años ago | 0 answers | 0

### 0

Question

how to add all 2d matrices in a 4D matrix???
i have a matrix of 10*50*24*24 i want to add all 10*50 matrices?? any help???

alrededor de 3 años ago | 3 answers | 0

### 3

Question

how to increase the number in for loop as i explained below??
for tt = 1:24 for rr = 1:24 for mm = 1:10 for nn = 1:50 [~,idx] = min(abs(time(:,1) ...

alrededor de 3 años ago | 1 answer | 0

### 1

Question

i want to search index number of element (based on condition)in an array and magnitude corresponds to index in matrix
I have matrices from t1 to t24 (24 matrices of size 122249*25) time matrix and tof is 4D matrix , when value in time matrix e...

alrededor de 3 años ago | 0 answers | 0

### 0

Question

i want to find distances between coordinate points as i explained below?? any help??
i have coordinates as A = (0,0); B = (1,0); C = (2,0) D = (0,1); E = (1,1); F = (2,1) G = (0,2); H = (1,2); ...

alrededor de 3 años ago | 1 answer | 0

### 1

Question

i have a matrix A(25357*2), i want to delete rows as i explained below. any help?
In the attachced excel sheet above, Some rows starts with 1(40rows),some rows starts with 2(58rows), some rows starts with 3(55...

más de 3 años ago | 1 answer | 0

### 1

Question

i have a matrix A of size 523418*2, i want to delete repeating pair?? as i explained below. any help??
a = [ 1 2 ; 2 1 ; 2 3 ; 5 2 ] a = 1 2 2 1 2 3 5 2 i used following two logics,but n...

más de 3 años ago | 1 answer | 0

### 1

Question

i have a martix A, i want missing numbers in the 2nd column as i explained? any help??
A = 1 3 1 5 1 6 1 8 1 10 2 4 2 8 2 9 3 ...

más de 3 años ago | 3 answers | 0

### 3

Question

I have followwing code in which xn = (x1,y1)& yn= (x2,y2) coordinates.Distance between each (x1,y1) and (x2,y2) is greater than 22.i want (x,y) coordinates, condition is distances between every coordinate to all other coodinates should be >22
F = [x5;y5]'; %% x,y coordinates D = pdist(F); indx = squareform(D)>22; [p1,p2] = find(triu(indx)); xn = F(p1 , :); yn = F...

más de 3 años ago | 0 answers | 0

### 0

Question

I have matrix F (x,y coordinates), which is 1000*2 matrix. i calculated distances between coordinates using PDIST2 command. i want coordinates which are at distance greater than 22?
F = [x5;y5]'; % x,y coordinates distances = pdist2(F,F); %% claculating distances between every coordinate to all other coodina...

más de 3 años ago | 1 answer | 0

### 1

I should fill the area of a 400x100 square with random circles having random diameters between 20 and 1 (without overlap). Then, I need the output file of the generated coordinates. Can someone help me, please?
sorry to forum members, i am not expecting forum to solve completely. i'm expecting only help. its my mistake , i didnt provide...

más de 3 años ago | 0

I should fill the area of a 400x100 square with random circles having random diameters between 20 and 1 (without overlap). Then, I need the output file of the generated coordinates. Can someone help me, please?
All the random diameters i want is integers. sorry for the typo 400 * 100 is rectangle. yes i want package with maximum number o...

más de 3 años ago | 0

Question

i want to pick n1*2 matrix (sub matrix 1) randomly from m*2 matrix (n1<m). condition is while picking n2*2 (submatrix 2) the rows of submatrix 1 should not be repeated in the subsequent selection. please help me
example: A = [ 1 2 ; 3 4 ; 5 6 ; 7 8 ; 9 10; 11 12 ]; output should be A1 = [ 1 2 ; 3 4 ]; A2 = [ 5 6 ; 7 8 ; ]; A3 = [ 9 1...

más de 3 años ago | 0 answers | 0

### 0

Question

I need x,y coordinates which are randomly generated between 1 to 400 for x coordinates and 1 to 100 for y coordinates, condition is minimum distance between coordinates is 10 and maximum distance is 20, distances should vary from 10 to 20? plz help
clear all; close all; pointsToPlace = 30 ; % # of random coordinates we need to place % Preallocate points x = zeros(1, p...

más de 3 años ago | 1 answer | 0

### 1

Question

for the same answer,,suppose, X ranges from 1 to 500, y ranges from 1 to 200 , Is it possible to find how many such coordinates are possible so that distance from each and every coordinate to other coordinate is > 20
BWremain = true(300); % Number of random coordinates N = 100; % Selected coordinates are stored these variables row =...

casi 4 años ago | 1 answer | 0