photo

M.Prasanna kumar


Last seen: meer dan 4 jaar ago Active since 2018

Followers: 0   Following: 0

Statistics

  • Thankful Level 3

View badges

Feeds

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...

bijna 5 jaar ago | 2 answers | 0

2

answers

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...

bijna 5 jaar ago | 1 answer | 0

1

answer

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))...

ongeveer 5 jaar ago | 0 answers | 0

0

answers

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 ...

ongeveer 5 jaar ago | 1 answer | 0

1

answer

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 ,...

meer dan 5 jaar ago | 1 answer | 0

1

answer

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 ,...

meer dan 5 jaar ago | 1 answer | 0

1

answer

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 ,...

meer dan 5 jaar ago | 0 answers | 0

0

answers

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???

meer dan 5 jaar ago | 3 answers | 0

3

answers

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) ...

meer dan 5 jaar ago | 1 answer | 0

1

answer

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...

meer dan 5 jaar ago | 0 answers | 0

0

answers

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); ...

meer dan 5 jaar ago | 1 answer | 0

1

answer

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...

bijna 6 jaar ago | 1 answer | 0

1

answer

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...

bijna 6 jaar ago | 1 answer | 0

1

answer

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 ...

bijna 6 jaar ago | 3 answers | 0

3

answers

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...

bijna 6 jaar ago | 0 answers | 0

0

answers

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...

bijna 6 jaar ago | 1 answer | 0

1

answer

Answered
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...

bijna 6 jaar ago | 0

Answered
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...

bijna 6 jaar 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...

bijna 6 jaar ago | 0 answers | 0

0

answers

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...

bijna 6 jaar ago | 1 answer | 0

1

answer

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 =...

bijna 6 jaar ago | 1 answer | 0

1

answer

Question


i want x,y coordinates which are randomly generated between 1 to 300 ,condition is distance between every coordinate is >20. how to proceed further
i=5 ; %% no. of random coordinates xc = round((1 + (60-1)*rand(i,1)),0); %% random X- coordinate...

bijna 6 jaar ago | 2 answers | 0

2

answers