MATLAB QUESTIONS & EXPERT ANSWERS

Ask an expert. Trust the answer.
Your academic and career questions answered by verified experts.

Illustration
how to convert a matrix to a cell array
Ananyasingh - 2020-07-24

I have a 2x10 matrix. Would anybody know how I could convert it into a 1x10 cell array - so that each cell contains a 2x1 matrix? I'm new to matlab an...

How to make matrix a possitive definite
Saishasingh - 2020-07-20

Hi Everyone, I have a problem with classification. I have 39 samples of training data (39x10935) and 347 samples of testing data (347x10935). classify...

Identify the minimum number of rows in a matrix meeting a condition
Jeremiah - 2020-07-20

Please assume that I have a matrix as follows:   A = [0 1 0 0 1 1 0 0 0 0 1 0 0 0 0 1 1 0 1 1] I would like to identify and selcet the minimum number...

Replacing Values in Matrix with NaN's based on Row and Column
Emiliawilliams - 2020-07-20

I hope all of you are well. I'm currently working on replacing specific element values with NaN's within a matrix that is 300x600. I want to replace t...

what is the most efficient way to set several matrix values to zero ?
Jonathan - 2020-07-20

I want to know which is the most efficient way to set a lot of matrix values to zero. I currently have a 90x90x7613 matrix with several numbers inside...

Combining matrices from workspace or from directory into a single matrix.
Christian - 2020-07-20

Can someone explain how to combine .mat files present in workspace or in directory into one .mat file? The problem is that the files are not properly ...

Pre-processing matrix in order to have a blank line for every change of x
Isabellasmith - 2020-07-20

In order to feed into another program, I must do exactly as the title says. So far, I have been able to find the indices where a blank row is needed d...

Apply a mean filter on a matrix
Abigail - 2020-07-17

How can i apply a mean or laplacian or average or any kind of filters 3x3 on any matrix i give it to it and get the new matrix ? What is the code for ...

Create custom matrix with user-defined parameters
Benjamin - 2020-07-17

I would like help creating a custom matrix that follows this pattern:   [1 1 -1 1; 1 1 1 -1; 1 2 -1 1; 1 2 1 -1; 1 3 -1 1; 1 3 1 -1; 2 1 -1 1; 2 1 1 ...

matrix index is out of range for deletion
Shanaya - 2020-07-17

Hello, I am trying to delete certain rows of an 1D array if a conditional statement is true. My code is:   for i = 1:length(TF) if TF(i) == 1 pitch(i...

Get a Free Consultation or a Sample Assignment Review!