Community Profile # Khairul Nur

Last seen: 2 months ago Active since 2019

#### Statistics

• #### Content Feed

View by

Question

round to 2 decimal places but still have more than 2 decimal places when storing
hi, i tried to round to 2 decimal places using (number*100)/100.However, when i used my function to store the result, the store...

3 months ago | 2 answers | 0

### 2

Question

creating array based in another array
Hi, i have an array nx1 (refer array 1 as below) and i want to create 2nd array based on the 1st array as follow: array 1: 1 ...

1 year ago | 2 answers | 0

### 2

Question

how to store values into array/matrix with different number of rows and only one column
Hi, how i want to store values from loop which has only 1 cols but may have different numbers rows. For example, in 1st loop th...

1 year ago | 1 answer | 0

### 1

Question

Logical comparison between two tables
hi, i have two tables (value_a_per_cluster and calc_distance_min) which need to do logical comparison. value_a_per_cluster = ...

1 year ago | 1 answer | 0

### 1

Question

manipulate table containing numeric and string
hi, i have a table containing numeric and string as follow: crisp_distance_per_cluster1 crisp_distance_per_cluster2 ...

1 year ago | 1 answer | 0

### 1

Question

ismember and if not working
hi, basically i want to check whether the array "A" contains specific value or not (0,2 and 3), if the array lack of specific va...

1 year ago | 1 answer | 0

### 1

Question

Returning Incorrect index of array
hi, The simple code below try to find the min value and its index, excluding 0 x = [0 0.5 4 5]; [r,index] = m...

1 year ago | 2 answers | 0

### 2

Question

Why creating cell then it become table.
Hi, I have a main n a function. This is the main: k=3; data=[2,1;2,4;5,3;3,3;4,3;1,3;1,1;1,2;4,2;5,2]; noofrow=10; pm=[4.46...

1 year ago | 1 answer | 0

### 1

Question

sum of array by specific index value
hi, i have two array. First array containing index and second array (hasil_tambah_array) containing the value to be sum-up as be...

1 year ago | 2 answers | 0

### 2

Question

summation of matrix in column
hi, i have this final_mat (40x11), below is my code. What i trying to do is,first it will check the value of j:1 equal to j (1,2...

2 years ago | 1 answer | 0

### 1

Question

Understanding "Cell contents reference from a non-cell array object." error
i try to convert table mnew to array. Below is my code. Please help me to understand. I also tried tabletoarray(has error too) n...

2 years ago | 0 answers | 0

### 0

Question

append new row in for loop to create matrix
hi, i want to append a row to creating a 40x4 matrix. Here is my code. for j= 1:row % row=4 for n=1:noofrow %noofrow=40 ...

2 years ago | 0 answers | 0

### 0

Question

manipulation attribute between two matrices inside loop
Hi, im new in matlab. Please help me to manipulate 2 matrix. For example if i have matrix MM(40X10) and MMM(4X10). I also need t...

2 years ago | 1 answer | 0

### 1

Question

Please help me to understand Error "The expression to the left of the equals sign is not a valid target for an assignment.
hi, i have this code a error "The expression to the left of the equals sign is not a valid target for an assignment." Please hel...

2 years ago | 2 answers | 0

### 2

Question

return many value in function.
hi, i have this main function that called calc_centroid(data) as folow: [cc1,cc2,cc3,cc4] = calc_centroid(data) %is it correct...

3 years ago | 2 answers | 0

### 2

Question

append new row in loop
hi all, i need some solution. Please help. I want to create a function which has L is a matrix 1:11 and return a matrix 40:11 af...

3 years ago | 1 answer | 0

### 1

Question

Understanding :error To RESHAPE the number of elements must not change while manipulating matrix
Hi, i need some explaination, i run this code and the input matrix 40*11 and resulted 41*11 matrix. I try to put it into a new m...

3 years ago | 1 answer | 0

### 1

Question

multiple loop and produce infinite loop
hi, i have trouble using while loop. Where should i put the j inrement? i try fews times but infinite loop. Thanks in advance. ...

3 years ago | 1 answer | 0

### 1

Question

compare between element of matrix in different size
hi, i need some help here. I want to compare element between two matrices new_mat[40x11] and kmatrix[1x4]. If the 11th columns...

3 years ago | 1 answer | 0