⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 author_details.m

📁 MAP Toolbox for matlab. World map included.
💻 M
字号:
% AUTHOR_DETAILS : This function get details of an author based on the special html author number.
%
%  Syntax>>
%   [image_link,location,rank,downloads,files]=author_details(author_num)
%
% Class of input > "author_num" is char array.
% Class of all outputs > "image_link","location","rank","downloads","files" are cell array.

function [image_link,location,rank,downloads,files]=author_details(author_num)

author_url=['http://www.mathworks.com/matlabcentral/fileexchange/loadAuthor.do?objectType=author&objectId=' author_num]; 
url_content2=urlread(author_url);
rank=cellstr(str_in_url(url_content2,'Rank: ','<'));
downloads=cellstr(str_in_url(url_content2,'Downloads: ','<'));
files=cellstr(str_in_url(url_content2,'Files Submitted: ',' '));
lat_lon=str_in_url(url_content2,'Lat/Long:','<');
empty_lat_lon=isempty(lat_lon);
if empty_lat_lon==1
    lat_lon=[lat_lon '-'];
end
location=cellstr(lat_lon);


image_file=str_in_url(url_content2,'<img src=http://www.mathworks.com/matlabcentral/files/authors/',' ');
if isempty(image_file)
    image_link='no_pic.jpg';
else
image_link=['http://www.mathworks.com/matlabcentral/files/authors/' image_file];
end

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -