Undefined function or method 'ge' for input arguments of type 'struct'.

조회 수: 4 (최근 30일)
Hana
Hana 2014년 12월 19일
편집: Azzi Abdelmalek 2014년 12월 19일
I get error on line aa= find(RVI>=0 & RVI <0.2);Do I need to load my mat file in some other way?
A=load('A.mat')
B=load('B.mat')
C=load('C.mat')
aa= find(A>=0 & A <0.2);
x1 = B(aa);
y1 = C(aa);
scatter(x1,y1,'MarkerFaceColor','g','MarkerEdgeColor','g');

채택된 답변

Azzi Abdelmalek
Azzi Abdelmalek 2014년 12월 19일
편집: Azzi Abdelmalek 2014년 12월 19일
A=load('A')
A=cell2mat(struct2cell(A))
%or
q=fieldnames(A)
out=A.(q{1})

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Matrices and Arrays에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by