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

1 view (last 30 days)
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');

Accepted Answer

Azzi Abdelmalek
Azzi Abdelmalek on 19 Dec 2014
Edited: Azzi Abdelmalek on 19 Dec 2014
A=load('A')
A=cell2mat(struct2cell(A))
%or
q=fieldnames(A)
out=A.(q{1})

More Answers (0)

Categories

Find more on Structures in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!