Beantwortet
How can i change the Width of arrows in feather command?
do this h = quiver(x(2:end),y(2:end),1+dy*0,dy); set(h,'linewidth',2)

etwa 6 Jahre vor | 0

Beantwortet
Why ode45 is not working?
I changed tspan f = @(t,y) [ 4.86*y(3) - 4.86*10^14*y(1)*y(2); 4.86*y(3) - 4.86*10^14*y(1)*y(2); -4....

etwa 6 Jahre vor | 0

Beantwortet
How to convert NaN value to 'zero' ?
Use isnan Enthropy(isnan(Enthropy)) = 0;

etwa 6 Jahre vor | 0

Beantwortet
solving a system of 4 second order differential equations
I believe that re and rm should be functions too re = @(z) sqrt((z(1)+E)^2+z(3)^2); rm = @(z) sqrt((z(1)-M)^2+z(3)^2); zprime...

etwa 6 Jahre vor | 0

| akzeptiert

Beantwortet
segmenting image help please
I just found red color I0 = imread('image.jpeg'); c1 = I0(:,:,1) > 160; c2 = I0(:,:,2) < 60; c3 = I0(:,:,3) < 60; ix = c1 &...

etwa 6 Jahre vor | 0

Beantwortet
How to interpolate/regrid 2-D array
Your X and Y variable of very different scales >> max(x_in(:)) - min(x_in(:)) ans = 5.3750 >> max(y_in(:)) - min(y_in(:)...

etwa 6 Jahre vor | 1

| akzeptiert

Beantwortet
A 2D plot with different colors for each point
Using patch() n = 30; x = linspace(0,10,n)'; y = sin(x); c = jet(n); fv.vertices = [x y]; fv.faces = [1:n-1;2:n]'; ...

etwa 6 Jahre vor | 0

| akzeptiert

Beantwortet
Runge-Kutta 3
Here is the mistake SOlution

etwa 6 Jahre vor | 0

| akzeptiert

Beantwortet
how to export a 2D figure into a cad
See attached script But don't know how to deal with overlapping Use stlwrite to write mesh to file

etwa 6 Jahre vor | 1

Beantwortet
How to get the coefficient uncertainty by polyfit?
Try fit x1 = linspace(x(1),x(end),100); F=fit(x,y,'poly9') plot(x,y) hold on plot(x1,F(x1),'r') hold off F = Lin...

etwa 6 Jahre vor | 0

| akzeptiert

Beantwortet
find pose and angel of marker
Here is a start to find markers I0 = imread('rob.png'); I1 = im2bw(I0,graythresh(I0)-0.3); imshow(I1) Then just use find() t...

etwa 6 Jahre vor | 0

| akzeptiert

Beantwortet
Need help calculating a system of ODE's using the forward Euler method!
I have some tips: These a constants, not functions. YOu should declare them betax = 1; betay = 1; maxx = 1000; maxy = 1000...

etwa 6 Jahre vor | 0

Beantwortet
How to make patch cylinder wheels for this semi truck?
Try this t = linspace(0,2*pi,20)'; [x,y] = pol2cart(t,1); % create data for circle v0 = x*0; X = [v0 x x v0]; Z = ...

etwa 6 Jahre vor | 2

| akzeptiert

Beantwortet
Issue with if loop within kinematics while loop
Everything is OK. The problem is in the parachute: when h < 3000, Fd is large (because of parachute of course). Fd a v (large...

etwa 6 Jahre vor | 0

Beantwortet
Animating a circle inside a rectangle
Mistake: Mistake Also you shoud have conditions when ball collides: if (x<0)||(a<x) vx = -vx; % change sig...

etwa 6 Jahre vor | 2

| akzeptiert

Beantwortet
Trouble solving system of equations -- trying vpasolve
My attempt using fsolve. Result depend on initial guess clc,clear syms a b c d x p = [a b c d]; % system of equations will...

etwa 6 Jahre vor | 0

Beantwortet
Interpolate 2D matrix of x,y coordinates
I manualy cleared points i don't want and interpolated data result see attached script

etwa 6 Jahre vor | 0

| akzeptiert

Beantwortet
Geometry function - domain sketch
Try pdepoly x = 0:0.1:1; y = x.^2-x+1; x = [0 x 1]; y = [0 y 0]; pdepoly(x,y)

etwa 6 Jahre vor | 0

| akzeptiert

Beantwortet
how can I change variable value in a for loop?
Try this m =[0.1; 0.4; 0.5]; for ii = 1:length(m) S(h,:) = SP(h,:)*m(ii) + delta(h,:) end

etwa 6 Jahre vor | 0

| akzeptiert

Beantwortet
edit a surf plot
Try this x = 1:108; y = 1:192; [X,Y]=ndgrid(x,y); ii = 90:108; jj = 100:192; surf(X,Y,T,'EdgeAlpha',.1); alpha(0.5) hol...

etwa 6 Jahre vor | 0

| akzeptiert

Beantwortet
Why does fsolve not return the correct solution?
The problem is that you are not passing E variable into f function Solution See more HERE

etwa 6 Jahre vor | 3

| akzeptiert

Beantwortet
Continuously update variable in function
Try persistent

etwa 6 Jahre vor | 1

| akzeptiert

Beantwortet
How to remove dates in graph ?
Try this ix = min(xred) < xblue & xblue < max(xred); plot(xred,reddata,'r') hold on plot(xblue(ix),bluedata(ix),'b')

etwa 6 Jahre vor | 0

Beantwortet
Colorbar not matching colormap
Try to change color axis caxis([min(markerColors(:)) max(markerColors(:))])

etwa 6 Jahre vor | 0

Beantwortet
Solve system of two differential equations with bpv4c
First of all: it's a bad practice to assign variables dpdz = [- 32 .* beta .* m0 ./ (R .^ 4 .* p(1)) -( - 8 .* dpdz(1) ...

etwa 6 Jahre vor | 1

Beantwortet
Discontinuities when computing integration of error functions using integral function
The function you are trying to integrate looks like following Put these lines inside for loops ezplot(fun,[0 upperl]) pause...

etwa 6 Jahre vor | 0

| akzeptiert

Beantwortet
Kinematics while loop is infinite, plus other errors.
Here are some tips You forgot about units: height should be in km for density

etwa 6 Jahre vor | 0

Beantwortet
Temperature per specific date as a function of latitude and longitude?
AN example ii = 1:10; str = sprintf('f%d ',ii); str = strsplit(str,' '); str(end) = []; A = table(str',ii',ii'+3,... ...

etwa 6 Jahre vor | 0

Beantwortet
Loop equation solver help
Use meshgrid and surf remember about element-wise operators (.* ./ and so on) LINK a=input('Off Design % RPM '); Nc=Ncr*(a/10...

etwa 6 Jahre vor | 0

| akzeptiert

Mehr laden