feisky

云计算、虚拟化与Linux技术笔记
  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2010年1月10日

摘要: 关于求matlab程序的运行时间,自己用的最多是tic和toc;而对于复杂的程序,Profile是个不错的性能分析工具。 1. profile 例子: profile on plot(magic(35)) profile viewer profsave(profile('info'),'profile_results') profile on -history plot(magic(4... 阅读全文

posted @ 2010-01-10 21:55 feisky 阅读(1690) 评论(0) 推荐(0) 编辑

摘要: 位图是我们开发中最常用的资源,毕竟一个漂亮的界面对用户是最有吸引力的。 1. 从资源中获取位图 可以使用BitmapDrawable或者BitmapFactory来获取资源中的位图。 当然,首先需要获取资源: Resources res=getResources(); 使用BitmapDrawable获取位图 使用BitmapDrawable (InputStream is)构造一个Bitma... 阅读全文

posted @ 2010-01-10 12:58 feisky 阅读(101280) 评论(9) 推荐(11) 编辑

无觅相关文章插件,快速提升流量