MATLAB Solutions & Expert Answers

Ask an expert. Trust the answer.
Academic and engineering questions answered by verified MATLAB professionals.

MATLAB expert answering student questions
Showing page 202 of 208 Ask a Question
Create custom matrix with user-defined parameters
Benjamin · Jul 17, 2020 · matrix , matlab

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 -1; 2 2 -1 1; 2 2 1 -1; 2 3 -1…

matrix index is out of range for deletion
Shanaya · Jul 17, 2020 · matrix , matlab

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) = []; end end for the length…

Comparing 2 Matrices Element By Element
Prisha · Jul 17, 2020 · matrix , matlab

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 creating a new Matrix C. Could s…

find position of a element in a matrix
Shrishti · Jul 17, 2020 · matrix , matlab

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 the last number that is less …

how to do Polar plot?
Avnisingh · Jul 15, 2020 · matlab , ploting

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 the vectors are attached as: …

How can I get the histeq function to ignore NaN values?
Anaisha · Jul 15, 2020 · matlab , image processing

I have a set of 2D pictures, I want to only focus on a small blob in the middle while ignoring a sea of NaNs around it If I keep the NaNs, histeq spits out a plain white image. Is …

How to handle montage image?
Kimberly · Jul 15, 2020 · matlab , image processing

Hello everyone. After using the "montage" function, how can I apply the rgb2gray to the montage image?…

How to transform given XY coordinates using 'lwm' tform?
Brielle · Jul 15, 2020 · matlab, image processing

Hi, I have a set of XY coordinates, how do we transform given XY coordinates using 'lwm' tform?   ROI_Coordinates_XY=[1,2; 2,3; 4,5; 6,7; 1,0; 1,6]; %XY coordinates that need to b…

Get a Free Consultation or a Sample Assignment Review!