Réponse apportée
Shading the area between curves
What about fill() ? Look HERE and HERE

plus de 7 ans il y a | 1

Réponse apportée
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

plus de 7 ans il y a | 0

Réponse apportée
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,...

plus de 7 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 7 ans il y a | 3

Réponse apportée
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); %...

plus de 7 ans il y a | 1

| A accepté

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

plus de 7 ans il y a | 0

Réponse apportée
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...

plus de 7 ans il y a | 0

Réponse apportée
Plotting streamlines in matlab.
Just increased number of starting points n = 100; % number of streamlines starting_x = zeros(1,n); % starti...

plus de 7 ans il y a | 1

| A accepté

Réponse apportée
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...

plus de 7 ans il y a | 0

| A accepté

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

plus de 7 ans il y a | 1

| A accepté

Réponse apportée
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') ...

plus de 7 ans il y a | 1

| A accepté

Réponse apportée
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 ...

plus de 7 ans il y a | 0

Réponse apportée
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 ...

plus de 7 ans il y a | 0

| A accepté

Réponse apportée
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

plus de 7 ans il y a | 2

| A accepté

Réponse apportée
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...

plus de 7 ans il y a | 0

Réponse apportée
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 ...

plus de 7 ans il y a | 0

Réponse apportée
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...

plus de 7 ans il y a | 1

Réponse apportée
Double crank-crank mechanism
Hi, see attached files. Ask if needed

plus de 7 ans il y a | 2

| A accepté

Réponse apportée
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 ...

plus de 7 ans il y a | 0

| A accepté

Réponse apportée
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]...

plus de 7 ans il y a | 0

Réponse apportée
How to find point of intersection ?

plus de 7 ans il y a | 0

Réponse apportée
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

plus de 7 ans il y a | 0

Réponse apportée
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)...

plus de 7 ans il y a | 0

| A accepté

Réponse apportée
Isolate and group regions on a 3D plot based on sensitivy to a 4th parameter
Look

plus de 7 ans il y a | 1

| A accepté

Réponse apportée
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 = @...

plus de 7 ans il y a | 0

Réponse apportée
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

plus de 7 ans il y a | 1

Réponse apportée
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: % -----------------...

plus de 7 ans il y a | 0

Réponse apportée
Nonlinear resistor simulation in free oscillation RLC circuit
Seems easy Or i missed something? What you want todo with this?

plus de 7 ans il y a | 0

Réponse apportée
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...

plus de 7 ans il y a | 2

| A accepté

Réponse apportée
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...

plus de 7 ans il y a | 0

Charger plus