Borrar filtros
Borrar filtros

when dealing with a circle how do you connect the last point with the first point

1 visualización (últimos 30 días)
for i=1:60
j(i)=i+1
k(i)=i-1
if k(i)=0
k(i)=60
end
if j(i)=61
j(i)=1
end
Am(i)=((b*t)/6)*(2+(D(j(i))/D(i)));
An(i)=((b*t)/6)*(2+(D(k(i))/D(i)));
Ae(i)=Am(i)+An(i)+Al;
end
Error: File: WebStringer.m Line: 4 Column: 11
The expression to the left of the equals sign is not a valid target for an assignment.

Respuestas (1)

Image Analyst
Image Analyst el 24 de Feb. de 2018
Editada: Image Analyst el 24 de Feb. de 2018
I'm not seeing how that has anything to do with a circle. To create a circle, see the FAQ: http://matlab.wikia.com/wiki/FAQ#How_do_I_create_a_circle.3F
To close or connect an array, tack the first point onto the last point:
x(end+1) = x(1);
y(end+1) = y(1);

Categorías

Más información sobre Graphics Performance en Help Center y File Exchange.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by