MATLAB QUESTIONS & EXPERT ANSWERS

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

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

How can I get the histeq function to ignore NaN values?
Anaisha - 2020-07-15

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

How to handle montage image?
Kimberly - 2020-07-15

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 - 2020-07-15

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]; ...

How can I name matrices generated by a for loop as Z1,Z2,Z3 ...etc.
Maxwell - 2020-07-15

for (i=1:x1) for(j=1:x2)   Z=zeros(N,M)   end end   For example if x1=4,x2=4,N=8,M=8 I will have 16 zero matrices(8*8).All are named as z. I need t...

How to add histogram to series of scattered plot on the same plot?
Madeline - 2020-07-13

I would like to add hitogram for each scatter plot. The code below plots in different color each slice of 3 dim scatter matrix. I would like to replac...

How do I extract individual frames while taking video input from a webcam?
Parker - 2020-07-13

Here's a snippet of the program for Fall Detection which analyses a video clip frame-by-frame :   while ~isDone(vid) % vid = vision.VideoFileReader(v...

how can I measure the distance between camera and object usingle single camera
Josephine - 2020-07-13

i have a single camera and i detect the object. now i'm trying to detect the distance between object and my camera....

Get a Free Consultation or a Sample Assignment Review!