Community Profile

photo

darova


102 2019 年以降の合計貢献数

darova's バッジ

  • Knowledgeable Level 3
  • Solver
  • First Answer

詳細を表示...

貢献した分野
表示方法

回答済み
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)); % ...

3日 前 | 0

| 採用済み

回答済み
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); ...

3日 前 | 0

| 採用済み

回答済み
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); ...

3日 前 | 0

回答済み
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

5日 前 | 0

回答済み
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...

7日 前 | 0

回答済み
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\...

8日 前 | 0

| 採用済み

回答済み
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...

8日 前 | 0

| 採用済み

回答済み
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

8日 前 | 0

| 採用済み

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

8日 前 | 0

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

9日 前 | 0

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

11日 前 | 0

回答済み
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(~...

13日 前 | 0

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

13日 前 | 0

回答済み
How can I extract a distribution from a 2d histogram?
Look HERE and HERE

15日 前 | 0

| 採用済み

回答済み
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(...

17日 前 | 0

回答済み
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...

17日 前 | 0

| 採用済み

回答済み
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...

17日 前 | 0

| 採用済み

回答済み
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...

18日 前 | 0

回答済み
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...

18日 前 | 0

| 採用済み

回答済み
Can anyone explain the following code ?
Ask me something

18日 前 | 0

| 採用済み

回答済み
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...

19日 前 | 0

回答済み
Calculating pixel difference between different lenses of a camera
Read about cpselect() and fitgeotrans() Ask if needed

19日 前 | 0

回答済み
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 ...

20日 前 | 0

回答済み
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) ...

22日 前 | 0

| 採用済み

回答済み
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...

24日 前 | 0

回答済み
Shading the area between curves
What about fill() ? Look HERE and HERE

24日 前 | 1

回答済み
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

25日 前 | 0

回答済み
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,...

26日 前 | 0

| 採用済み

回答済み
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...

26日 前 | 0

回答済み
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); %...

27日 前 | 1

| 採用済み

Load more