Answered
Shading the area between curves
What about fill() ? Look HERE and HERE

7 years ago | 1

Answered
bvp4c problem, unbounded shear layer
You need 2 initial conditions (you have 2th order ODE) function yinit = mat4init(x) yinit = [ cosh(x)+sinh(x) ]; end

7 years ago | 0

Answered
How to plot two types of marking in one single line continuously?
Look axis([0 22 0 22]); ind = [1 2 3 4 5 6 11 12 13 14 18 19 20 21 22]; S = ginput(2); n = ind(end); x = linspace(S(1,...

7 years ago | 0

| accepted

Answered
The intersection of three cylinders
That result of intersection can be build with one simple element Define boundaries of element: phi = 0 .. 45 degree % R - rad...

7 years ago | 3

Answered
How can I make a graphical integration?
What do you mean by "integration around value M = 47535". There several intersections: a1 = linspace(min(A),max(A),100); %...

7 years ago | 1

| accepted

Answered
Image Labeler automation algorithm
Use read(): v = VideoReader('vid.avi'); for i = 1:v.NumberOfFrames I = read(v,i); imshow(I) pause(1) end

7 years ago | 0

Answered
Can this code be generic and fast?
Can't understand: why completely vectorised function is slower than the first with loops? Maybe someone can explain? Used switc...

7 years ago | 0

Answered
Plotting streamlines in matlab.
Just increased number of starting points n = 100; % number of streamlines starting_x = zeros(1,n); % starti...

7 years ago | 1

| accepted

Answered
Issue recreating result from a large system of ODEs
Look at your (26) and (27). You missed parethensis and power I'd suggest you to create separate function and write clearer co...

7 years ago | 0

| accepted

Answered
Radius of Curvature Array
Try not to use global variables if its possible function [x0, y0, lambda] = mycurvature(xinput, yinput) alpha=atan2(yinput(2)-...

7 years ago | 1

| accepted

Answered
Two graphs at the same time
Try to use subplot() each time you want plot or modify something in figure subplot(2,4,1) plotGraph1 = plot(time,data1,'-r') ...

7 years ago | 1

| accepted

Answered
How to make connected circle network in 2D on 144*144 pixel size square plane in matlab ?
Use loops clc , clear % image size imageSizeX = 640; imageSizeY = 480; [X, Y] = meshgrid(1:imageSizeX, 1:imageSizeY); I ...

7 years ago | 0

Answered
How to compute the homography
Hi, that green trapezoid is what you want. Can be found as line intersections of plane But having all those point on a plane ...

7 years ago | 0

| accepted

Answered
How to plot a surf-plot of semi sphere in matlab using sphere equation
Take closer look on your equation Must be: If you have complex values use: z1 = real(z); % instead of z(z<0)=0

7 years ago | 2

| accepted

Answered
Compare two matrices of different dimensions
ind = B(:,1)==A(i,1); % array of 5000000x1 logical Try: for i=1:length(A) ind = find(B(:,1)==A(i,1),1,'first'); % o...

7 years ago | 0

Answered
How to define a cutting plane through a scatter3 plot and get the cross sections of the plane with the spheres?
Use surf() to plot a plane Calculate distance from plane to each point (example). Compare distance and size to determine which ...

7 years ago | 0

Answered
Non linear system of equations
Hi. Take a look on your equations f(8)=(x(13)/(1+Kw/(ka1*x(1))))-x(2); % must be Ka1. You have no ka1 f...

7 years ago | 1

Answered
Double crank-crank mechanism
Hi, see attached files. Ask if needed

7 years ago | 2

| accepted

Answered
Find the equations of two tangent line
y(x) = k(x-x0) + y0; % equation of a tangent line % k=dy/dx - tangent of an angle ...

7 years ago | 0

| accepted

Answered
How I can repeatedly divide a binary image ?
Use mat2cell() clc,clear A = imread('fig3.png'); I = im2bw(A); k = 128; % divide matrix into 128 parts [m,n]...

7 years ago | 0

Answered
How to find point of intersection ?

7 years ago | 0

Answered
How to print the intersection between two functions?
zz1=interp1(zz(:,3),zz(:,1),x); % if you want to interpolate projectile More points - better precision

7 years ago | 0

Answered
How to manually complete lines with gaps (binary image)
clc, clear choice = questdlg('Want to draw?', ... 'Connect lines', ... 'Yes','No','Yes'); I = false(500,500); imshow(I)...

7 years ago | 0

| accepted

Answered
Calculating amount of motor steps for robot arm movement
2D case: - theta steps ( - angle of one step) - psi steps ( - angle of one step) % can be solved with fsolve() F = @...

7 years ago | 0

Answered
how can i measure the longest point of my lightning image?
Draw black (0,0,0) line you want to calculate the length See attached script

7 years ago | 1

Answered
Equation picture in the comments of an script
Try to write your code as readable and clear as possible Use pretty() Write formula in LaTeX and comment: % -----------------...

7 years ago | 0

Answered
Nonlinear resistor simulation in free oscillation RLC circuit
Seems easy Or i missed something? What you want todo with this?

7 years ago | 0

Answered
Create a gradient interpolated surface with few latitude and longitude coordinates
First of all you have to decide how to interpolate your data. Look at the image If color normals of a curve Define color o...

7 years ago | 2

| accepted

Answered
Need general ideas for calculating angle from an image using centroid
First of all you have to measure your main dimensions. Red rectangle on the picture below is your red boundary table. Let's pla...

7 years ago | 0

Load more