SQL style query in MATLAB -
can sql-style query on in-memory dataset (or cellarray, or structure, etc) in matlab?
why ask is, sometimes, don't want talk database 1000 times when want different operations on each of 1000 rows of data. instead, i'd rather read 1000 database , operate on them in matlab.
for example, have read following out of database:
age first_name last_name income 30 mike smith 45 17 david oxgon 17 22 osama lumbermaster 3
now want find out full names of people under age of 25. know how it, there syntax clean , intuitive sql this?
select first_name + ' ' + last_name name people age < income
in docs page access data in table (see example index using logical expression) shows examples achieved follows:
mytable({'first_name','last_name'}, mytable.age < mytable.income)
these docs don't explain how merge name , surname 1 variable i'm sure it's easy. give try , let know if it.
Comments
Post a Comment