phd student

Question

Convert Cell to array did not work ?

Hi, I have a cell array wich is 1x561 double 1x321 double 1x481 double when i try to convert it to array using the code...

4 månader ago | 1 answer | 0

Question

Clusters lables for fuzzy c mean

Hi, I have used MATLAB code for fuzzy c mean clustering : X= data set. [centers,U] = fcm(X,3) labels = ones(size(X,1),1); ...

4 månader ago | 1 answer | 0

Question

Accuracy Calculation using confusionmat?

Kindly I have an issue with accuracy calculation, please could you help ? y_train = [ 1 1 1 4 4 3 3 5 5 5 ]; % for x_train %x_...

6 månader ago | 0 answers | 0

Question

How to delete row or column in x.mat file

Hi, I have a X.mat file, its big mat file. how can i delet the rows ( specific row ) !! for example; row : 600 to 3000 d...

6 månader ago | 1 answer | 0

Question

Image Sharpness Calculation ?

I have an issue with Image sharpness calculation, iam trying to code the formula below , but iam getting error : The formula...

ungefär ett år ago | 1 answer | 0

Question

How to calculate the Gaussian Weight ?

How to calculate the Gaussian Weight in matlab for ith pixels of an image ? What is the gaussain weight ? is it the gaus...

nästan 2 år ago | 0 answers | 0

Question

Function IND2GRAY expected input number 2, MAP, to be a valid colormap.

Iam trying to read and convert color images to gray, The code is : [X,MAP]=imread(im); x=ind2gray(X,MAP); ...

mer än 2 år ago | 1 answer | 0

Question

Covariance of Images data set

I have the code below: Np=40; TI = 10; % number of images per person for NTr = 1 : 9; c=1; f...

mer än 2 år ago | 0 answers | 0

Question

Conversion of 100 jpg images to PGM

Kindly how can we convert 100 images which are jpg to PGM format? the Matlab code for one image conversion is: I =...

mer än 2 år ago | 4 answers | 0

Question

Square of 20 random number sum up to 1

The code below generate 20random number which their sum up to 1. r = rand(1, 20); % Start with 20 random numbers. r = r / su...

mer än 2 år ago | 2 answers | 0

Question

Inner Matrix Dimensions Must Agree

I have a matrix of 119 x 1 and Z is 119 x 119 should multiply it by a diagonal matrix of 2 x 2: W = [0.12 0 ; 0...

mer än 2 år ago | 2 answers | 0

Question

Reading 100 image in a loop and save them in a Matrix

I have the code below for reading 100 images in a loop and iam getting the error which is : cd 'C:\Users\Shawin\Desktop\F...

mer än 2 år ago | 3 answers | 0

Question

modify only the diagonal entries in a matrix?

How can I Multiply the diagonal of a matrix by a number, for example; by 2?

nästan 3 år ago | 2 answers | 0

Question

an issue with Matrix Index exceed Matrix

I have changed the code to: X=data; epsilon=1; MinPts=37; C=0; [IDX]=DBSCANf(X,epsilon,Min...

mer än 3 år ago | 1 answer | 0

Question

issue with distance calculation ?

I have an issue with distance calculation, and I used the code bellow to calculate it: k=2; D=data; ...

nästan 4 år ago | 3 answers | 0

Question

Use loop for indexing

I'm trying to retriev an index from data by passing labels from 1 to 2 but the for loop is not changing? clc; ...

nästan 4 år ago | 1 answer | 0

Question

how to Calculate SSE for 20 center

I have the function bellow: function y=ObjSSE(x1) global Dim Data for i=1:size(x1,1) c=reshape(x1(i,...

nästan 4 år ago | 0 answers | 0

Question

Labelling dendrogram has issue

Iam trying to label a dendogram, but iam getting confused out put : rng default; % For reproducibility X1= [1 1....

ungefär 4 år ago | 0 answers | 0

Question

Detect a specific range of correlated variable

I have a matrix and it is 100 row by 16 column. I am trying to find the correlation coefficient of the 100 variable (row) and se...

ungefär 4 år ago | 0 answers | 0

Question

Plot data according th k_dist chart using KNNN

I have used KNN to detect the kth items near a specific point according to the code bellow, But iam not sure how can i use KNN...

ungefär 4 år ago | 0 answers | 0

Question

problem with Matrix Multiplication

I have a matrix D which is 10x2, and a center Cent is 2x2 and a w diagonal matrix which is 2x2 , i have an equation: Resu...

ungefär 4 år ago | 1 answer | 0

Question

Struct data assignment has error

am trying to calculate a distance for struct data type. The distance method is: function ssd=distances(x, c) m=s...

mer än 4 år ago | 1 answer | 0

Question

Class association has error

I have the code bellow: Course.m classdef Course < handle properties courseName stdent e...

mer än 4 år ago | 1 answer | 1

Question

Array Of Object and random number generation

I have a class : classdef Cells <handle properties f; p=[]; c; end end ...

mer än 4 år ago | 1 answer | 0

Question

Using struct instead of class

Hi, I have the code below and I used struct instead of the class , but I'm receiving error ( Index exceed matrix dimension) the ...

mer än 4 år ago | 0 answers | 0

Question

convert cell array of different data type char and number to matrix

I have a xls sheet and i read it using xlsread() function , and its produce a cell array of character and number. the first colu...

ungefär 5 år ago | 2 answers | 0

Question

Error in Fuzzy c mean code

Kindly please could you help me with FCM code , the find() function did not work ? k=3; e = 0.001; [N,D] = size(data...

nästan 6 år ago | 1 answer | 0