Info
This question is closed. Reopen it to edit or answer.
what is the meaning of code?
1 view (last 30 days)
Show older comments
i=1;j=1;
secret_img(i, j) = floor(secret_img(i, j)/2);
2 Comments
madhan ravi
on 29 Jan 2019
You don’t respond to any answers but yet you keep asking what is this , what is that?
Answers (1)
Jan
on 29 Jan 2019
To learn the basics, read the "Getting Started" chapters of the documentation an read Matlab's Onramp: https://matlabacademy.mathworks.com/ . The fundamental details of Matlab cannot be explained in the forum efficiently.
i=1; % The value 1.0 is assigned to the variable "i"
j=1; % Same for "j"
secret_img(i, j) = floor(secret_img(i, j)/2);
% The value of te element (i,j) of the matrix "secret_img" is divided by 2
% and rounded towards zero.
See:
help floor
1 Comment
This question is closed.
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!