Community Profile

photo

ha ha


87 total contributions since 2017

ha ha's Badges

  • First Review
  • Thankful Level 4

View details...

Contributions in
View by

Answered
maximum value of matrix
[Val,ix]=max(A(:)); [r,c]=ind2sub(size(A),ix); A(r,setdiff(1:size(A,2),c),:);

2 maanden ago | 0

Question


maximum value of matrix
let's say , I have matrix A=[3 1;4 9 ;5 7 ]; A=[3 1 4 9 5 7 ]; I can find the maximum value from matrix A is 9: ...

2 maanden ago | 3 answers | 0

3

answers

Question


Call pts with z value within a range
Let's say, I have matrix A (kx3 matrix): (X,Y,Z coordinate) A=[1 1 1; 2 2 2; 1 2 1; 9 9 2; 5 5 5; 6 6 6; 3 2 1; 1 1 9; 2 2 8]; ...

2 maanden ago | 1 answer | 0

1

answer

Question


Convert Cell to Matrix
Let' say, I have cell_A: 5x1 cell cell_A={ [] ; [1] ; [5]; [] ; [2]}; How can I convert it to be matrix? 5-by-1 matrix resu...

4 maanden ago | 2 answers | 0

2

answers

Question


Loading Large .txt files
Let's say I have a very very large .txt file with (200millions row & 11 columns= 200m-by-11 matrix). All data are numeric numbe...

4 maanden ago | 2 answers | 0

2

answers

Question


change last element in array by specific value matlab
Let's say I have matrix a a=[1 2 3 4 5 6 7 8 9]; it's observed that the last value of array a is "9". I want to change this v...

4 maanden ago | 1 answer | 0

1

answer

Question


Find the set of 3d data parrallel to the current 3d data
Let's say: I have two set of 3d points as illustration (also see attached file: 1.txt , &, 2.txt) ...

4 maanden ago | 1 answer | 0

1

answer

Question


delete some matrix in cell with condition
Let's say I have 2 cells, & these 2 cells have relationship(cell_A and cell_B always have same dimension; mean: they have same n...

5 maanden ago | 1 answer | 0

1

answer

Question


fitting rectangle through data points
Let's say I have the data as shown in OXY plane(Here, I show 2 examples): How can I fit the rectangle through data: ...

5 maanden ago | 2 answers | 0

2

answers

Question


remove cell array content matrix with condition: length of element in cell smaller than specific value
Let's say: cell_A : 1x3 cell class cell_A={matrix_1 matrix_2 matrix_3 } cell_A={[5x3 double] [1x3 double] [6x3 doubl...

5 maanden ago | 1 answer | 0

1

answer

Question


How to calculate the perimeter of a polygon without using built-in function in matlab
clear;clc; P = [1 1 ;1 2; 2 1 ; 3 1 ;3 5 ; 4 2 ; 4 3 ; 4 4 ; 2 4 ; 1 4 ; 1 3 ];%the original is not in order (random) % How t...

5 maanden ago | 1 answer | 0

1

answer

Answered
How to calculate the perimeter of a polygon without using built-in function in matlab
clear;clc; P = [1 1 ;1 2; 2 1 ; 3 1 ;3 5 ; 4 2 ; 4 3 ; 4 4 ; 2 4 ; 1 4 ; 1 3 ];%the original is not in order (random) hold on...

5 maanden ago | 0

| accepted

Question


get the value of element from matrix
Let's say: I have matrix A, B A=[1 1 200; 2 2 2;9 9 9; 5 5 5; 3 3 355];%matrix 5x3 B=[9 9; 1 1; 3 3]%matrix 3x2 How can...

5 maanden ago | 1 answer | 0

1

answer

Question


delete matrix in cell
let's say: I have 2 cell: cell_A and cell_B cell_A=1x5 cell={[1 1 1] [1 2 3;3 2 1] [4 5 6;7 8 9;1 1 1] [2 2 2;3 3 3] [...

5 maanden ago | 1 answer | 0

1

answer

Question


how to write a matrix to text file with loop name of .txt
Let's say, I have a code like this: for i = 1:size(cell,2) data = cell{i}; %kx3 matrix dlmwrite('name_change_acoordi...

5 maanden ago | 1 answer | 0

1

answer

Question


call all element inside cell (this cell contain another set of cells)
Let's say, I have a cell cell_A=1x3 cell cell_A= { cell A1 cell A2 cell A3}; cell_A1=1x2 cell={[1 1 1;2 2 2],[3 3 3;4 4 ...

5 maanden ago | 1 answer | 0

1

answer

Question


sort the matrix according to order of column
Let's say, I have the matrix: A=[x,y]=[1.1 2;1.2 4;1 4;1.1 3 ;1.3 2;1.3 4;1 2;1.2 3;1.3 3;1.2 2;1 3;1.1 4]; ...

6 maanden ago | 1 answer | 0

1

answer

Question


delete value in matrix with condition
Let's say, I have 2 matrix: A=[1 9 5 6;2 1 4 5;3 4 3 5];%matrix A dist_A=[0.1 0.6 0.4 0.5; 0.5 0.1 0.2 0.3; 0.2 0.9 0.7 0.4];%...

8 maanden ago | 1 answer | 0

1

answer

Question


Miscalculation of new function "pcsegdist" in Matlab R2018b
I try to test the new function "pcsegdist" in Matlab R2018b. However, the result is wrong for Segment point cloud into clusters ...

8 maanden ago | 0 answers | 1

0

answers

Question


Closest coordinate points between 2 data sets
Let's say: I have 2 dataset containning 3d points: A=[1 1 1;1.5 1 1;2 1 1;2.5 1 1;3 1 1;1 2 1;3 2 1;1 3 1;1.5 3 1;2 3 1;2.5 3 1...

8 maanden ago | 1 answer | 0

1

answer

Answered
Closest coordinate points between 2 data sets
clear;clc; A=[1 1 1;1.5 1 1;2 1 1;2.5 1 1;3 1 1;1 2 1;3 2 1;1 3 1;1.5 3 1;2 3 1;2.5 3 1;3 3 1;1 1.5 1;1 2.5 1;3 1.5 1;3 2.5 1];...

8 maanden ago | 0

| accepted

Question


find the 3D coordinate of point with condition
Let's say: I have point A(1,1,1) in 3D space OXYZ, and vector n(1,2,3). How can i find the coordinate point B satifying the cond...

8 maanden ago | 1 answer | 0

1

answer

Question


how to built custom a colormap
I want to built "colorRGB" matrix with k-by-3 matrix (k is predefined number by the user) Let's say: I need 5 colors (k=5; & ra...

8 maanden ago | 1 answer | 0

1

answer

Question


circle fitting to set of 2D data contain noise data
Let's say: I want to fit the circle through the set of data points (17 point with x & y coordinate- Please see attachment test1....

10 maanden ago | 2 answers | 0

2

answers

Question


How to call vector in matrix with condition
Let's say: A=[7 2 3 50;4 5 6 15;1 8 9 20;1 1 1 30] A= 7 2 3 50 4 5 6 15 1 8 9 20 ...

10 maanden ago | 3 answers | 0

3

answers

Question


translation matrix in OXY plane
Let's say: I have matrix A=[x y z] with ~3.000 point data . Please see attachment file, and figure: My question is: how...

11 maanden ago | 1 answer | 0

1

answer

Question


Rotate the 3D point data about Z axis , and // OX OY
Let's say: I have matrix A=[x y z] with ~60.000 point data . Please see attachment file, and figure: Question: How ...

11 maanden ago | 1 answer | 0

1

answer

Question


How to find rotation matrix from vector to another?
I have object with 3 vector. Let's say: e1=[a1 b1 c1]; e2=[a2 b2 c2]; e3=[a3 b3 c3]; The global coordinator system (Ox, Oy, ...

11 maanden ago | 1 answer | 1

1

answer

Question


rotation matrix 3D point data
Let' say , I have the 3d point data in format [xi yi zi] of 176 point as show in attachment file test.txt. The 3d point data is ...

11 maanden ago | 2 answers | 0

2

answers

Answered
rotation meshgrid surface with the predefined angel(using rotation matrix)
clear;clc;x = 1:0.2:1.8; y = 2:0.2:3; z=[ 2 5 2 2 2;2.1 2.1 2.1 2.1 2.1;2 2 2 2 2;3 3 3 3 3;1 1 1 1 1;2.5 2.5 2.5 2.5 2.5]; ...

11 maanden ago | 0

| accepted

Load more