MATLAB QUESTIONS & EXPERT ANSWERS

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

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

Comparing 2 Matrices Element By Element
Prisha - 2020-07-17

I have 2 matrices A and B, both 7x3. I want to compare each element in A with its corresponding element in B, taking the larger of the 2 values and cr...

find position of a element in a matrix
Shrishti - 2020-07-17

How do I find the last element in a increasing matrix that is less than a particular number. For example if my matrix is A=[ 1 2 3 4 6 8 9] And I want...

how to do Polar plot?
Avnisingh - 2020-07-15

Thank you for the help in advance. I wanted to plot the data usin' polar plot as the exmple shows https://matplotlib.org/examples/api/radar_chart.html...

Get a Free Consultation or a Sample Assignment Review!