Community Profile

photo

Khairul Nur


Last seen: 15 days ago Active since 2019

Statistics

  • Thankful Level 2

View badges

Content Feed

View by

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

4 months ago | 2 answers | 0

2

answers

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

4 months ago | 1 answer | 0

1

answer

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

4 months ago | 1 answer | 0

1

answer

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

4 months ago | 1 answer | 0

1

answer

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

4 months ago | 1 answer | 0

1

answer

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

5 months ago | 2 answers | 0

2

answers

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

5 months ago | 1 answer | 0

1

answer

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

6 months ago | 2 answers | 0

2

answers

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

answer

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

answers

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

answers

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

answer

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

answers

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

2 years ago | 2 answers | 0

2

answers

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

2 years ago | 1 answer | 0

1

answer

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

2 years ago | 1 answer | 0

1

answer

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

2 years ago | 1 answer | 0

1

answer

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

2 years ago | 1 answer | 0

1

answer

Question


how to produce a logical matrix using index matrix
Hi, i need some help here, im also new in matlab. i have 'b' containing index matrix for example b=1; i want to create logical m...

2 years ago | 1 answer | 0

1

answer