MATLAB QUESTIONS & EXPERT ANSWERS

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

Illustration
Drawing rectangles around binary image objects from region props
Adrian Lim - 2023-03-16

Hi, from the binary image above, I've tried drawing boundaries around the object and successfully counted them. But I'm thinking of trying another met...

natural cubic spline interpolation of y-values: how to get derivative of the spline wrt the y-values?
SA-W - 2023-03-16

Given a data set with support points x_1,...,x_n and corresponding y-values y_1,...,y_n.   My objective is to create a cubic spline f (with natural b...

Change component size in system composer
Aidin Esmkhani - 2023-03-16

How can I change a component size in MATLAB system composer by means of APIs (command line or MATLAB code) ?...

How to use isoutlier based in a part of the data?
Mariana - 2023-03-14

I have a vector of datas. Like this,   a =[0;0.0028;0.0002;0.0039;0.0061].   As you see, since the 4° element, the values start growing more until ...

Bi-linear (piecewise) curve fitting
Mark Cuanan - 2023-03-14

Can someone explain how to plot the two linear lines (Billinear curve fiiting) from the existing curve?    ...

Plot data in matlab
MattC - 2023-03-14

Hi, I have 3 variables which are basically in form of % and I would like to build a trent plot for these Example:   03/06/2023 - A - 5%03/06/2023 - B...

How to replace specific characters in a cell array?
Ivan Mich - 2023-03-14

I have a question about a code.   I have a cell array with strings and I would like to replace the last 5 characters with another for every cell arra...

Canny Edge Detection Threshold Values Meaning
Chloe O'Mahony - 2023-03-13

I am using the Canny edge detection method on an image. I am setting the threshold values myself. I have a grayscale image with pixel values in the ra...

While loop for the elements of an array
Giorgos - 2023-03-13

I have an array:   a=[1 1 1 1 1 1 1 10 1 1 1 1 1 1 12 1 1 1 1 3]; I want to make a while loop that does the following enas=0; while a(i)==1 % enas=en...

How to find the variance of an image?
sachin - 2023-03-13

i try to find the variance by var function but it shoew the error. I = imread('eight.tif'); var(I) ...

Get a Free Consultation or a Sample Assignment Review!