MATLAB QUESTIONS & EXPERT ANSWERS

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

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

How do i know a 'cancel' button or the 'cross' button is pressed in inputdlg?
Jonathan - 2020-07-13

Hi, i am doing a simple GUI now. i don't know how to detect cancel button or cross button is pressed by user for inputdlg , i only know how to do it i...

How to resolve empty inputdlg box issue?
Lillian - 2020-07-13

I have a inputdlg box. I want the inputdlg box to cancel the processing if the user pressed OK without giving any input in the inputdlg box. How can I...

Is it possible to log internal signals in the generated code of a Simulink model that has multiple instances of a model reference?
Katherine - 2020-07-10

I have a Simulink model that has multiple instances of the same model reference. In the generated code, I would like to log certain signals for debug...

Get a Free Consultation or a Sample Assignment Review!