Hi All,(adsbygoogle = window.adsbygoogle || []).push({});

Does anyone if it's possibe to use the 'exist' function in Matlab to check whether any data has been entered into a particular field of a structure. I'd like something like the following, where 'identification' is a user-input variable, 'team' is the structure and 'city' is the field.

identifiaction = input('Enter I.D: ');

X = exist(team(identification).city);

if X == 1;

action

else

action

end

I need this to control where new data is input into the structure. Thanks for your time.

Craig

**Physics Forums | Science Articles, Homework Help, Discussion**

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

# Matlab: Using the exist function within a structure

Loading...

Similar Threads for Matlab Using exist |
---|

MATLAB MATLAB: forces acting on an object |

MATLAB Matlab histogram |

MATLAB Sovling Bernoulli's differential equation in matlab? |

MATLAB Matlab-like software |

MATLAB Solving equation with integration using MATLAB |

**Physics Forums | Science Articles, Homework Help, Discussion**