Quantcast
Channel: Mein MATLAB Forum - goMatlab.de
Viewing all articles
Browse latest Browse all 28441

2D-Plot auf Matrix "projezieren"

$
0
0
Hallo eey, Du hast Die Frage sehr gut formuliert. Das Posten des Codes für den Kreis per PLOT kann man gut für eine Antwort verwenden. function M = KreisAlsMatrix(r) phi = 0:0.01:2*pi; x = round(r * cos(phi) + r) + 1; y = round(r * sin(phi) + r) + 1; M = zeros(max(x), max(y)); M(sub2ind(size(M), x, y)) = 1; end Gruß, Jan

Viewing all articles
Browse latest Browse all 28441

Trending Articles