how "atestinput" could be recogrnised in matlb and how it is calculated in testing of image clasification؟
    조회 수: 1 (최근 30일)
  
       이전 댓글 표시
    
I am a little bit confused. "atestinput" is not defined its value like ineger or real. how it could be recogrnised in matlb. furthermore, can someone explain me how "atestinput" calculated in testing of image clasification.  
    %Testingforward propagation 
    for i=1:numtestimages
        ytest=zeros(testoutputnodes,1);
        ytest(testlabels(i)+1,1)=1;
        for row=1:size(testimages,1)
            for columns=1:size(testimages,2)
                atestinput(columns+(row-1)*size(testimages,2),1)=testimages(row,columns,i);
            end
        end
댓글 수: 1
  Andreas Goser
    
 2023년 9월 14일
				In order to help you better: Can you share the code including example data so others can attempt to reproduce? And from your description, it is also not clear whether you are getting an error or if the results don't make sense.
답변 (1개)
  Image Analyst
      
      
 2023년 9월 14일
        MATLAB will automatically create/define variables using the class of the first thing assigned to them.
By the way, I would not use ,1 with vectors.  It's possible you might be confusing it to make it think you're using a 2-dimensional array.
댓글 수: 0
참고 항목
카테고리
				Help Center 및 File Exchange에서 Deep Learning Toolbox에 대해 자세히 알아보기
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!


