Oh ya mohon di subscribe, like, ataupun share.
Kalian juga boleh request minta ditutorin tentang MATLAB.
Atau yang lagi butuh solusi proyek MATLAB, dapat diajukan di sini.
Terima kasih :)
Disclaimer : Content provided on this page is for general informational purposes only. We make no representation or warranty of any kind, express or implied, regarding the accuracy, adequacy, validity, reliability, availability or completeness of any information.
bagaimana penyelesaian dari soal berikut:(maksud saya codingnya):
ReplyDeleteBuatlah lingkaran berwarna hitam berjari-jari 35 piksel dengan latar belakang putih berukuran 100 x 100 piksel.
ditunggu jawabannya ya... terima kasih :)
coba yg ini :
Deleteiclc
clear
dimx = 100 ;
dimy = 100 ;
im = zeros(dimx,dimy);
xc = dimy/2 ;
yc = dimx/2 ;
R = 35 ;
for i = 1 : dimx
for j = 1 : dimy
if sqrt(((i-xc)^2) + ((j-yc)^2)) > 35
im(i,j) = 1 ;
end
end
end
imshow(im)
how to download the source file
Deletehmamizadeh@razi.tums.ac.ir