Question

randomly selecting and deleting rows from a matrix

b = X; %X is a 600 by 40 matrix xnew = b(randperm(427),:); i want to determine the 173 rows in b that were not selected ...

3 years ago | 1 answer | 0

Question

binary stump prediction algorithm

can anyone help me implement a simple custom binary stump training/prediction algorithm in matlab?

3 years ago | 0 answers | 0

Question

multidimensional histogram plot from a csv data

hi, I have a csv data imported to MATLAB. It has the following data, *Age* *Gender* *Race* 39 1 1 50 1 1 38 1 1 53 1 2 ...

3 years ago | 0 answers | 0

Question

1-NN classification using a testing data

I have a certain testing data (xTest and yTest). both are matrices. I want to perform a 1-NN classification and report the test...

3 years ago | 0 answers | 0

Question

finding the N highest values in a vector

i have a vector matrix with a (1*10,000) dimension. I want to find the 10 highest values from this matrix with their respective ...

3 years ago | 1 answer | 0

Question

highest correlation values of a data

i have the following data, i want to find 10 columns of * _h_* that are correlated with _ *j*_ the most. That is, the columns th...

3 years ago | 0 answers | 0

Question

plotting using a box plot

The following MATLAB code works correctly. After making this calculations I want to do 100 realizations of the training data (xT...

3 years ago | 0 answers | 0

Question

creating a function for my repeating computation

I want to create a function for the following set of repeated computations i will be performing in my work. d = ((x*b) ...

3 years ago | 1 answer | 0

Question

model estimation using training data

I want to estimate a linear model given training data. the linear model equation is given by y=Xb, where 'b' is the model. A...

3 years ago | 0 answers | 0

Question

random data generation using mean and identity matrix

i want to create a random variable X~N(mu,A), mu is mean = 0 and A is a 10*10 identity matrix. what I want to do is to generate...

3 years ago | 1 answer | 0

Question

Warning: Matrix is singular to working precision

i am experiencing the above warning while running this code sigma = eye(10); mu = repelem(zeros,10); xTrain = mvnrnd ...

3 years ago | 2 answers | 0

Question

generating a random variable

Here is what I want to do I want to generate a random variable X (X~N(0,A)), that is it has 0 mean and A is a 10*10 covariance m...

3 years ago | 0 answers | 0

Question

generating a random variable with a given mean and matrix

can any one tell me how to generate a NORMAL DISTRIBUTION random variable X = N(mu,A), where mu is the mean (mu = 0, 0 mean) and...

3 years ago | 1 answer | 0

Question

Differential Privacy using Laplace Mechanism

Is anyone willing to help me with this assignment?

3 years ago | 0 answers | 0

Question

qda plot please look at code

Can anyone check what is wrong with this code? I want to plot a Quadratic Discriminant Analysis with a scatter plot instead I'm...

3 years ago | 1 answer | 0

Question

level curve of two pdfs

hi, i want to plot the level curve (using contour function) of the intersection of two PDFs. one with mu = [1,1] and sigma = [2...

3 years ago | 1 answer | 0

Question

LDA plot from a discriminant function

Hi, given the following training samples and linear discriminant function: training samples: N = 10 samples from a normal distr...

3 years ago | 0 answers | 0

Question

generate sample from a normal distribution

Hi, I want to generate N=10 samples from a normal distribution with, mu = [1,1] and sigma = [2,-1;-1,1] in matlab? Thanks

3 years ago | 1 answer | 0

Question

displaying the level curve of a probability density function

I have a probably density function given below, it is attached as .jpg. - now i want to display it's level curves on a basic ...

3 years ago | 1 answer | 0

Question

Plotting a given command

HI, I am very new to Matlab. How do I plot the command below, please help me ASAP. mu = [1,1]; sigma = [2,-1;-1,1]; rng...

3 years ago | 0 answers | 0

Question

Generating a normal distribution to a given distribution

Hi, I am having trouble with this question, can someone help me ASAP. Generate N = 1000 samples from a standard normal distri...

3 years ago | 0 answers | 0