필터 지우기
필터 지우기

Not understand function/command

조회 수: 1 (최근 30일)
Shahrin Islam
Shahrin Islam 2018년 10월 22일
댓글: Shahrin Islam 2018년 10월 22일
Hello everyone i am a new learner of matlab and trying to read and understand code line by line. For that i use matlab help to understand the command. But in many cases, when i enter any command in matlab help it shows not found. I am attaching a code here below. In the last line there is a command 'frames' which i didn't understand and could not find in matlab help as well. Please help me..
Frames = zeros(540, 960, 40);
c = 0;
%for t=470:519
for t=1:100
c = c + 1;
% name=sprintf('lightswicth/%d.bmp', t);
% name = strcat('foregroundaperture/b00',num2str(t),'.bmp');
name = strcat('vid/Image',num2str(t),'.jpg');
display(name)
img=imread(name);
imggray=rgb2gray(img);
Frames(:, :, c)=imggray;
end
  댓글 수: 2
Torsten
Torsten 2018년 10월 22일
A three-dimensional matrix named "Frames" of dimension 540x960x40 is created in the very first line of the code. So this is no command, but a data structure created by the person who wrote the code.
Shahrin Islam
Shahrin Islam 2018년 10월 22일
Thank you so much. But do I understand the purpose of writing this? Or what does it mean by 'Frames(:, :, c)=imggray;' . Thanks in advance

댓글을 달려면 로그인하십시오.

답변 (1개)

Matt J
Matt J 2018년 10월 22일
It is not a command. Frames is the name of a variable which was created in the first line of the code you have posted.

카테고리

Help CenterFile Exchange에서 Logical에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by