I have done this :
comp =0;
for k = 1:length(a)
comp = [comp a(k).field2 - b(strcuctfind(b,'field1',a(k).field1)).field2]
end
maxValue = max(comp)
structfind is a function that I found.
But I want something more efficient
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!