本文介绍了阅读多个图像我尝试遵循代码,但它显示我的错误如何解决这个请帮帮我,,,的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

全部关闭;

全部清除;

clc;

ImageDatabasePath ='C:\ Users \ shree \Desktop \\ \\ final data';



ImageFiles = dir(ImageDatabasePath);



Train_Number = 0;



for i = 1:size(ImageFiles,1)



如果不是(strcmp(ImageFiles(i) .name,'。')| strcmp(ImageFiles(i).name,'..')...



| strcmp(ImageFiles(i).name ,'Thumbs.db'))



Image_Number = Image_Number + 1;



结束

结束





错误是

close all;
clear all;
clc;
ImageDatabasePath ='C:\Users\shree\Desktop\final data';

ImageFiles = dir(ImageDatabasePath);

Train_Number = 0;

for i = 1:size(ImageFiles,1)

if not(strcmp(ImageFiles(i).name,'.')|strcmp(ImageFiles(i).name,'..')...

|strcmp(ImageFiles(i).name,'Thumbs.db'))

Image_Number = Image_Number + 1;

end
end


the error is

??? Error: File: o2.m Line: 14 Column: 1
Expression or statement is incorrect--possibly unbalanced (, {, or [.

推荐答案

File: o2.m



特别是


especially

Line: 14 Column: 1



您可能遇到以下问题


You may have here the following problem

possibly unbalanced (, {, or [





在文件o2.m中,每个左括号,括号和括号应有相对的右括号,括号或括号。



In file o2.m, every opening parenthesis, bracket and brace should have its relative closing parenthesis, bracket or brace.


这篇关于阅读多个图像我尝试遵循代码,但它显示我的错误如何解决这个请帮帮我,,,的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

11-03 00:46