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

24 dagen ago | 2 answers | 0

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

ongeveer een maand ago | 2 answers | 0

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

ongeveer een maand ago | 1 answer | 0

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

ongeveer een maand ago | 1 answer | 0

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

ongeveer 2 maanden ago | 1 answer | 0

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

ongeveer 2 maanden ago | 2 answers | 0

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

ongeveer 2 maanden ago | 1 answer | 0

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

2 maanden ago | 1 answer | 0

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

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

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

2 maanden ago | 1 answer | 0

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

2 maanden ago | 1 answer | 0

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

2 maanden ago | 1 answer | 0

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

2 maanden ago | 1 answer | 0

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

3 maanden ago | 1 answer | 0

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];%...

5 maanden ago | 1 answer | 0

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

5 maanden ago | 0 answers | 1

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

5 maanden ago | 1 answer | 0

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

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

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

5 maanden ago | 1 answer | 0

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

5 maanden ago | 1 answer | 0

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

7 maanden ago | 2 answers | 0

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

7 maanden ago | 3 answers | 0

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

8 maanden ago | 1 answer | 0

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

8 maanden ago | 1 answer | 0

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

8 maanden ago | 1 answer | 0

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

8 maanden ago | 2 answers | 0

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

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

8 maanden ago | 0

| accepted

Question

rotation meshgrid surface with the predefined angel(using rotation matrix)

Let's say: x=1:0.2:1.8= [1 1.2 1.4 1.6 1.8]; y=2:0.2:3 = [2 2.2 2.4 2.6 2.8 3]; z=[2 5 2 2 2; 2.1 2.1 2.1 2...

8 maanden ago | 2 answers | 0

Question

plot 3D point data

I have matrix A=[x y z] with 2112 point data . Please see attachment file, and figure: How can I plot the surface using tha...

8 maanden ago | 1 answer | 0

Question

assign the same vector to be the same cell

Let's say, I have the matrix: A=[x,y]=[1 2;1.1 2;1.2 2;1 3;1.1 3;1.2 3;1 4;1.1 4;1.2 4]; If i wanna group all vector havin...

8 maanden ago | 3 answers | 0