wolffd@0: function [artists, mbids] = fm_retrieve_artist(artist_name) wolffd@0: %[tags, tag_weight] = fm_get_artist_tags(artist_name) wolffd@0: % wolffd@0: % returns last.fm artist tags and tag weights for given artist wolffd@0: % this uses a lastpy python script to handle the REST data exchange wolffd@0: wolffd@0: % call python function wolffd@0: str = python('fm_retrieve_artist.py',artist_name); wolffd@0: wolffd@0: % parse text function output wolffd@0: artists = textscan(str,'%s %s','Delimiter',','); wolffd@0: mbids = artists{2}; wolffd@0: artists = artists{1};