MATLAB QUESTIONS & EXPERT ANSWERS

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

Illustration
How to smooth rough edges along a binary image
Caolan Furey - 2023-03-20

Hey, I'm trying to mark out the tips and bases of each finger on the following image I binarized the image using the following piece of code     a =...

How to augment a vector into another vector?
Muhammad Sardar Khan - 2023-03-20

v1 = [0 1 2 3], v2 = [0 1 2] the resultant v3 =[0 0; 1 0; 2 0; 3 0; 0 1; 1 1; 2 1; 3 1; 0 2; 1 2; 2 2; 3 2]  ...

Why the 2nd code does not behave like the 1st code?
Sadiq Akbar - 2023-03-20

the code of "myfunAskMathworks.m", yo and ye both are of the order 36x1 and these are correct. But in the other  code "codeWithArrays.m", it gives er...

Is it possible to vectorize for only one input?
sykim14 - 2023-03-18

Suppose there are two variables.   v1 = [1 2 3]; m1 = [1 2 3; 4 5 6]; I hope to create another matrix m2, having the same size with m1, and its (i, j...

match time stamps index
michael scheinfeild - 2023-03-18

hi i have two vectors diffrent lengths with diffrent values i want to match closest index in one vector to other   example :   v1 = [1610759986514 1...

Fastest way to find closest value in a vector
Patrik Ek - 2023-03-18

Hi,   I have a serious issue in matlab. I have 2 vectors v1 and v2 and length(v1) = 1376872, length(v2) = 1350228. Vector v2 contains information abo...

fast and beautiful way to convert vector ranges to indexes
Vincent - 2023-03-18

Hi there,   my question could easily be solved with a simple loop but I'm curious if there is a nice genuine matlab way of doing this: I have a vecto...

how to create this matrix?
diadalina - 2023-03-17

can anyone help me to construct this matrix     blj=(-2)^j-l if lj  ...

Why is my own echelon function printing incorrect matrix
Murawski - 2023-03-17

I am trying to create an echelon function, however, I am having trouble debugging my error. It works for almost all matrices but for the following mat...

How to get numbers as answers? Values show NaN
Eric Lee - 2023-03-17

My function file my_rref.m is as follows:   function my_rref(A) [m,n]=size(A); for i=1:m-1 for j=i+1:m if abs(A(j,i))>abs(A(i,i)) t=A(j,:); A(j,:)=A(...

Get a Free Consultation or a Sample Assignment Review!