MATLAB QUESTIONS & EXPERT ANSWERS

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

Illustration
How can I speed up this function?
Fredrik P - 2024-01-16

I'm struggling to speed up the code inside the version1 function. The only way to vectorize it that I can seem to figure out is version2, but that act...

How do I define a function that evaluates in input
aldburg - 2024-01-15

Currently been typing:     theta_Degree=40 theta=(theta_Degree*pi/180) T = [cos(theta)^2 sin(theta)^2 2*cos(theta)*sin(theta); sin(theta)^2 cos(thet...

Will my App Designer app be compatible in previous and future releases?
Sampath Rachumallu - 2024-01-15

I have created an app using matlab app designer 2019 version. Can i run the same app in previous versions of Matlab like 2016a,2017a etc?...

Problem with solving discrete element method using leap frog method
Thin Rupar Win - 2024-01-15

I am new to writing matlab programming by using Discrete element method using leap frog algorithm. I got many error coming from my program. Can you al...

How to calculate a angle between two vectors in 3D
Paulo Oliveira - 2024-01-11

Hi, I have a question, I have a table with 12 reference points   if true % POINT X Y Z 1 0 0 0 2 70.5 0 0 3 141 0 0 4 141 0 141.5 5 70.5 0 141.5 6 0 ...

How to obtain the three angles (xy, yz, xz planes) of one vector relative to other vector?
Paulo Oliveira - 2024-01-11

I need to find the angles between two vectors (v1=p1-p2; v2=p2-p3) defined by three points (p1, p2 and p3). The problem is that I can only get one ang...

How to find angle between two lines?
Beulah A - 2024-01-11

For example, there is line L1 between two points (x1,y1) and (x2,y2). Another line L2 between points (x1,y1) and (x3,y3). I want to find the angle bet...

How to completely extract the green pixels from this image?
Malini - 2024-01-10

I have used this code to extract only the plant canopy.   inimage = imread('AA100401.jpg'); %// type uint8 mask = inimage(:,:,1)...

How can I resolve a segmentation fault caused by a MATLB Engine API tbb.dll version mismatch?
smith - 2024-01-10

I am developing a C++  application, which connects and interfaces with MATLAB via the C++ Engine API. When calling "findMATLAB()" in the C++ code, a ...

What is my syntax lacking to achieve an accumulative-progressing animation of the plot?
CHUN HIN KYLE - 2024-01-08

hold on for idx = 1:10 plot(idx, density(idx),"*") drawnow xlim([0.0 10.0]) ylim([0.0 6.1]) hold on plot(1:idx, density(1:idx),"*") drawnow end Unreco...

Get a Free Consultation or a Sample Assignment Review!