Community Profile

photo

darova


103 total contributions since 2019

darova's Badges

  • Knowledgeable Level 3
  • Solver
  • First Answer

View details...

Contributions in
View by

Answered
solving an equatin... please help me
Also you can try fzero() f = @(a,x) sin(a*x)./x; F = @(a) integral(@(x)f(a,x),0,7)-0.8; % a = fsolve(F,2); % didn'...

5 hours ago | 0

Answered
how to find centre of an image?
If you have only circle on the image like below clc,clear I = imread('img.png'); I1 = im2bw(I,graythresh(I)); % ...

4 days ago | 0

| accepted

Answered
How to get mean value minute by minute in a vector.
If the frequency is 1Hz then: k = 1; % counter of mean value vector n = length(v); ...

4 days ago | 0

| accepted

Answered
Help with my secant method.
Some suggestions: x0 = 0.5; x1 = 2; fx0 = feval(f,x0); while abs(error) > 1.0E-6 & it_count <= 100 % fx1 = feval(f,2); ...

5 days ago | 0

Answered
Can anyone suggest how can I draw a tangent from a given point in line and get its intercept value on y axis?I
Just use simple equation of a line Accept the answer please

6 days ago | 0

Answered
Find closest non-zero pixel, but only travel through pixels of value zero?
What if just use pythagoras theorem? I = imread('capture2.PNG') [y,x] = find(I(200:300,200:300)); % extracting non-zero pix...

8 days ago | 0

Answered
How can read a particular file pattern and store it in the same pattern?
I'd use loops (not tested) path = 'd:\Studying\matlab\'; % read from dest = 'd:\Studying\SolidWorks\...

9 days ago | 0

| accepted

Answered
Problem with discrete state space equation
Use expm() for matrix exponent (exp() ony returns exponent of each element in matrix): phi = expm(Ts*Ai); gamma = inv(Ai)*(phi...

9 days ago | 0

| accepted

Answered
custom use of heavisde?
How to atomate it? x1 = [1 1 -1 -1 1 1]; x2 = [0 1 1 2 2 3]; y = heaviside(x1); plot(x2,y) xlim([-0.5 3.5]) axis equal

9 days ago | 0

| accepted

Answered
Algorithm for curve smoothing
In this part NewSignal = signal; for i = 2 : length(signal)-1 NewSignal(i,:) = (NewSignal(i,:)+NewSignal(i-1,:)+NewSignal...

9 days ago | 0

Answered
Surf plot 2D diffusion FEA
Try h=surf(X,Y,C); shading interp set(h,'EdgeColor','k')

10 days ago | 0

Answered
Grow lines along path
clc,clear I = imread('bw.jpg'); I1 = im2bw(rgb2gray(I)); % crop black rectangle first [i1, j1] = find(~I1,1,'first'); ...

13 days ago | 0

Answered
Fallen clear plastic bottle detection
Try this clc, clear I1 = imread('111.jpg'); I = rgb2gray(I1); I2 = edge(I); I3 = imdilate(I2,true(3,3)); I4 = bwareaopen(~...

15 days ago | 0

Answered
distance line from a point
But you already have those pixels/points: n = 100; % number of pixels x0 = round( linsp...

15 days ago | 0

Answered
How can I extract a distribution from a 2d histogram?
Look HERE and HERE

17 days ago | 0

| accepted

Answered
How can I get curving points of trapezoid shape in 1d array
I reduced points and find search for angle difference bigger than clc, clear, cla load data.txt tol = 500; t = 1:tol:length(...

18 days ago | 0

Answered
Plotting multiple object trajectories together with their identity
I always use simple plot() and pause() to animate something clc, clear, cla load a.mat np = 2; %(size(a,2)-1)/2; % n...

18 days ago | 0

| accepted

Answered
How to get the mouse coordinates in a 3D spherical plot?
If you have x,y,z coordinates use spherical system coordinate: theta is longitude (from equator), phi - latitude Latitud...

18 days ago | 0

| accepted

Answered
How do I plot cylinder bar in matlab?
You can manually create whatever you want clc,clear radius = 10; [X, Y, Z] = cylinder(radius,30); [X0, Y0] = sphere(20); X0...

20 days ago | 0

Answered
How can I match two vectors using the discrete inverse transform method?
Give each element of U and compare with every element of V ind = zeros(size(U)); for i = 1:length(U(:)) [~, ind(i)] = min...

20 days ago | 0

| accepted

Answered
Can anyone explain the following code ?
Ask me something

20 days ago | 0

| accepted

Answered
Predicting lower and upper bounds of coefficients for curve fitting tool.
You can manually experiment with a,b,c clc,clear load X.mat load Y.mat func = @(a,b,c,x) a*exp( -(x-c).^2/b ); opt = fito...

20 days ago | 0

Answered
Calculating pixel difference between different lenses of a camera
Read about cpselect() and fitgeotrans() Ask if needed

20 days ago | 0

Answered
Finding the intersection of a bunch of circles of different centers and radii, using FSOLVE
If circles normally intersect each other they have 2 intersection points - equation for the first circle - equation for the ...

22 days ago | 0

Answered
double derivative of an image
What about manually drawing line? clc, clear I = imread('original image.png'); I = rgb2gray(I); I = im2bw(I); imshow(I) ...

24 days ago | 0

| accepted

Answered
Finding intersection of 2 parabolic curve fits with different y-axes
Just change boundaries for "x" axis variable Qspace= linspace(-0.01,0.04,40); %100 points for line % ... [x0, y0] = polyxpoly...

26 days ago | 0

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

26 days 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

27 days 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,...

27 days 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...

27 days ago | 0

Load more