Circle moving in a velocity field Matlab
Is there anyway to code a blob moving in from a smaller pipe to a larger pipe in matlab, when the velocity fields at a particular point is known. It doesn't have to be an animation. Just figures at different time step. So, the final figure would look something like this. Thanks
See also questions close to this topic

Adding two symbolic equations
I have two equations in Matlab, say
x^2+2*y=3, y^4=5*x+1
Here x,y are symbolic variables. What is the best way to add up these two equations, not manually of course ( if the LHS and RHS gets added up separately and stays in the same form, the better).

Area of an outline satellite image
This is an outline of a village,I want to find out the area of this satellite image using opencv. can anyone help me?
https://www.pyimagesearch.com/2016/02/08/opencvshapedetection/ In this they have given how to find out area of a particular shape,but i haven't found any website solving my problem.

How can implement "integral Box Filter"?
I would like to know how to implement "integral box filter" with Matlab code without builtin function (integralBoxFilter)?

Error trying to rotate an image in Matlab using INTERP2 funcion
I'm trying to perform an image rotation without embedded Matlab's function. But I'm still getting this error: Error using .' Transpose on ND array is not defined. Use PERMUTE instead.
Error in interp2 (line 130) V = V.';
But I don't know why there is such a mistake and likewise I don't know how to customize the function interp2 or PERMUTE to make it functional (I have used help in Matlab).
Could you please help to customize the code?
Thanks in advance!
clc; clear all; close all; input_image = imread('mri.png'); Z = double(input_image); Size = size(Z); [X,Y] = meshgrid(1:Size(2), 1:Size(1)); %Center of an image c = Size(end:1:1)/2; %Angle of rotation angle = 45; t = angle*pi/180; %Making the rotation ct = cos(t); st = sin(t); Xi = c(1) + ct*(X  c(1))  st*(Y  c(2)); Yi = c(2) + st*(X  c(1)) + ct*(Y  c(2)); %Interpolation Zi = interp2(X, Y, Z, Xi, Yi); figure() subplot(121); imshow(I); title('Original image'); subplot(122); imshow(uint8(Zi)); title('Rotated image without embedded function');

Hold one does not work for two plot handle having he same axeshandle
Here is how I get two plot handler which will draw on the same graphic(axes).
figureHandle = figure('NumberTitle','off',... 'Name','RFID Characteristics',... 'Color',[0 0 0],'Visible','off'); axesHandle = axes('Parent',figureHandle,... 'YGrid','on',... 'YColor',[0.9725 0.9725 0.9725],... 'XGrid','on',... 'XColor',[0.9725 0.9725 0.9725],... 'Color',[0 0 0]); hold on; xData = 0; yData=0; plotHandle1 = plot(axesHandle,xData,yData,'Marker','.','LineWidth',1,'Color',[0 1 0]); plotHandle2 = plot(axesHandle,xData,yData,'Marker','.','LineWidth',1,'Color',[1 0 0]);
This is how I recursively use to draw realtime data.
set(plotHandle1,'YData',newestTag2Data(5,:),'XData',newestTag2Data(1,:)); hold on set(plotHandle2,'YData',newestTag3Data(5,:),'XData',newestTag3Data(1,:)); hold off set(figureHandle,'Visible','on'); drawnow;
However, I only see the plotHandle2, not plotHandle1.
Seems hold on does not work here.

How to save Matlab GUIWindow as vector graphics？
I want to save the whole Window of GUI as a vector graphic like these
I tried to use
fig=openfig('test_gui.fig'); fig.InvertHardcopy = 'off'; set(fig,'PaperPositionMode','auto'); print(fig,'dpdf','test_gui.pdf')
But only get the Frame without Figure in PDF
How can I get both of them as a vector graphic ?
Thanks in advance