锘??xml version="1.0" encoding="utf-8" standalone="yes"?>亚洲人成77777在线观看网,亚洲国产日韩欧美在线99,国产欧美在线播放http://www.shnenglu.com/guijie/category/13862.html鏉板摜濂?鍝堝搱!zh-cnWed, 08 Jun 2022 22:40:13 GMTWed, 08 Jun 2022 22:40:13 GMT60How to read *.data in Matlab and Pythonhttp://www.shnenglu.com/guijie/archive/2018/10/13/216005.html鏉板摜鏉板摜Fri, 12 Oct 2018 20:33:00 GMThttp://www.shnenglu.com/guijie/archive/2018/10/13/216005.htmlhttp://www.shnenglu.com/guijie/comments/216005.htmlhttp://www.shnenglu.com/guijie/archive/2018/10/13/216005.html#Feedback0http://www.shnenglu.com/guijie/comments/commentRss/216005.htmlhttp://www.shnenglu.com/guijie/services/trackbacks/216005.htmlSee P2 of "HW2_545_2018_"

In Matlab:
z = dlmread('spambase.data',',');
In Python:
import numpy as np
z = np.genfromtxt('spambase.data', dtype=float, delimiter=',')


鏉板摜 2018-10-13 04:33 鍙戣〃璇勮
]]>
matlab legend瀛楀彿鏀瑰彉http://www.shnenglu.com/guijie/archive/2017/12/19/215431.html鏉板摜鏉板摜Mon, 18 Dec 2017 20:50:00 GMThttp://www.shnenglu.com/guijie/archive/2017/12/19/215431.htmlhttp://www.shnenglu.com/guijie/comments/215431.htmlhttp://www.shnenglu.com/guijie/archive/2017/12/19/215431.html#Feedback0http://www.shnenglu.com/guijie/comments/commentRss/215431.htmlhttp://www.shnenglu.com/guijie/services/trackbacks/215431.htmlhleg1 = legend('SBQ','DBQ','IBQ',4);
set(hleg1,'Interpreter','none');
set(hleg1,'FontSize',15); 

set(gca,'linewidth',2);
set(gca,'FontName','Times New Roman','FontSize',12);
set(gca,'xtick',[16 32 64 128]);

This is with Yuan Cao's help.

鏉板摜 2017-12-19 04:50 鍙戣〃璇勮
]]>
[杞澆]matlab涓璽ext 鍑芥暟鍦ㄦ樉紺哄瓧絎︿覆鏃剁殑浣跨敤鏂規硶http://www.shnenglu.com/guijie/archive/2017/12/17/215429.html鏉板摜鏉板摜Sun, 17 Dec 2017 04:53:00 GMThttp://www.shnenglu.com/guijie/archive/2017/12/17/215429.htmlhttp://www.shnenglu.com/guijie/comments/215429.htmlhttp://www.shnenglu.com/guijie/archive/2017/12/17/215429.html#Feedback0http://www.shnenglu.com/guijie/comments/commentRss/215429.htmlhttp://www.shnenglu.com/guijie/services/trackbacks/215429.html鍘熸枃鍦板潃錛?/strong>matlab涓璽ext 鍑芥暟鍦ㄦ樉紺哄瓧絎︿覆鏃剁殑浣跨敤鏂規硶浣滆咃細gypsy

matlab涓璽ext 鍑芥暟鍦ㄦ樉紺哄瓧絎︿覆鏃剁殑浣跨敤鏂規硶

 鍔熻兘 鍦ㄥ綋鍓嶈醬涓垱寤簍ext瀵硅薄銆傚嚱鏁皌ext鏄垱寤簍ext鍥懼艦鍙ユ焺鐨勪綆綰у嚱鏁般傚彲鐢ㄨ鍑芥暟鍦ㄥ浘褰腑鎸囧畾鐨勪綅緗笂鏄劇ず瀛楃涓層?/p>

鐢ㄦ硶 text(x,y,'string')鍦ㄥ浘褰腑鎸囧畾鐨勪綅緗?x,y)涓婃樉紺哄瓧絎︿覆string

text(x,y,z,'string') 鍦ㄤ笁緇村浘褰㈢┖闂翠腑鐨勬寚瀹氫綅緗?x,y,z)涓婃樉紺哄瓧絎︿覆string

text(x,y,z,’string’.'PropertyName',PropertyValue…) 瀵瑰紩鍙蜂腑鐨勬枃瀛梥tring瀹氫綅浜庣敤鍧愭爣杞存寚瀹氱殑浣嶇疆錛屼笖瀵規寚瀹氱殑灞炴ц繘琛岃緗傝〃7-6緇欏嚭鏂囧瓧灞炴у悕銆佸惈涔夊強灞炴у箋?/p>

琛?-6

灞炴у悕

灞炴ц鏄?/p>

灞炴у?/p>

瀹氫箟瀛楃涓?/p>

Editing

鑳藉惁瀵規枃瀛楄繘琛岀紪杈?/p>

鏈夋晥鍊鹼細on銆乷ff

緙虹渷鍊鹼細off

Interpretation

TeX瀛楃鏄惁鍙敤

鏈夋晥鍊鹼細tex銆乶one

緙虹渷鍊鹼細tex

String

瀛楃涓?鍖呮嫭TeX瀛楃涓?

鏈夋晥鍊鹼細鍙瀛楃涓?/p>

鏀劇疆瀛楃涓?/p>

Extent

text瀵硅薄鐨勮寖鍥達紙浣嶇疆涓庡ぇ灝忥級

鏈夋晥鍊鹼細[left, bottom, width, height]

HorizontalAlignment

鏂囧瓧姘村鉤鏂瑰悜鐨勫榻愭柟寮?/p>

鏈夋晥鍊鹼細left(鏂囨湰澶栨宸﹁竟瀵歸綈錛岀己鐪佸榻愭柟寮?銆乧enter(鏂囨湰澶栨涓棿瀵歸綈)銆乺ight(鏂囨湰澶栨鍙寵竟瀵歸綈)

緙虹渷鍊鹼細left

Position

鏂囧瓧鑼冨洿鐨勪綅緗?/p>

鏈夋晥鍊鹼細[x,y,z]鐩磋鍧愭爣緋?/p>

緙虹渷鍊鹼細[]錛堢┖鐭╅樀錛?/p>

Rotation

鏂囧瓧瀵硅薄鐨勬柟浣嶈搴?/p>

鏈夋晥鍊鹼細鏍囬噺錛堝崟浣嶄負搴︼級

緙虹渷鍊鹼細0

Units

鏂囧瓧鑼冨洿涓庝綅緗殑鍗曚綅

鏈夋晥鍊鹼細pixels (灞忓箷涓婄殑鍍忕礌鐐?銆乶ormalized (鎶婂睆騫曠湅鎴愪竴涓暱銆佸涓?鐨勭煩褰?銆乮nches(鑻卞)銆乧entimeters(鍘樼背)銆乸oints (鍥捐薄鐐?銆乨ata

緙虹渷鍊鹼細data

VerticalAlignment

鏂囧瓧鍨傜洿鏂瑰悜鐨勫榻愭柟寮?/p>

鏈夋晥鍊鹼細top (鏂囨湰澶栨欏朵笂瀵歸綈)銆乧ap(鏂囨湰瀛楃欏朵笂瀵歸綈)銆乵iddle(鏂囨湰澶栨涓棿瀵歸綈)銆乥aseline(鏂囨湰瀛楃搴曠嚎榻?銆乥ottom(鏂囨湰澶栨搴曠嚎瀵歸綈)

緙虹渷鍊鹼細middle

鎸囧畾鏂囧瓧瀛椾綋

FontAngle

璁劇疆鏂滀綋鏂囧瓧妯″紡

鏈夋晥鍊鹼細normal(姝e父瀛椾綋)銆乮talic(鏂滀綋瀛?銆乷blique(鏂滆瀛?

緙虹渷鍊鹼細normal

FontName

璁劇疆鏂囧瓧瀛椾綋鍚嶇О

鏈夋晥鍊鹼細鐢ㄦ埛緋葷粺鏀寔鐨勫瓧浣撳悕鎴栬呭瓧絎︿覆FixedWidth銆?/p>

緙虹渷鍊間負 Helvetica

FontSize

鏂囧瓧瀛椾綋澶у皬

鏈夋晥鍊鹼細緇撳悎瀛椾綋鍗曚綅鐨勬暟鍊?/p>

緙虹渷鍊間負錛?0 points

FontUnits

璁劇疆灞炴ontSize鐨勫崟浣?/p>

鏈夋晥鍊鹼細points (1鐐?1/72鑻卞)銆乶ormalized(鎶婄埗瀵硅薄鍧愭爣杞翠綔涓轟竴鍗曚綅闀跨殑涓涓暣浣擄紱褰撴敼鍙樺潗鏍囪醬鐨勫昂瀵告椂錛岀郴緇熶細鑷姩鏀瑰彉瀛椾綋鐨勫ぇ灝?銆乮nches (鑻卞)銆丆entimeters(鍘樼背)銆丳ixels(鍍忕礌)

緙虹渷鍊鹼細points

FontWeight

璁劇疆鏂囧瓧瀛椾綋鐨勭矖緇?/p>

鏈夋晥鍊鹼細light(緇嗗瓧浣?銆乶ormal(姝e父瀛椾綋)銆乨emi(榛戜綋瀛?銆丅old(榛戜綋瀛?

緙虹渷鍊鹼細normal

鎺у埗鏂囧瓧澶栬

Clipping

璁劇疆鍧愭爣杞翠腑鐭╁艦鐨勫壀杈戞ā寮?/p>

鏈夋晥鍊鹼細on銆乷ff

on錛氬綋鏂囨湰瓚呭嚭鍧愭爣杞寸殑鐭╁艦鏃訛紝瓚呭嚭鐨勯儴鍒嗕笉鏄劇ず錛?/p>

off錛氬綋鏂囨湰瓚呭嚭鍧愭爣杞寸殑鐭╁艦鏃訛紝瓚呭嚭鐨勯儴鍒嗘樉紺恒?/p>

緙虹渷鍊鹼細off

EraseMode

璁劇疆鏄劇ず涓庢摝闄ゆ枃瀛楃殑妯″紡銆傝繖浜涙ā寮忓鐢熸垚鍔ㄧ敾緋誨垪涓庢敼榪涙枃瀛楃殑鏄劇ず鏁堟灉寰堟湁濂藉銆?/p>

鏈夋晥鍊鹼細normal銆乶one銆?xor銆?background

緙虹渷鍊鹼細normal

SelectionHighlight

璁劇疆閫変腑鏂囧瓧鏄惁紿佸嚭鏄劇ず

鏈夋晥鍊鹼細on銆乷ff

緙虹渷鍊鹼細on

Visible

璁劇疆鏂囧瓧鏄惁鍙

鏈夋晥鍊鹼細on銆乷ff

緙虹渷鍊鹼細on

Color

璁劇疆鏂囧瓧棰滆壊

鏈夋晥鐨勯鑹插鹼細ColorSpec

鎺у埗瀵規枃瀛楀璞$殑璁塊棶

HandleVisibility

璁劇疆鏂囧瓧瀵硅薄鍙ユ焺瀵瑰叾浠栧嚱鏁版槸鍚﹀彲瑙?/p>

鏈夋晥鍊鹼細on銆乧allback銆乷ff

緙虹渷鍊鹼細on

HitTest

璁劇疆鏂囧瓧瀵硅薄鑳藉惁鎴愪負褰撳墠瀵硅薄錛堣鍥懼艦CurrentObject灞炴э級

鏈夋晥鍊鹼細on銆乷ff

緙虹渷鍊鹼細on

鏂囧瓧瀵硅薄鐨勪竴鑸俊鎭?/p>

Children

鏂囧瓧瀵硅薄鐨勫瓙瀵硅薄錛堟枃瀛楀璞℃病鏈夊瓙瀵硅薄錛?/p>

鏈夋晥鍊鹼細[]錛堝嵆絀虹煩闃碉級

Parent

鏂囧瓧瀵硅薄鐨勭埗瀵硅薄錛堥氬父涓篴xes瀵硅薄錛?/p>

鏈夋晥鍊鹼細axes鐨勫彞鏌?/p>

Seleted

璁劇疆鏂囧瓧鏄惁鏄劇ず鍑?#8220;閫変腑”鐘舵?/p>

鏈夋晥鍊鹼細on銆乷ff

緙虹渷鍊鹼細off

Tag

璁劇疆鐢ㄦ埛鎸囧畾鐨勬爣絳?/p>

鏈夋晥鍊鹼細浠諱綍瀛楃涓?/p>

緙虹渷鍊鹼細’’錛堝嵆絀哄瓧絎︿覆錛?/p>

Type

璁劇疆鍥懼艦瀵硅薄鐨勭被鍨嬶紙鍙綾誨瀷錛?/p>

鏈夋晥鍊鹼細瀛楃涓?#8217;text’

UserData

璁劇疆鐢ㄦ埛鎸囧畾鏁版嵁

鏈夋晥鍊鹼細浠諱綍鐭╅樀

緙虹渷鍊鹼細[]錛堝嵆絀虹煩闃碉級

鎺у埗鍥炶皟渚嬭鎵ц紼嬪簭

BusyAction

璁劇疆濡備綍澶勭悊瀵規枃瀛楀洖璋冭繃紼嬩腑鏂殑鍙ユ焺

鏈夋晥鍊鹼細cancel銆乹ueue

緙虹渷鍊鹼細queue

ButtonDownFcn

璁劇疆褰撻紶鏍囧湪鏂囧瓧涓婂崟鍑繪椂錛岀▼搴忓仛鍑虹殑鍙嶅簲錛堝嵆鎵ц鍥炶皟紼嬪簭錛?/p>

鏈夋晥鍊鹼細瀛楃涓?/p>

緙虹渷鍊鹼細' '錛堢┖瀛楃涓詫級

CreateFcn

璁劇疆褰撴枃瀛楄鍒涘緩鏃訛紝紼嬪簭鍋氬嚭鐨勫弽搴旓紙鍗蟲墽琛岀殑鍥炶皟紼嬪簭錛?/p>

鏈夋晥鍊鹼細瀛楃涓?/p>

緙虹渷鍊鹼細' '錛堢┖瀛楃涓詫級

DeleteFcn

璁劇疆褰撴枃瀛楄鍒犻櫎錛堥氳繃鍏抽棴鎴栧垹闄ゆ搷浣滐級鏃訛紝紼嬪簭鍋氬嚭鐨勫弽搴旓紙鍗蟲墽琛岀殑鍥炶皟紼嬪簭錛?/p>

鏈夋晥鍊鹼細瀛楃涓?/p>

緙虹渷鍊鹼細' '錛堢┖瀛楃涓詫級

Interruptible

璁劇疆鍥炶皟榪囩▼鏄惁鍙腑鏂?/p>

鏈夋晥鍊鹼細on銆乷ff

緙虹渷鍊鹼細on錛堣兘涓柇錛?/p>

UIContextMenu

璁劇疆涓庢枃瀛楃浉鍏崇殑鑿滃崟欏?/p>

鏈夋晥鍊鹼細鐢ㄦ埛鐩稿叧鑿滃崟鍙ユ焺

 

MATLAB璧勬簮緗戯細http://www.ymlib.net/article/sort010/info-276.html
http://blog.sciencenet.cn/blog-711035-566055.html


鏉板摜 2017-12-17 12:53 鍙戣〃璇勮
]]>
matlab ColorSpec (Color Specification)http://www.shnenglu.com/guijie/archive/2017/12/10/215417.html鏉板摜鏉板摜Sat, 09 Dec 2017 18:27:00 GMThttp://www.shnenglu.com/guijie/archive/2017/12/10/215417.htmlhttp://www.shnenglu.com/guijie/comments/215417.htmlhttp://www.shnenglu.com/guijie/archive/2017/12/10/215417.html#Feedback0http://www.shnenglu.com/guijie/comments/commentRss/215417.htmlhttp://www.shnenglu.com/guijie/services/trackbacks/215417.html

RGB Triplet

Short Name

Long Name

[1 1 0]

y

yellow

[1 0 1]

m

magenta

[0 1 1]

c

cyan

[1 0 0]

r

red

[0 1 0]

g

green

[0 0 1]

b

blue

[1 1 1]

w

white

[0 0 0]

k

black



鏉板摜 2017-12-10 02:27 鍙戣〃璇勮
]]>
Professor Deng Cai's code, very good codehttp://www.shnenglu.com/guijie/archive/2017/11/26/215370.html鏉板摜鏉板摜Sun, 26 Nov 2017 05:10:00 GMThttp://www.shnenglu.com/guijie/archive/2017/11/26/215370.htmlhttp://www.shnenglu.com/guijie/comments/215370.htmlhttp://www.shnenglu.com/guijie/archive/2017/11/26/215370.html#Feedback0http://www.shnenglu.com/guijie/comments/commentRss/215370.htmlhttp://www.shnenglu.com/guijie/services/trackbacks/215370.html20171125 rutgers email: Please check https://github.com/dengcai78/MatlabFunc  for the most up-to-date codes.

鏉板摜 2017-11-26 13:10 鍙戣〃璇勮
]]>
[zz]MATLAB濡備綍瀹炵幇鍗佽繘鍒舵暟涓庝簩榪涘埗鏁扮殑杞崲http://www.shnenglu.com/guijie/archive/2017/11/08/215336.html鏉板摜鏉板摜Wed, 08 Nov 2017 04:49:00 GMThttp://www.shnenglu.com/guijie/archive/2017/11/08/215336.htmlhttp://www.shnenglu.com/guijie/comments/215336.htmlhttp://www.shnenglu.com/guijie/archive/2017/11/08/215336.html#Feedback0http://www.shnenglu.com/guijie/comments/commentRss/215336.htmlhttp://www.shnenglu.com/guijie/services/trackbacks/215336.html鍦∕ATLAB 涓紝瀹炵幇鍗佽繘鍒朵笌浜岃繘鍒惰漿鍖栫殑鍑芥暟鏈塪ec2bin()錛宐in2dec()銆?br />
Reference
http://jingyan.baidu.com/article/59703552c5699a8fc00740d2.html


鏉板摜 2017-11-08 12:49 鍙戣〃璇勮
]]>
matlab dirhttp://www.shnenglu.com/guijie/archive/2017/09/26/215265.html鏉板摜鏉板摜Mon, 25 Sep 2017 16:28:00 GMThttp://www.shnenglu.com/guijie/archive/2017/09/26/215265.htmlhttp://www.shnenglu.com/guijie/comments/215265.htmlhttp://www.shnenglu.com/guijie/archive/2017/09/26/215265.html#Feedback0http://www.shnenglu.com/guijie/comments/commentRss/215265.htmlhttp://www.shnenglu.com/guijie/services/trackbacks/215265.htmlMatlab甯姪: list folder contents.
閽堝鏍圭洰褰曪紝鍒楀嚭鎵鏈夊瓙鏂囦歡澶癸紝鍖呮嫭闅愯棌鏂囦歡銆傛敞鎰忛拡瀵歸潪鏍圭洰褰曪紝榪樻湁澶氬嚭涓や釜鏂囦歡澶?."鍜?.."錛屽垎鍒搴旀湰鐩綍鍜屼笂涓灞傜洰褰曘傛晠TrainDataLoading.m鐨勭鍏鍜岀涔濊濡備笅錛?br />
   templist  = dir(session_dir_name);
   folderlist = templist(3:end); % delete the first two null directory
瑙佹湰鏈篸ir_.m鍜孴rainDataLoading.m銆?br />鐢╳indows鑿滃崟錛屽紑濮嬶紝鎵鏈夌▼搴忥紝闄勪歡錛屽懡浠ゆ彁紺虹錛岃緭鍏ir灝變細鍒楀嚭鎵鏈夌洰褰曪紝浼氱湅鍒版湁涓や釜鏂囦歡澶?."鍜?.."銆俢d C:\錛屽畾浣嶅埌鏍圭洰褰曪紝鍐峝ir錛屾病鏈変袱涓枃浠跺す"."鍜?.."銆?br />This is with Nannan and Zhongze's help.

鏉板摜 2017-09-26 00:28 鍙戣〃璇勮
]]>
[zz] Matlab涓嬌鐢?p鏂囦歡鐨勬柟娉?/title><link>http://www.shnenglu.com/guijie/archive/2016/07/29/214068.html</link><dc:creator>鏉板摜</dc:creator><author>鏉板摜</author><pubDate>Fri, 29 Jul 2016 07:13:00 GMT</pubDate><guid>http://www.shnenglu.com/guijie/archive/2016/07/29/214068.html</guid><wfw:comment>http://www.shnenglu.com/guijie/comments/214068.html</wfw:comment><comments>http://www.shnenglu.com/guijie/archive/2016/07/29/214068.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.shnenglu.com/guijie/comments/commentRss/214068.html</wfw:commentRss><trackback:ping>http://www.shnenglu.com/guijie/services/trackbacks/214068.html</trackback:ping><description><![CDATA[<div style="line-height: 28px; color: #2e2e2e; font-family: "Hiragino Sans GB W3", "Hiragino Sans GB", Arial, Helvetica, simsun, u5b8bu4f53; font-size: 16px; background-color: #ffffff;">棣栧厛錛孭鏂囦歡涓轟簡淇濇姢鐭ヨ瘑浜ф潈璁捐鐨勪竴縐嶅姞瀵嗘枃浠訛紝鏄笉鑳芥煡鐪嬬殑銆?/div><div style="line-height: 28px; color: #2e2e2e; font-family: "Hiragino Sans GB W3", "Hiragino Sans GB", Arial, Helvetica, simsun, u5b8bu4f53; font-size: 16px; background-color: #ffffff;">榪愯姣旇緝綆鍗曪紝鍜岃皟鐢╩鏂囦歡鏂規硶涓鏍楓?/div><div style="line-height: 28px; color: #2e2e2e; font-family: "Hiragino Sans GB W3", "Hiragino Sans GB", Arial, Helvetica, simsun, u5b8bu4f53; font-size: 16px; background-color: #ffffff;">涓嬮潰鏄竴浜涜В閲娿?/div><div style="line-height: 28px; color: #2e2e2e; font-family: "Hiragino Sans GB W3", "Hiragino Sans GB", Arial, Helvetica, simsun, u5b8bu4f53; font-size: 16px; background-color: #ffffff;">P鏂囦歡鏄搴擬鏂囦歡鐨勪竴縐嶉瑙f瀽鐗堟湰錛坧reparsed version錛夈傚洜涓哄綋浣犵涓嬈℃墽琛孧鏂囦歡鏃訛紝Matlab闇瑕佸皢鍏惰В鏋愶紙parse錛変竴嬈★紙絎竴嬈℃墽琛屽悗鐨勫凡瑙f瀽鍐呭浼氭斁鍏ュ唴瀛樹綔絎簩嬈℃墽琛屾椂浣跨敤錛屽嵆絎簩嬈℃墽琛屾椂鏃犻渶鍐嶈В鏋愶級錛岃繖鏃犲艦涓鍔犱簡鎵ц鏃墮棿銆傛墍浠ユ垜浠氨棰勫厛浣滆В閲婏紝閭d箞浠ュ悗鍐嶄嬌鐢ㄨM鏂囦歡鏃訛紝渚夸細鐩存帴鎵ц瀵瑰簲鐨勫凡瑙f瀽鐗堟湰錛屽嵆P鏂囦歡銆備絾鍙堝洜涓篗atlab鐨勮В鏋愰熷害闈炲父蹇紝涓鑸笉鐢ㄨ嚜宸變綔棰勮В鏋愩傚彧鏈夊綋涓浜涚▼搴忚璋冪敤鍒伴潪甯稿鐨凪鏂囦歡鏃訛紝濡侴UI搴旂敤紼嬪簭鏃訛紝鎵嶄細浣滈瑙f瀽錛屼互澧炲姞浠ュ悗鐨勮皟鐢ㄩ熷害銆?nbsp;</div><div style="line-height: 28px; color: #2e2e2e; font-family: "Hiragino Sans GB W3", "Hiragino Sans GB", Arial, Helvetica, simsun, u5b8bu4f53; font-size: 16px; background-color: #ffffff;">P鏂囦歡鍙互鐢ㄦ潵浣滀繚瀵嗕唬鐮佷箣鐢紝濡傛灉浣犵粰鍒漢涓涓狹鏂囦歡錛屽埆浜哄彲浠ユ墦寮鏉ョ湅鍒頒綘鎵鏈夌殑浠g爜鍜岀畻娉曘?span style="color: red;">濡傛灉浣犵殑浠g爜涓嶆兂琚埆浜虹湅鍒幫紝閭e彲浠ョ粰浠朠鏂囦歡銆?/span></div><div style="line-height: 28px; color: #2e2e2e; font-family: "Hiragino Sans GB W3", "Hiragino Sans GB", Arial, Helvetica, simsun, u5b8bu4f53; font-size: 16px; background-color: #ffffff;"></div><div style="line-height: 28px; color: #2e2e2e; font-family: "Hiragino Sans GB W3", "Hiragino Sans GB", Arial, Helvetica, simsun, u5b8bu4f53; font-size: 16px; background-color: #ffffff;"></div><div style="line-height: 28px; color: #2e2e2e; font-family: "Hiragino Sans GB W3", "Hiragino Sans GB", Arial, Helvetica, simsun, u5b8bu4f53; font-size: 16px; background-color: #ffffff;"><strong>濡備綍浣跨敤.p鏂囦歡</strong></div><div style="line-height: 28px; color: #2e2e2e; font-family: "Hiragino Sans GB W3", "Hiragino Sans GB", Arial, Helvetica, simsun, u5b8bu4f53; font-size: 16px; background-color: #ffffff;"></div><div style="line-height: 28px; color: #2e2e2e; font-family: "Hiragino Sans GB W3", "Hiragino Sans GB", Arial, Helvetica, simsun, u5b8bu4f53; font-size: 16px; background-color: #ffffff;">1.棣栧厛錛屽皢褰撳墠宸ヤ綔鐩綍鍒囨崲鍒?p鏂囦歡鎵鍦ㄧ殑鐩綍錛岀劧鍚庡氨鍙互鍦ㄥ乏渚х殑宸ヤ綔絀洪棿紿楀彛鐪嬭璇ョ洰褰曟墍鍖呭惈鐨勬墍鏈夋枃浠朵簡錛屽綋鐒跺寘鎷?p鏂囦歡鍟</div><div style="line-height: 28px; color: #2e2e2e; font-family: "Hiragino Sans GB W3", "Hiragino Sans GB", Arial, Helvetica, simsun, u5b8bu4f53; font-size: 16px; background-color: #ffffff;"></div><div style="line-height: 28px; color: #2e2e2e; font-family: "Hiragino Sans GB W3", "Hiragino Sans GB", Arial, Helvetica, simsun, u5b8bu4f53; font-size: 16px; background-color: #ffffff;">2.鐢變簬.p鏂囦歡鏄?m鏂囦歡鐨勯瑙f瀽鐗堟湰錛堜笉鑳芥煡鐪嬨佺紪杈戯級錛屾樉鐒?p鏂囦歡鍚?m鏂囦歡涓鏍烽兘鏄竴涓嚱鏁頒綋錛屽彧涓嶈繃姝ゆ椂璇ュ嚱鏁版槸涓涓粦鐩掑瓙緗簡銆備婦渚嬪test.p鏂囦歡渚挎剰鍛崇潃瀛樺湪涓涓凡緇忕紪濂界殑鍑芥暟test錛堝浣曞疄鐜版垜浠笉鐭ラ亾錛夛紝涓鴻皟鐢ㄨ繖涓嚱鏁皌est錛屾垜浠渶瑕佺煡閬撳畠鐨勫弬鏁板艦寮?姝ゆ椂鍦ㄥ懡浠ょ獥鍙d笅閿叆help test錛屽嵆鍙煡鐪嬪埌test鍑芥暟鐨勫弬鏁?鐒跺悗鎴戜滑灝卞彲浠ヨ皟鐢ㄥ暒</div><div style="line-height: 28px; color: #2e2e2e; font-family: "Hiragino Sans GB W3", "Hiragino Sans GB", Arial, Helvetica, simsun, u5b8bu4f53; font-size: 16px; background-color: #ffffff;"></div><div style="line-height: 28px; color: #2e2e2e; font-family: "Hiragino Sans GB W3", "Hiragino Sans GB", Arial, Helvetica, simsun, u5b8bu4f53; font-size: 16px; background-color: #ffffff;"></div><div style="line-height: 28px; color: #2e2e2e; font-family: "Hiragino Sans GB W3", "Hiragino Sans GB", Arial, Helvetica, simsun, u5b8bu4f53; font-size: 16px; background-color: #ffffff;"><strong style="color: red;">濡備綍鑷繁鍒朵綔.p鏂囦歡</strong></div><div style="line-height: 28px; color: #2e2e2e; font-family: "Hiragino Sans GB W3", "Hiragino Sans GB", Arial, Helvetica, simsun, u5b8bu4f53; font-size: 16px; background-color: #ffffff;"></div><div style="line-height: 28px; color: #2e2e2e; font-family: "Hiragino Sans GB W3", "Hiragino Sans GB", Arial, Helvetica, simsun, u5b8bu4f53; font-size: 16px; background-color: #ffffff;">鍦∕atlab涓紝鎴戜滑緇忓父鎶婅鍙ユ垨鍑芥暟鍐欏湪涓涓狹鏂囦歡閲岋紝渚夸簬妯″潡鍖栧拰浠g爜閲嶇敤錛屾瘮濡傦紝鍐欎竴涓猼est.m鐨勬枃浠訛紙鍗寵嚜瀹氫箟涓涓猼est鍑芥暟錛夛細</div><div style="line-height: 28px; color: #2e2e2e; font-family: "Hiragino Sans GB W3", "Hiragino Sans GB", Arial, Helvetica, simsun, u5b8bu4f53; font-size: 16px; background-color: #ffffff;">% ———————-</div><div style="line-height: 28px; color: #2e2e2e; font-family: "Hiragino Sans GB W3", "Hiragino Sans GB", Arial, Helvetica, simsun, u5b8bu4f53; font-size: 16px; background-color: #ffffff;">% test.m</div><div style="line-height: 28px; color: #2e2e2e; font-family: "Hiragino Sans GB W3", "Hiragino Sans GB", Arial, Helvetica, simsun, u5b8bu4f53; font-size: 16px; background-color: #ffffff;">a = 1;</div><div style="line-height: 28px; color: #2e2e2e; font-family: "Hiragino Sans GB W3", "Hiragino Sans GB", Arial, Helvetica, simsun, u5b8bu4f53; font-size: 16px; background-color: #ffffff;">b = 2;</div><div style="line-height: 28px; color: #2e2e2e; font-family: "Hiragino Sans GB W3", "Hiragino Sans GB", Arial, Helvetica, simsun, u5b8bu4f53; font-size: 16px; background-color: #ffffff;">% ———————-</div><div style="line-height: 28px; color: #2e2e2e; font-family: "Hiragino Sans GB W3", "Hiragino Sans GB", Arial, Helvetica, simsun, u5b8bu4f53; font-size: 16px; background-color: #ffffff;">榪欎釜M璇彞鏂囦歡錛屾垨錛?/div><div style="line-height: 28px; color: #2e2e2e; font-family: "Hiragino Sans GB W3", "Hiragino Sans GB", Arial, Helvetica, simsun, u5b8bu4f53; font-size: 16px; background-color: #ffffff;">% ———————-</div><div style="line-height: 28px; color: #2e2e2e; font-family: "Hiragino Sans GB W3", "Hiragino Sans GB", Arial, Helvetica, simsun, u5b8bu4f53; font-size: 16px; background-color: #ffffff;">% test2.m</div><div style="line-height: 28px; color: #2e2e2e; font-family: "Hiragino Sans GB W3", "Hiragino Sans GB", Arial, Helvetica, simsun, u5b8bu4f53; font-size: 16px; background-color: #ffffff;">function a = test2(b)</div><div style="line-height: 28px; color: #2e2e2e; font-family: "Hiragino Sans GB W3", "Hiragino Sans GB", Arial, Helvetica, simsun, u5b8bu4f53; font-size: 16px; background-color: #ffffff;">a = b * 2;</div><div style="line-height: 28px; color: #2e2e2e; font-family: "Hiragino Sans GB W3", "Hiragino Sans GB", Arial, Helvetica, simsun, u5b8bu4f53; font-size: 16px; background-color: #ffffff;">% ———————-</div><div style="line-height: 28px; color: #2e2e2e; font-family: "Hiragino Sans GB W3", "Hiragino Sans GB", Arial, Helvetica, simsun, u5b8bu4f53; font-size: 16px; background-color: #ffffff;">榪欎釜M鍑芥暟銆?/div><div style="line-height: 28px; color: #2e2e2e; font-family: "Hiragino Sans GB W3", "Hiragino Sans GB", Arial, Helvetica, simsun, u5b8bu4f53; font-size: 16px; background-color: #ffffff;">鎴戜滑鍦–ommand Window閲岃緭鍏ワ細</div><div style="line-height: 28px; color: #2e2e2e; font-family: "Hiragino Sans GB W3", "Hiragino Sans GB", Arial, Helvetica, simsun, u5b8bu4f53; font-size: 16px; background-color: #ffffff;">>> test</div><div style="line-height: 28px; color: #2e2e2e; font-family: "Hiragino Sans GB W3", "Hiragino Sans GB", Arial, Helvetica, simsun, u5b8bu4f53; font-size: 16px; background-color: #ffffff;">鍗蟲槸絳変簬杈撳叆浜?/div><div style="line-height: 28px; color: #2e2e2e; font-family: "Hiragino Sans GB W3", "Hiragino Sans GB", Arial, Helvetica, simsun, u5b8bu4f53; font-size: 16px; background-color: #ffffff;">>> a = 1;</div><div style="line-height: 28px; color: #2e2e2e; font-family: "Hiragino Sans GB W3", "Hiragino Sans GB", Arial, Helvetica, simsun, u5b8bu4f53; font-size: 16px; background-color: #ffffff;">>> b = 2;</div><div style="line-height: 28px; color: #2e2e2e; font-family: "Hiragino Sans GB W3", "Hiragino Sans GB", Arial, Helvetica, simsun, u5b8bu4f53; font-size: 16px; background-color: #ffffff;">鑰岃緭鍏ワ細</div><div style="line-height: 28px; color: #2e2e2e; font-family: "Hiragino Sans GB W3", "Hiragino Sans GB", Arial, Helvetica, simsun, u5b8bu4f53; font-size: 16px; background-color: #ffffff;">>> a = test2(2)</div><div style="line-height: 28px; color: #2e2e2e; font-family: "Hiragino Sans GB W3", "Hiragino Sans GB", Arial, Helvetica, simsun, u5b8bu4f53; font-size: 16px; background-color: #ffffff;">a =</div><div style="line-height: 28px; color: #2e2e2e; font-family: "Hiragino Sans GB W3", "Hiragino Sans GB", Arial, Helvetica, simsun, u5b8bu4f53; font-size: 16px; background-color: #ffffff;">     4</div><div style="line-height: 28px; color: #2e2e2e; font-family: "Hiragino Sans GB W3", "Hiragino Sans GB", Arial, Helvetica, simsun, u5b8bu4f53; font-size: 16px; background-color: #ffffff;">渚挎槸鎵ц浜嗕竴涓嚱鏁般?/div><div style="line-height: 28px; color: #2e2e2e; font-family: "Hiragino Sans GB W3", "Hiragino Sans GB", Arial, Helvetica, simsun, u5b8bu4f53; font-size: 16px; background-color: #ffffff;">浠ヤ笂鐨勫唴瀹規垜鎯沖ぇ閮ㄤ喚浜洪兘鐭ラ亾鏄庝箞涓鍥炰簨浜嗭紝浠ヤ笅璇翠竴璇碢浠g爜鏂囦歡銆?/div><div style="line-height: 28px; color: #2e2e2e; font-family: "Hiragino Sans GB W3", "Hiragino Sans GB", Arial, Helvetica, simsun, u5b8bu4f53; font-size: 16px; background-color: #ffffff;"><span style="color: red;">濡傛灉鍦–ommand Window閲岃緭鍏ワ細</span></div><div style="line-height: 28px; color: #2e2e2e; font-family: "Hiragino Sans GB W3", "Hiragino Sans GB", Arial, Helvetica, simsun, u5b8bu4f53; font-size: 16px; background-color: #ffffff;"><span style="color: red;">>> pcode test</span></div><div style="line-height: 28px; color: #2e2e2e; font-family: "Hiragino Sans GB W3", "Hiragino Sans GB", Arial, Helvetica, simsun, u5b8bu4f53; font-size: 16px; background-color: #ffffff;"><span style="color: red;">渚夸細鍦ㄧ浉搴攖est.m鐨勬枃浠跺す閲屼駭鐢熶簡test.p銆傚鏋滆繖鏃跺湪Command Window閲岃緭鍏ワ細</span></div><div style="line-height: 28px; color: #2e2e2e; font-family: "Hiragino Sans GB W3", "Hiragino Sans GB", Arial, Helvetica, simsun, u5b8bu4f53; font-size: 16px; background-color: #ffffff;"><span style="color: red;">>> test</span></div><div style="line-height: 28px; color: #2e2e2e; font-family: "Hiragino Sans GB W3", "Hiragino Sans GB", Arial, Helvetica, simsun, u5b8bu4f53; font-size: 16px; background-color: #ffffff;"><span style="color: red;">鍏跺疄鏄繍琛屼簡test.p錛岃屼笉鏄痶est.m銆?/span></div><div style="line-height: 28px; color: #2e2e2e; font-family: "Hiragino Sans GB W3", "Hiragino Sans GB", Arial, Helvetica, simsun, u5b8bu4f53; font-size: 16px; background-color: #ffffff;">P鏂囦歡鏄搴擬鏂囦歡鐨勪竴縐嶉瑙f瀽鐗堟湰錛坧reparsed version錛夈傚洜涓哄綋浣犵涓嬈℃墽琛孧鏂囦歡鏃訛紝Matlab闇瑕佸皢鍏惰В鏋愶紙parse錛変竴嬈★紙絎竴嬈℃墽琛屽悗鐨勫凡瑙f瀽鍐呭浼氭斁鍏ュ唴瀛樹綔絎簩嬈℃墽琛屾椂浣跨敤錛屽嵆絎簩嬈℃墽琛屾椂鏃犻渶鍐嶈В鏋愶級錛岃繖鏃犲艦涓鍔犱簡鎵ц鏃墮棿銆傛墍浠ユ垜浠氨棰勫厛浣滆В閲婏紝閭d箞浠ュ悗鍐嶄嬌鐢ㄨM鏂囦歡鏃訛紝渚夸細鐩存帴鎵ц瀵瑰簲鐨勫凡瑙f瀽鐗堟湰錛屽嵆P鏂囦歡銆備絾鍙堝洜涓篗atlab鐨勮В鏋愰熷害闈炲父蹇紝涓鑸笉鐢ㄨ嚜宸變綔棰勮В鏋愩傚彧鏈夊綋涓浜涚▼搴忚璋冪敤鍒伴潪甯稿鐨凪鏂囦歡鏃訛紝濡侴UI搴旂敤紼嬪簭鏃訛紝鎵嶄細浣滈瑙f瀽錛屼互澧炲姞浠ュ悗鐨勮皟鐢ㄩ熷害銆?/div><div style="line-height: 28px; color: #2e2e2e; font-family: "Hiragino Sans GB W3", "Hiragino Sans GB", Arial, Helvetica, simsun, u5b8bu4f53; font-size: 16px; background-color: #ffffff;">濡侻atlab鐨勫綋鍓嶇洰褰曪紙Current Directory錛夋湁test.m鏂囦歡錛屼綔棰勮В鏋愬悗錛屽張鏈塼est.p鏂囦歡銆傚洜涓篜鏂囦歡鐨勮皟鐢ㄤ紭鍏堢駭姣擬鏂囦歡瑕侀珮錛屾墍浠ュ綋浣犺皟鐢╰est鏃訛紝浼氫綔浼樺厛閫夋嫨鑰岃皟鐢ㄤ簡test.p銆?/div><div style="line-height: 28px; color: #2e2e2e; font-family: "Hiragino Sans GB W3", "Hiragino Sans GB", Arial, Helvetica, simsun, u5b8bu4f53; font-size: 16px; background-color: #ffffff;">鍙互淇敼test.m鐨勪唬鐮佷負錛?/div><div style="line-height: 28px; color: #2e2e2e; font-family: "Hiragino Sans GB W3", "Hiragino Sans GB", Arial, Helvetica, simsun, u5b8bu4f53; font-size: 16px; background-color: #ffffff;">% ———————-</div><div style="line-height: 28px; color: #2e2e2e; font-family: "Hiragino Sans GB W3", "Hiragino Sans GB", Arial, Helvetica, simsun, u5b8bu4f53; font-size: 16px; background-color: #ffffff;">% test.m</div><div style="line-height: 28px; color: #2e2e2e; font-family: "Hiragino Sans GB W3", "Hiragino Sans GB", Arial, Helvetica, simsun, u5b8bu4f53; font-size: 16px; background-color: #ffffff;">a = 3;</div><div style="line-height: 28px; color: #2e2e2e; font-family: "Hiragino Sans GB W3", "Hiragino Sans GB", Arial, Helvetica, simsun, u5b8bu4f53; font-size: 16px; background-color: #ffffff;">b = 4;</div><div style="line-height: 28px; color: #2e2e2e; font-family: "Hiragino Sans GB W3", "Hiragino Sans GB", Arial, Helvetica, simsun, u5b8bu4f53; font-size: 16px; background-color: #ffffff;">% ———————-</div><div style="line-height: 28px; color: #2e2e2e; font-family: "Hiragino Sans GB W3", "Hiragino Sans GB", Arial, Helvetica, simsun, u5b8bu4f53; font-size: 16px; background-color: #ffffff;">鍐嶅湪Command Window閲岃皟鐢╰est錛?/div><div style="line-height: 28px; color: #2e2e2e; font-family: "Hiragino Sans GB W3", "Hiragino Sans GB", Arial, Helvetica, simsun, u5b8bu4f53; font-size: 16px; background-color: #ffffff;">>> test</div><div style="line-height: 28px; color: #2e2e2e; font-family: "Hiragino Sans GB W3", "Hiragino Sans GB", Arial, Helvetica, simsun, u5b8bu4f53; font-size: 16px; background-color: #ffffff;">Warning: P-file C:\Program Files\MATLAB71\work\test.p is older than M-file C:\Program Files\MATLAB71\work\test.m.</div><div style="line-height: 28px; color: #2e2e2e; font-family: "Hiragino Sans GB W3", "Hiragino Sans GB", Arial, Helvetica, simsun, u5b8bu4f53; font-size: 16px; background-color: #ffffff;">C:\Program Files\MATLAB71\work\test.p may be obsolete and may need to be regenerated.</div><div style="line-height: 28px; color: #2e2e2e; font-family: "Hiragino Sans GB W3", "Hiragino Sans GB", Arial, Helvetica, simsun, u5b8bu4f53; font-size: 16px; background-color: #ffffff;">Type "help pcode" for information about generating P-files from M-files.</div><div style="line-height: 28px; color: #2e2e2e; font-family: "Hiragino Sans GB W3", "Hiragino Sans GB", Arial, Helvetica, simsun, u5b8bu4f53; font-size: 16px; background-color: #ffffff;">浼氬嚭鐜頒竴涓猈arning錛岃鍛婁綘鎵璋冪敤鐨凱鏂囦歡姣斿悓鍚嶇殑M鏂囦歡瑕佹棫錛屽嵆琛ㄧずM鏂囦歡宸茶淇敼浜嗐傚敖綆″姝わ紝璋冪敤鐨勮繕鏄棫鐨凱鏂囦歡錛屽嵆寰楀嚭a = 1鍜?b = 2銆?/div><div style="line-height: 28px; color: #2e2e2e; font-family: "Hiragino Sans GB W3", "Hiragino Sans GB", Arial, Helvetica, simsun, u5b8bu4f53; font-size: 16px; background-color: #ffffff;">P鏂囦歡鍙互鐢ㄦ潵浣滀繚瀵嗕唬鐮佷箣鐢紝濡傛灉浣犵粰鍒漢涓涓狹鏂囦歡錛屽埆浜哄彲浠ユ墦寮鏉ョ湅鍒頒綘鎵鏈夌殑浠g爜鍜岀畻娉曘傚鏋滀綘鐨勪唬鐮佷笉鎯寵鍒漢鐪嬪埌錛岄偅鍙互緇欎粬P鏂囦歡銆?/div><div style="line-height: 28px; color: #2e2e2e; font-family: "Hiragino Sans GB W3", "Hiragino Sans GB", Arial, Helvetica, simsun, u5b8bu4f53; font-size: 16px; background-color: #ffffff;">pcode鍑芥暟涔熷彲浠ュ簲鐢ㄥ湪M鍑芥暟鏂囦歡銆?/div><div style="line-height: 28px; color: #2e2e2e; font-family: "Hiragino Sans GB W3", "Hiragino Sans GB", Arial, Helvetica, simsun, u5b8bu4f53; font-size: 16px; background-color: #ffffff;"></div><div style="line-height: 28px; color: #2e2e2e; font-family: "Hiragino Sans GB W3", "Hiragino Sans GB", Arial, Helvetica, simsun, u5b8bu4f53; font-size: 16px; background-color: #ffffff;"><div style="line-height: 22px;">鍙傝冿細<br /><div>http://zmryyj.blog.163.com/blog/static/98450751201132081451490/</div></div><div style="line-height: 22px;">http://frenselx.spaces.live.com/blog/cns!3D7342371BEE8602!290.entry<br />闃呰璁板綍: read twice, understand completely</div></div><img src ="http://www.shnenglu.com/guijie/aggbug/214068.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.shnenglu.com/guijie/" target="_blank">鏉板摜</a> 2016-07-29 15:13 <a href="http://www.shnenglu.com/guijie/archive/2016/07/29/214068.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>The matlab code of Locality sensitive hashing (LSH)http://www.shnenglu.com/guijie/archive/2015/11/27/212354.html鏉板摜鏉板摜Fri, 27 Nov 2015 14:24:00 GMThttp://www.shnenglu.com/guijie/archive/2015/11/27/212354.htmlhttp://www.shnenglu.com/guijie/comments/212354.htmlhttp://www.shnenglu.com/guijie/archive/2015/11/27/212354.html#Feedback0http://www.shnenglu.com/guijie/comments/commentRss/212354.htmlhttp://www.shnenglu.com/guijie/services/trackbacks/212354.html
XX = XX * randn(size(XX,2),bit);
Y = zeros(size(XX));
Y(XX>=0)=1;
Y = compactbit(Y);


鏉板摜 2015-11-27 22:24 鍙戣〃璇勮
]]>
matlab鍑芥暟meshgridhttp://www.shnenglu.com/guijie/archive/2015/09/11/211803.html鏉板摜鏉板摜Fri, 11 Sep 2015 04:42:00 GMThttp://www.shnenglu.com/guijie/archive/2015/09/11/211803.htmlhttp://www.shnenglu.com/guijie/comments/211803.htmlhttp://www.shnenglu.com/guijie/archive/2015/09/11/211803.html#Feedback0http://www.shnenglu.com/guijie/comments/commentRss/211803.htmlhttp://www.shnenglu.com/guijie/services/trackbacks/211803.html闂錛?/span>

浣跨敤matlab鎬庝箞鑳藉浜х敓榪欐牱鐨勪竴緇勬暟緇勫憿錛?br />x = 1,2,3,4
y = 5,6

浜х敓涓緇勭偣錛?/p>

(1,5) (1,6)
(2,5) (2,6)
(3,5) (3,6)
(4,5) (4,6)


絳旀錛?/span>

x = [1,2,3,4];
y = [5,6];
[X,Y] = meshgrid(x,y);
[X(:), Y(:)]




鏉板摜 2015-09-11 12:42 鍙戣〃璇勮
]]>
matlab鍑芥暟fminunc:姹傛棤綰︽潫浼樺寲鐨勬渶浼樿Вhttp://www.shnenglu.com/guijie/archive/2015/08/13/211551.html鏉板摜鏉板摜Thu, 13 Aug 2015 04:59:00 GMThttp://www.shnenglu.com/guijie/archive/2015/08/13/211551.htmlhttp://www.shnenglu.com/guijie/comments/211551.htmlhttp://www.shnenglu.com/guijie/archive/2015/08/13/211551.html#Feedback0http://www.shnenglu.com/guijie/comments/commentRss/211551.htmlhttp://www.shnenglu.com/guijie/services/trackbacks/211551.html

鏉板摜 2015-08-13 12:59 鍙戣〃璇勮
]]>
matlab鍔犻? bsxfunhttp://www.shnenglu.com/guijie/archive/2015/08/05/211481.html鏉板摜鏉板摜Wed, 05 Aug 2015 03:18:00 GMThttp://www.shnenglu.com/guijie/archive/2015/08/05/211481.htmlhttp://www.shnenglu.com/guijie/comments/211481.htmlhttp://www.shnenglu.com/guijie/archive/2015/08/05/211481.html#Feedback0http://www.shnenglu.com/guijie/comments/commentRss/211481.htmlhttp://www.shnenglu.com/guijie/services/trackbacks/211481.html灝嗚緇冩暟鎹拰嫻嬭瘯鏁版嵁閮藉幓涓績鍖?/span>
X = traindata;
label = traingnd;
m = mean(X);
X_zm = bsxfun(@minus, X, m);
traindata_zm = bsxfun(@minus, traindata, m);
testdata_zm = bsxfun(@minus, testdata, m);

matlab鍑芥暟 bsxfun嫻呰皥錛堣漿杞斤級
http://blog.sina.com.cn/s/blog_9e67285801010ttn.html

緗戜笂鍏充簬bsxfun鐨勪笢瑗夸笉澶氾紝浠婂ぉ闇瑕佺湅鍒頒竴涓紝鐢變簬鍘熷崥鏂囨彃鍏ョ殑鍥劇墖鏄劇ず涓嶅嚭鏉ワ紝浜庢槸絎旇呭ぇ鍙戝杽蹇冭繘琛屼簡contrl+V 浠ュ強alt+ctrl+A鐨勬搷浣滐紝渚涘ぇ瀹朵氦嫻佸涔犮?/span>

 

bsxfun鏄竴涓?/span>matlab鑷増鏈?/span>R2007a鏉ュ氨鎻愪緵鐨勪竴涓嚱鏁幫紝浣滅敤鏄?/span>”applies an element-by-element binary operation to arrays a and b, with singleton expansion enabled.”

涓句釜渚嬪瓙銆傚亣璁炬垜浠湁涓鍒楀悜閲忓拰涓琛屽悜閲忋?/span>

a = randn(3,1), b = randn(1,3) a = -0.2453 -0.2766 -0.1913 b = 0.6062 0.5655 0.9057

鎴戜滑鍙互寰堢畝鍗曠殑浣跨敤matlab鐨勫涔?/span>c=a*b鏉ュ緱鍒幫紝濡傚浘 bsxfun嫻呰皥錛堣漿杞斤級" o:button="t" target='"_blank"' o:spid="_x0000_i1025">bsxfun嫻呰皥錛堣漿杞斤級" src="file:///C:\Users\jie\AppData\Local\Temp\msohtmlclip1\01\clip_image001.jpg">
浣嗗鏋滄垜浠兂鐢?/span>澶栧姞鍛紵涔熷氨鏄鎶婁笂寮忔眰瑙h繃紼嬩腑鐨勪箻鍙鋒崲鍋氬姞鍙鳳紵

榪欐椂鎴戜滑鍙互鐢?/span>c=bsxfun(@plus,a,b)鏉ュ疄鐜般?/span>

bsxfun鐨勬墽琛屾槸榪欐牱鐨勶紝濡傛灉a鍜?/span>b鐨勫ぇ灝忕浉鍚岋紝閭d箞c=a+b. 浣嗗鏋滄湁鏌愮淮涓嶅悓錛屼笖a鎴?/span>b蹇呴』鏈変竴涓湪榪欎竴緇寸殑緇存暟涓?/span>1, 閭d箞bsxfun灝卞皢灝戠殑榪欎釜铏氭嫙鐨勫鍒朵竴浜涙潵浣夸笌澶氱殑緇存暟涓鏍楓傚湪鎴戜滑榪欓噷錛?/span>b鐨勭涓緇村彧鏈?/span>1錛堝彧涓琛岋級錛屾墍浠?/span>bsxfun灝?/span>b澶嶅埗3嬈″艦鎴愪竴涓?/span>3×3鐨勭煩闃碉紝鍚屾牱涔熷皢a澶嶅埗鎴?/span>3×3鐨勭煩闃點傝繖涓瓑浠蜂簬c=repmat(a,1,3)+repmat(b,3,1)銆傝繖閲?/span>

repmat(a,1,3) ans = -0.2453 -0.2453 -0.2453 -0.2766 -0.2766 -0.2766 -0.1913 -0.1913 -0.1913


repmat
鏄樉寮忕殑澶嶅埗錛屽綋鐒跺甫鏉ュ唴瀛樼殑娑堣椼傝?/span>bsxfun鏄櫄鎷熺殑澶嶅埗錛屽疄闄呬笂閫氳繃for鏉ュ疄鐜幫紝絳夋晥浜?/span>for(i=1:3),for(j=1:3),c(i,j)=a(i)+b(j);end,end銆備絾bsxfun涓嶄細鏈変嬌鐢?/span>matlab鐨?/span>for鎵甯︽潵棰濆鏃墮棿銆傚疄闄呴獙璇佷笅榪欎笁縐嶆柟寮?/span>


>> c = bsxfun(@plus,a,b) c = 0.3609 0.3202 0.6604 0.3296 0.2889 0.6291 0.4149 0.3742 0.7144 >> c = repmat(a,1,3)+repmat(b,3,1) c = 0.3609 0.3202 0.6604 0.3296 0.2889 0.6291 0.4149 0.3742 0.7144 >> for(i=1:3),for(j=1:3),c(i,j)=a(i)+b(j);end,end,c c = 0.3609 0.3202 0.6604 0.3296 0.2889 0.6291 0.4149 0.3742 0.7144


浠庤綆楁椂闂翠笂鏉ヨ鍓嶄袱縐嶅疄鐜板樊涓嶅錛岃繙楂樹簬for鐨勫疄鐜般備絾濡傛灉鏁版嵁寰堝ぇ錛岀浜岀瀹炵幇鍙兘浼氭湁鍐呭瓨涓婄殑闂銆?/span>鎵浠sxfun鏈濂姐?br />

涓嬮潰鐪嬩竴涓洿涓哄疄闄呯殑鎯呭喌銆傚亣璁炬垜浠湁鏁版嵁A鍜孊, 姣忚鏄竴涓牱鏈紝姣忓垪鏄竴涓壒寰併傛垜浠璁$畻楂樻柉鏍革紝鏃細





榪欓噷@plus鏄姞娉曠殑鍑芥暟鏁版焺錛岀浉搴旂殑鏈夊噺娉旲minus, 涔樻硶@times, 宸﹀彸闄ょ瓑錛屽叿浣撳彲瑙?doc bsxfun.


 
k(||x-xc||)=exp{- ||x-xc||^2/(2*σ)^2) } 鍏朵腑xc涓烘牳鍑芥暟涓績,σ涓哄嚱鏁扮殑瀹藉害鍙傛暟 , 鎺у埗浜嗗嚱鏁扮殑寰勫悜浣滅敤鑼冨洿銆?/span>


褰撶劧鍙互鐢ㄥ弻閲峟or瀹炵幇錛堝鏋滅涓鐩磋鏄敤涓夐噸for鐨勮瘽…錛夈?br />

K1 = zeros(size(A,1),size(B,1)); for i = 1 : size(A,1) for j = 1 : size(B,1) K1(i,j) = exp(-sum((A(i,:)-B(j,:)).^2)/beta); end end


浣跨敤2,000×1,000澶у皬鐨凙鍜孊, 榪愯鏃墮棿涓?8縐掋?/span>
鑰冭檻涓嬮潰鍚戦噺鍖栧悗鐨勭増鏈細

sA = (sum(A.^2, 2)); sB = (sum(B.^2, 2)); K2 = exp(bsxfun(@minus,bsxfun(@minus,2*A*B', sA), sB')/beta);


浣跨敤鍚屾牱鏁版嵁錛岃繍琛屾椂闂翠粎0.85縐掞紝鍔犻熻秴榪?00鍊嶃?/span>
濡傝鍒ゆ柇涓よ呯粨鏋滄槸涓嶆槸涓鏍鳳紝鍙互濡備笅

assert(all(all(abs(K1-K2)<1e-12)))

 




鏉板摜 2015-08-05 11:18 鍙戣〃璇勮
]]>
matlab鍑芥暟cathttp://www.shnenglu.com/guijie/archive/2015/07/23/211346.html鏉板摜鏉板摜Thu, 23 Jul 2015 00:36:00 GMThttp://www.shnenglu.com/guijie/archive/2015/07/23/211346.htmlhttp://www.shnenglu.com/guijie/comments/211346.htmlhttp://www.shnenglu.com/guijie/archive/2015/07/23/211346.html#Feedback0http://www.shnenglu.com/guijie/comments/commentRss/211346.htmlhttp://www.shnenglu.com/guijie/services/trackbacks/211346.html絳旓細cat(3,A,B)

鏉板摜 2015-07-23 08:36 鍙戣〃璇勮
]]>
How to solve AX + XB = C for X using matlab?http://www.shnenglu.com/guijie/archive/2015/07/06/211161.html鏉板摜鏉板摜Mon, 06 Jul 2015 07:28:00 GMThttp://www.shnenglu.com/guijie/archive/2015/07/06/211161.htmlhttp://www.shnenglu.com/guijie/comments/211161.htmlhttp://www.shnenglu.com/guijie/archive/2015/07/06/211161.html#Feedback0http://www.shnenglu.com/guijie/comments/commentRss/211161.htmlhttp://www.shnenglu.com/guijie/services/trackbacks/211161.htmlX = sylvester(A,B,C)
http://cn.mathworks.com/help/matlab/ref/sylvester.html

鏉板摜 2015-07-06 15:28 鍙戣〃璇勮
]]>
f-measure matlabhttp://www.shnenglu.com/guijie/archive/2015/06/30/211106.html鏉板摜鏉板摜Tue, 30 Jun 2015 13:07:00 GMThttp://www.shnenglu.com/guijie/archive/2015/06/30/211106.htmlhttp://www.shnenglu.com/guijie/comments/211106.htmlhttp://www.shnenglu.com/guijie/archive/2015/06/30/211106.html#Feedback0http://www.shnenglu.com/guijie/comments/commentRss/211106.htmlhttp://www.shnenglu.com/guijie/services/trackbacks/211106.htmlcat_apcal鍑芥暟鏄綆桵AP鐨勶紝浠g爜鎰忎箟寰堝ソ鐞嗚В錛屾瘮濡傛寜璺濈鎺掑簭錛屽墠涓冧釜鍙湁1銆?銆?鍜?鏄拰query鐩稿悓鐨勭被錛屽垯MAP=(1+2/3+3/5+4/7)/4 (This is with discussing with Shu Zhang). 浣咲eep hashing for compact (CVPR 2015) mean average
precision (mAP): which computes the area under the precision-recall curve.
matlab鏇茬嚎涓嬪浣曟眰闈㈢Н?
濡傛灉鐭ラ亾鍑芥暟琛ㄨ揪寮忕殑璇濓紝璋冪敤quad鍑芥暟灝卞彲浠ヤ簡銆傚鏋滀笉鐭ラ亾鍑芥暟琛ㄨ揪寮忓彧鐭ラ亾榪欎竴緋誨垪紱繪暎鐐癸紝x鍜寉錛屽垯trapz(x,y)鍗沖彲
渚?錛氭湰鏈篐ashing\code\ITQ\delete\test_cifar_PCA_ITQ_V01.m錛屽鐢誨嚭鐨刾recison鍜宺ecall鏇茬嚎錛岃綆楁洸綰夸笅鐨勯潰縐紝鐢╰rapz(recall,precision)鍗沖彲
Shu Zhang璇翠笉鐭ヤ互涓婁袱縐嶆槸鍚︾瓑浠鳳紝濡傛灉鎸夌収Deep hashing for compact (CVPR 2015)綆楅潰縐紝鍒欑洿鎺ュ氨鑳界湅鍑轟笉鍚岀殑鏂規硶璋佺殑MAP澶э紝鍥犱負璋佺殑鏇茬嚎鍦ㄤ笂鏂瑰氨璋佸ぇ

韜喚璇佺収鐗囧拰鐪熶漢鐨勬瘮瀵規湁涓や釜鎸囨爣
璇瘑鐜囷細浠栨槑鏄庝笉鏄紶涓夛紝浣嗕綘閿欒鍦版妸浠栧垽鏂垚浜嗗紶涓夈傝璇嗙巼1%錛屾剰鍛崇潃鏈?00涓漢鏉ュ啋鍏呭叾浠栦漢錛屾湁1涓漢浼氬啋鍏呮垚鍔熴傚簲璇ュ氨鏄疐AR
璇嗗埆鐜囷細寮犱笁鏈?0%宸﹀彸鐨勬鐜囪緋葷粺璇翠綘涓嶆槸寮犱笁錛岃瘑鍒巼90%銆傚簲璇ュ氨鏄?-FRR
浜屼唬璇佹瘮鐪熶漢錛氳瘑鍒巼90% (璇瘑鐜?%)
鍗充嬌鍦?%鐨勮鍋囩巼鐨勬儏鍐典笅錛岃瘑鍒巼鐩墠鍙兘澶ф鍋氬埌90%宸﹀彸銆傚綋鐒惰繖涓墠鎻愭潯浠舵槸璇達紝鎴戜滑鐢ㄧ殑鏄簩浠h瘉鍗″唴鐨勯偅寮犱綆璐ㄩ噺錛屽帇緙╁緱闈炲父鐙狅紝鐓х墖鐨勫垎杈ㄧ巼涓嶅楂樼殑閭e紶灝忕収鐗囥傚鏋滄垜浠敤鐨勬槸涓寮犳竻鏅扮殑錛岃繎鏈熺殑璇佷歡鐓э紝閭d箞榪欎釜緇撹鍙互鍋氬埌澶ф錛岃璇嗙巼鍙互鍋氬埌涓囧垎涔嬩竴鐨勬儏鍐典笅錛岃瘑鍒巼鍙互鍋氬埌90%浠ヤ笂鐨勬紜巼銆?/div>
Reference錛?/div>
閫犲氨Talk | 灞變笘鍏夛細澶╃溂緋葷粺緇堝皢寮鍚紝浣犲噯澶囧ソ浜嗗悧錛焗ttp://mp.weixin.qq.com/s?__biz=MzAwNTcyNDU5MQ==&mid=509662068&idx=1&sn=f14840fb7927497ad0d49e1d18eb6b5a&scene=1&srcid=0529xR8z0qC240GLkQZuUAG9&from=groupmessage&isappinstalled=0#wechat_redirect 宸茬湅涓ゆ

http://www.mathworks.com/matlabcentral/fileexchange/37758-performance-measures-for-classification/content/Evaluate.m

function EVAL = Evaluate(ACTUAL,PREDICTED)
% This fucntion evaluates the performance of a classification model by 
% calculating the common performance measures: Accuracy, Sensitivity, 
% Specificity, Precision, Recall, F-Measure, G-mean.
% Input: ACTUAL = Column matrix with actual class labels of the training
%                 examples
%        PREDICTED = Column matrix with predicted class labels by the
%                    classification model
% Output: EVAL = Row matrix with all the performance measures


idx = (ACTUAL()==1);

p = length(ACTUAL(idx));
n = length(ACTUAL(~idx));
N = p+n;

tp = sum(ACTUAL(idx)==PREDICTED(idx));
tn = sum(ACTUAL(~idx)==PREDICTED(~idx));
fp = n-tn;
fn = p-tp;

tp_rate = tp/p;
tn_rate = tn/n;

accuracy = (tp+tn)/N;
sensitivity = tp_rate;
specificity = tn_rate;
precision = tp/(tp+fp);
recall = sensitivity;
f_measure = 2*((precision*recall)/(precision + recall));
gmean = sqrt(tp_rate*tn_rate);

EVAL = [accuracy sensitivity specificity precision recall f_measure gmean];


鏉板摜 2015-06-30 21:07 鍙戣〃璇勮
]]>The matlab code of canonical correlation analysis (CCA)http://www.shnenglu.com/guijie/archive/2015/06/02/210807.html鏉板摜鏉板摜Tue, 02 Jun 2015 14:10:00 GMThttp://www.shnenglu.com/guijie/archive/2015/06/02/210807.htmlhttp://www.shnenglu.com/guijie/comments/210807.htmlhttp://www.shnenglu.com/guijie/archive/2015/06/02/210807.html#Feedback0http://www.shnenglu.com/guijie/comments/commentRss/210807.htmlhttp://www.shnenglu.com/guijie/services/trackbacks/210807.html%Reference: the matlab code of "CVPR 2011 Iterative Quantization". I have checked the correctness of the corresponding derivation and matlab code. No need to check again. Just use it

function [Wx, r] = cca(X,Y,reg)

%
% X is input data for the 1st view (image), n*d, n images, d dim
% Y is input data for the 2nd view (Tag), n*D, D dim
% reg is regularization parameter, usually set by validation
% in our work, reg = 0.0001 which works well
%
% Wx is the embedding function for image
% r is the eigenvalue
%
%
% to run the code, you need visual data X and tag data Y
%
% bit = 32, 64, 128 ...
% [eigenvector,r] = cca(X, Y, 0.0001); % this computes CCA projections
% eigenvector = eigenvector(:,1:bit)*diag(r(1:bit)); % this performs a scaling using eigenvalues
% E = X*eigenvector; % final projection to obtain embedding E
%


z = [X, Y];
C = cov(z);
sx = size(X,2);
sy = size(Y,2);
Cxx = C(1:sx, 1:sx) + reg*eye(sx);
Cxy = C(1:sx, sx+1:sx+sy);
Cyx = Cxy';
Cyy = C(sx+1:sx+sy,sx+1:sx+sy) + reg*eye(sy);


Rx = chol(Cxx);
invRx = inv(Rx);
Z = invRx'*Cxy*(Cyy\Cyx)*invRx;
Z = 0.5*(Z' + Z); 


[Wx,r] = eig(Z);   % basis in h (X)
r = sqrt(real(r)); % as the original r we get is lamda^2
Wx = invRx * Wx;   % actual Wx values
r = diag(r);

[r index] = sort(r,'descend');
Wx = Wx(:,index);

 
Other references:

Information Fusion 2017 Multi-view learning overview鐨勫叕寮?鍜?
Section 2.1 of "NCA 2013 A survey of multi-view machine learning"

 




鏉板摜 2015-06-02 22:10 鍙戣〃璇勮
]]>
[zz]matlab鍥懼儚婊ゆ嘗http://www.shnenglu.com/guijie/archive/2015/05/11/210619.html鏉板摜鏉板摜Mon, 11 May 2015 12:33:00 GMThttp://www.shnenglu.com/guijie/archive/2015/05/11/210619.htmlhttp://www.shnenglu.com/guijie/comments/210619.htmlhttp://www.shnenglu.com/guijie/archive/2015/05/11/210619.html#Feedback0http://www.shnenglu.com/guijie/comments/commentRss/210619.htmlhttp://www.shnenglu.com/guijie/services/trackbacks/210619.htmlclear;
I=imread('a.jpg');             %璇誨彇鍥懼儚
K1=medfilt2(I,[10 10]);          %涓兼護娉?br />h1=ones(5,5)/25;
K2=imfilter(K1,h1);       %鍧囧兼護娉?br />figure, imshow(K2), title('婊ゆ嘗鍚庣殑鍥懼儚')

鏉板摜 2015-05-11 20:33 鍙戣〃璇勮
]]>
The matlab code to normalize each feature of training data and test data to unit mean and zero variancehttp://www.shnenglu.com/guijie/archive/2014/12/05/209030.html鏉板摜鏉板摜Fri, 05 Dec 2014 04:32:00 GMThttp://www.shnenglu.com/guijie/archive/2014/12/05/209030.htmlhttp://www.shnenglu.com/guijie/comments/209030.htmlhttp://www.shnenglu.com/guijie/archive/2014/12/05/209030.html#Feedback0http://www.shnenglu.com/guijie/comments/commentRss/209030.htmlhttp://www.shnenglu.com/guijie/services/trackbacks/209030.html    fea_Train = fea(:,trainIdx);
    gnd_Train = gnd(trainIdx);
    fea_Test = fea(:,testIdx);
    gnd_Test = gnd(testIdx);
    train_size = length(gnd_Train);
    test_size  = length(gnd_Test);
   
    %%%%%%%%%%%%%%%%%%%%%%%Normalization begins%%%%%%%%%%%%%%%%%%%%%%%
    train_data_std = std(fea_Train');
    train_data_mean = mean(fea_Train');
    train_data_std_matrix = ones(train_size,dim)*diag(train_data_std);
    train_data_std_matrix(train_data_std_matrix==0)=1;
    train_data_mean_matrix = ones(train_size,dim)*diag(train_data_mean);
    train_scale_data = (fea_Train' - train_data_mean_matrix)./train_data_std_matrix;
    clear train_data_mean_matrix train_data_std_matrix;
    fea_Train = train_scale_data';
    clear train_scale_data;
   
    test_data_std_matrix = ones(test_size,dim)*diag(train_data_std);
    test_data_mean_matrix = ones(test_size,dim)*diag(train_data_mean);
    clear train_data_mean train_data_std;
    test_data = (fea_Test' - test_data_mean_matrix)./test_data_std_matrix;
    clear test_data_std_matrix test_data_mean_matrix;
    fea_Test = test_data';
    clear test_data;
    %%%%%%%%%%%%%%%%%%%%%%%Normalization ends%%%%%%%%%%%%%%%%%%%%%%%

鏉板摜 2014-12-05 12:32 鍙戣〃璇勮
]]>
鎬庝箞瀹夎*.jar鏂囦歡錛?/title><link>http://www.shnenglu.com/guijie/archive/2014/07/14/207643.html</link><dc:creator>鏉板摜</dc:creator><author>鏉板摜</author><pubDate>Mon, 14 Jul 2014 07:47:00 GMT</pubDate><guid>http://www.shnenglu.com/guijie/archive/2014/07/14/207643.html</guid><wfw:comment>http://www.shnenglu.com/guijie/comments/207643.html</wfw:comment><comments>http://www.shnenglu.com/guijie/archive/2014/07/14/207643.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.shnenglu.com/guijie/comments/commentRss/207643.html</wfw:commentRss><trackback:ping>http://www.shnenglu.com/guijie/services/trackbacks/207643.html</trackback:ping><description><![CDATA[<p style="margin: 0cm 0cm 0pt" class="MsoNormal"><span style="mso-bidi-font-size: 10.5pt" lang="EN-US"><font face="Times New Roman">http://featureselection.asu.edu/software.php</font></span><span style="font-family: 瀹嬩綋; mso-bidi-font-size: 10.5pt; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">涓殑</span><span style="mso-bidi-font-size: 10.5pt" lang="EN-US"><font face="Times New Roman">Information Gain</font></span><span style="font-family: 瀹嬩綋; mso-bidi-font-size: 10.5pt; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">錛岃繍琛屼細鎻愮ず錛岄敊璇細</span><span style="mso-bidi-font-size: 10.5pt" lang="EN-US"><font face="Times New Roman">Undefined variable "weka" or class "weka.attributeSelection.InfoGainAttributeEval".<o:p></o:p></font></span></p> <p style="margin: 0cm 0cm 0pt" class="MsoNormal"><span style="font-family: 瀹嬩綋; mso-bidi-font-size: 10.5pt; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">榪欎釜杞歡鍖呮槸</span><span style="mso-bidi-font-size: 10.5pt" lang="EN-US"><font face="Times New Roman">*.jar</font></span><span style="font-family: 瀹嬩綋; mso-bidi-font-size: 10.5pt; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">鏂囦歡錛屽師浠ヤ負瑙e帇灝辮兘鎵懼埌瀹夎鏂囦歡錛屼絾娌℃湁銆?/span><span style="mso-bidi-font-size: 10.5pt" lang="EN-US"><font face="Times New Roman">Weiqiang</font></span><span style="font-family: 瀹嬩綋; mso-bidi-font-size: 10.5pt; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">璁茶瀹夎</span><span style="mso-bidi-font-size: 10.5pt" lang="EN-US"><font face="Times New Roman">java</font></span><span style="font-family: 瀹嬩綋; mso-bidi-font-size: 10.5pt; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">杞歡銆?/span><span style="mso-bidi-font-size: 10.5pt" lang="EN-US"><font face="Times New Roman">Feature Selection Package</font></span><span style="font-family: 瀹嬩綋; mso-bidi-font-size: 10.5pt; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">杞歡瀹夎榪囩▼濡備笅</span><span style="mso-bidi-font-size: 10.5pt" lang="EN-US"><o:p></o:p></span></p> <p style="margin: 0cm 0cm 0pt" class="MsoNormal"><span style="font-family: 瀹嬩綋; color: red; mso-bidi-font-size: 10.5pt; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">絎竴姝?/span><span style="font-family: 瀹嬩綋; mso-bidi-font-size: 10.5pt; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">錛氬畨瑁?/span><span style="mso-bidi-font-size: 10.5pt" lang="EN-US"><font face="Times New Roman">java(</font></span><span style="font-family: 瀹嬩綋; mso-bidi-font-size: 10.5pt; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">浣跨敤鎴戠數鑴戜腑鐨?/span><span style="mso-bidi-font-size: 10.5pt" lang="EN-US"><font face="Times New Roman">“JAVA </font></span><span style="font-family: 瀹嬩綋; mso-bidi-font-size: 10.5pt; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">铏氭嫙鏈?/span><span style="mso-bidi-font-size: 10.5pt" lang="EN-US"><font face="Times New Roman">”)</font></span><span style="font-family: 瀹嬩綋; mso-bidi-font-size: 10.5pt; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">錛屽茍閰嶇疆鐜鍙橀噺錛氳綆楁満</span><span style="mso-bidi-font-size: 10.5pt" lang="EN-US"><font face="Times New Roman">-></font></span><span style="font-family: 瀹嬩綋; mso-bidi-font-size: 10.5pt; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">灞炴?/span><span style="mso-bidi-font-size: 10.5pt" lang="EN-US"><font face="Times New Roman">-></font></span><span style="font-family: 瀹嬩綋; mso-bidi-font-size: 10.5pt; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">楂樼駭緋葷粺璁劇疆</span><span style="mso-bidi-font-size: 10.5pt" lang="EN-US"><font face="Times New Roman">->鐜鍙橀噺<span style="mso-bidi-font-size: 10.5pt" lang="EN-US"><font face="Times New Roman">-></font></span>lenovo</font></span><span style="font-family: 瀹嬩綋; mso-bidi-font-size: 10.5pt; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">鐨勭敤鎴峰彉閲?/span><span style="mso-bidi-font-size: 10.5pt" lang="EN-US"><font face="Times New Roman">->Path(濡傛灉娌℃湁PATH錛屾柊寤轟竴涓彉閲廝ATH鍗沖彲)-></font></span><span style="font-family: 瀹嬩綋; mso-bidi-font-size: 10.5pt; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">緙栬緫</span><span style="mso-bidi-font-size: 10.5pt" lang="EN-US"><font face="Times New Roman">->(</font></span><span style="font-family: 瀹嬩綋; mso-bidi-font-size: 10.5pt; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">鍔犲叆</span><span style="mso-bidi-font-size: 10.5pt" lang="EN-US"><font face="Times New Roman">”; C:\Program Files (x86)\Java\jre1.6.0_02\bin”鍒?#8220;鍙橀噺鍊?#8221;,</font></span><span style="font-family: 瀹嬩綋; mso-bidi-font-size: 10.5pt; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">娉ㄦ剰姝ゅ璺緞鍚嶅彲鑳戒笉鍚?/span><span style="mso-bidi-font-size: 10.5pt" lang="EN-US"><font face="Times New Roman">)</font></span><span style="font-family: 瀹嬩綋; mso-bidi-font-size: 10.5pt; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">錛?/span><span style="mso-bidi-font-size: 10.5pt" lang="EN-US"><o:p></o:p></span></p> <p style="margin: 0cm 0cm 0pt" class="MsoNormal"><span style="mso-bidi-font-size: 10.5pt" lang="EN-US"><o:p><font face="Times New Roman"> </font></o:p></span></p> <p style="margin: 0cm 0cm 0pt" class="MsoNormal"><span style="font-family: 瀹嬩綋; color: red; mso-bidi-font-size: 10.5pt; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">絎簩姝?/span><span style="font-family: 瀹嬩綋; mso-bidi-font-size: 10.5pt; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">錛氬畨瑁?/span><span style="mso-bidi-font-size: 10.5pt" lang="EN-US"><font face="Times New Roman">FeatureSelection-Installer.jar</font></span><span style="font-family: 瀹嬩綋; mso-bidi-font-size: 10.5pt; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">鍒?/span><span style="mso-bidi-font-size: 10.5pt" lang="EN-US"><font face="Times New Roman">E: \Feature Selection Package</font></span><span style="font-family: 瀹嬩綋; mso-bidi-font-size: 10.5pt; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">錛?/span><span style="mso-bidi-font-size: 10.5pt"><font face="Times New Roman"> </font></span><span style="font-family: 瀹嬩綋; mso-bidi-font-size: 10.5pt; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">榪愯<span style="mso-bidi-font-size: 10.5pt" lang="EN-US"><font face="Times New Roman">cmd-></font></span>E:(瀹氫綅鍒癊鐩?;</span><span style="mso-bidi-font-size: 10.5pt" lang="EN-US"><font face="Times New Roman">cmd->cd E:\Kingsoft\other\matlab 2007a\work\Feature selection\</font></span><span style="font-family: 瀹嬩綋; mso-bidi-font-size: 10.5pt; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">璇存槑</span><span style="mso-bidi-font-size: 10.5pt" lang="EN-US"><font face="Times New Roman">(</font></span><span style="font-family: 瀹嬩綋; mso-bidi-font-size: 10.5pt; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">鐩殑錛屽畾浣嶅埌</span><span style="mso-bidi-font-size: 10.5pt" lang="EN-US"><font face="Times New Roman">FeatureSelection-Installer.jar</font></span><span style="font-family: 瀹嬩綋; mso-bidi-font-size: 10.5pt; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">鎵鍦ㄧ洰褰?/span><span style="mso-bidi-font-size: 10.5pt" lang="EN-US"><font face="Times New Roman">) ->java -jar FeatureSelection-Installer.jar<o:p></o:p></font></span></p> <p style="margin: 0cm 0cm 0pt" class="MsoNormal"><span style="font-family: 瀹嬩綋; mso-bidi-font-size: 10.5pt; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">鍦ㄥ畨瑁呰繃紼嬩腑浼氭湁鎻愮ず錛?/span><span style="mso-bidi-font-size: 10.5pt" lang="EN-US"><o:p></o:p></span></p> <p style="margin: 0cm 0cm 0pt" class="MsoNormal"><font face="Times New Roman"><span style="color: black; mso-bidi-font-size: 10.5pt; mso-themecolor: text1" lang="EN-US">what</span><span style="mso-bidi-font-size: 10.5pt" lang="EN-US"> to do once you've installed Feature Selection Package:<o:p></o:p></span></font></p> <p style="margin: 0cm 0cm 0pt" class="MsoNormal"><span style="mso-bidi-font-size: 10.5pt" lang="EN-US"><font face="Times New Roman">1.<span style="mso-spacerun: yes">   </span>Open MATLAB<o:p></o:p></font></span></p> <p style="margin: 0cm 0cm 0pt" class="MsoNormal"><span style="mso-bidi-font-size: 10.5pt" lang="EN-US"><font face="Times New Roman">2.<span style="mso-spacerun: yes">   </span>Use MATLAB's 'cd' function to navigate to the folder you<o:p></o:p></font></span></p> <p style="margin: 0cm 0cm 0pt" class="MsoNormal"><span style="mso-bidi-font-size: 10.5pt" lang="EN-US"><font face="Times New Roman"><span style="mso-spacerun: yes">       </span>installed Feature Selection Package into.<o:p></o:p></font></span></p> <p style="margin: 0cm 0cm 0pt" class="MsoNormal"><span style="mso-bidi-font-size: 10.5pt" lang="EN-US"><font face="Times New Roman">3.<span style="mso-spacerun: yes">   </span>Run the load_fspackage function with the command: 'load_fspackage'<o:p></o:p></font></span></p> <p style="margin: 0cm 0cm 0pt" class="MsoNormal"><span style="mso-bidi-font-size: 10.5pt" lang="EN-US"><font face="Times New Roman">4.<span style="mso-spacerun: yes">   </span>Select all of the commands you have run in this session, right click,<o:p></o:p></font></span></p> <p style="margin: 0cm 0cm 0pt" class="MsoNormal"><span style="mso-bidi-font-size: 10.5pt" lang="EN-US"><font face="Times New Roman"><span style="mso-spacerun: yes">       </span>and select 'Create Shortcut'. This will give you a shortcut which<o:p></o:p></font></span></p> <p style="margin: 0cm 0cm 0pt" class="MsoNormal"><span style="mso-bidi-font-size: 10.5pt" lang="EN-US"><font face="Times New Roman"><span style="mso-spacerun: yes">       </span>you can use to open Feature Selection Package at your choosing.<o:p></o:p></font></span></p> <p style="margin: 0cm 0cm 0pt" class="MsoNormal"><span style="font-family: 瀹嬩綋; mso-bidi-font-size: 10.5pt; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">鍙鍒拌繖閲岀殑</span><span style="mso-bidi-font-size: 10.5pt" lang="EN-US"><font face="Times New Roman">2</font></span><span style="font-family: 瀹嬩綋; mso-bidi-font-size: 10.5pt; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">錛?/span><span style="mso-bidi-font-size: 10.5pt" lang="EN-US"><font face="Times New Roman">3</font></span><span style="font-family: 瀹嬩綋; mso-bidi-font-size: 10.5pt; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">鍜?/span><span style="mso-bidi-font-size: 10.5pt" lang="EN-US"><font face="Times New Roman">4</font></span><span style="font-family: 瀹嬩綋; mso-bidi-font-size: 10.5pt; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">涓嶈綆★紝</span><span style="mso-bidi-font-size: 10.5pt" lang="EN-US"><font face="Times New Roman">Weiqiang</font></span><span style="font-family: 瀹嬩綋; mso-bidi-font-size: 10.5pt; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">涔熶笉鐭ユ澶?/span><span style="mso-bidi-font-size: 10.5pt" lang="EN-US"><font face="Times New Roman">4</font></span><span style="font-family: 瀹嬩綋; mso-bidi-font-size: 10.5pt; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">姝ヤ唬琛ㄥ暐鍚箟錛屾病綆¤繖涓姝ャ?/span><span style="mso-bidi-font-size: 10.5pt" lang="EN-US"><o:p></o:p></span></p> <p style="margin: 0cm 0cm 0pt" class="MsoNormal"><span style="mso-bidi-font-size: 10.5pt" lang="EN-US"><o:p><font face="Times New Roman"> </font></o:p></span></p> <p style="text-align: left; margin: 0cm 0cm 0pt; text-autospace: ; mso-layout-grid-align: none" class="MsoNormal" align="left"><span style="font-family: 瀹嬩綋; color: red; mso-bidi-font-size: 10.5pt; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">絎笁姝?/span><span style="font-family: 瀹嬩綋; mso-bidi-font-size: 10.5pt; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">錛氬皢</span><span style="mso-bidi-font-size: 10.5pt" lang="EN-US"><font face="Times New Roman">load_fspackage.m</font></span><span style="font-family: 瀹嬩綋; mso-bidi-font-size: 10.5pt; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">鐨勬渶寮濮嬩竴鍙?/span><span style="color: black; mso-bidi-font-size: 10.5pt; mso-font-kerning: 0pt" lang="EN-US"><font face="Times New Roman">”curPath = pwd;”(pwd</font></span><span style="font-family: 瀹嬩綋; color: black; mso-bidi-font-size: 10.5pt; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'; mso-font-kerning: 0pt">鐨勫惈涔夋煡</span><span style="color: black; mso-bidi-font-size: 10.5pt; mso-font-kerning: 0pt" lang="EN-US"><font face="Times New Roman">matlab</font></span><span style="font-family: 瀹嬩綋; color: black; mso-bidi-font-size: 10.5pt; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'; mso-font-kerning: 0pt">甯姪鍗沖彲錛屽氨鏄綋鍓嶇洰褰?/span><span style="color: black; mso-bidi-font-size: 10.5pt; mso-font-kerning: 0pt" lang="EN-US"><font face="Times New Roman">)</font></span><span style="font-family: 瀹嬩綋; color: black; mso-bidi-font-size: 10.5pt; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'; mso-font-kerning: 0pt">涓皢</span><span style="color: black; mso-bidi-font-size: 10.5pt; mso-font-kerning: 0pt" lang="EN-US"><font face="Times New Roman">pwd</font></span><span style="font-family: 瀹嬩綋; color: black; mso-bidi-font-size: 10.5pt; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'; mso-font-kerning: 0pt">鎹㈡垚</span><span style="mso-bidi-font-size: 10.5pt" lang="EN-US"><font face="Times New Roman">load_fspackage.m</font></span><span style="font-family: 瀹嬩綋; mso-bidi-font-size: 10.5pt; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">鎵鍦ㄧ殑鐩綍</span><span style="mso-bidi-font-size: 10.5pt" lang="EN-US"><font face="Times New Roman">'E:\Feature Selection Package\fspackage'</font></span><span style="font-family: 瀹嬩綋; color: black; mso-bidi-font-size: 10.5pt; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'; mso-font-kerning: 0pt">鍗沖彲銆?/span><span style="font-family: 瀹嬩綋; mso-bidi-font-size: 10.5pt; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'; mso-font-kerning: 0pt">鍦ㄨ浣跨敤璇ュ伐鍏峰寘鐨?/span><span style="font-family: 瀹嬩綋; mso-bidi-font-size: 10.5pt; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">紼嬪簭鐨勬渶寮濮嬪姞涓婂姞涓?/span><font face="Times New Roman"><span style="color: red; mso-bidi-font-size: 10.5pt" lang="EN-US">run</span><span style="color: black; mso-bidi-font-size: 10.5pt; mso-themecolor: text1" lang="EN-US">('E:\Feature Selection Package\fspackage\load_fspackage.m')</span></font><span style="font-family: 瀹嬩綋; mso-bidi-font-size: 10.5pt; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">錛岃繖鏍峰氨涓嶄細鍑虹幇濡備笅閿欎簡錛?/span><span style="mso-bidi-font-size: 10.5pt" lang="EN-US"><font face="Times New Roman">Undefined variable "weka" or class "weka.attributeSelection.InfoGainAttributeEval".<o:p></o:p></font></span></p> <p style="text-align: left; margin: 0cm 0cm 0pt; text-autospace: ; mso-layout-grid-align: none" class="MsoNormal" align="left"><span style="color: black; mso-bidi-font-size: 10.5pt; mso-themecolor: text1" lang="EN-US"><o:p><font face="Times New Roman"> </font></o:p></span></p> <p style="margin: 0cm 0cm 0pt" class="MsoNormal"><span style="font-family: 瀹嬩綋; mso-bidi-font-size: 10.5pt; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">宸茬粡鎸夌収涓婅堪姝ラ錛屽湪鎴戝彴寮忔満鎴愬姛瀹夎</span><span style="mso-bidi-font-size: 10.5pt" lang="EN-US"><font face="Times New Roman">FeatureSelection-Installer.jar</font></span><span style="font-family: 瀹嬩綋; mso-bidi-font-size: 10.5pt; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">杞歡</span><span style="mso-bidi-font-size: 10.5pt" lang="EN-US"><font face="Times New Roman">(</font></span><span style="font-family: 瀹嬩綋; mso-bidi-font-size: 10.5pt; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">鍙板紡鏈哄師鏉ユ病瀹夎</span><span style="mso-bidi-font-size: 10.5pt" lang="EN-US"><font face="Times New Roman">java</font></span><span style="font-family: 瀹嬩綋; mso-bidi-font-size: 10.5pt; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">杞歡</span><span style="mso-bidi-font-size: 10.5pt" lang="EN-US"><font face="Times New Roman">)</font></span><span style="font-family: 瀹嬩綋; mso-bidi-font-size: 10.5pt; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">銆?/span><span style="mso-bidi-font-size: 10.5pt" lang="EN-US"><font face="Times New Roman">This is with Weiqiang Ren's help.<o:p></o:p></font></span></p><img src ="http://www.shnenglu.com/guijie/aggbug/207643.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.shnenglu.com/guijie/" target="_blank">鏉板摜</a> 2014-07-14 15:47 <a href="http://www.shnenglu.com/guijie/archive/2014/07/14/207643.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>[zz]Matlab鍥懼艦涓樉紺烘暟瀛﹀叕寮?/title><link>http://www.shnenglu.com/guijie/archive/2013/11/02/204063.html</link><dc:creator>鏉板摜</dc:creator><author>鏉板摜</author><pubDate>Sat, 02 Nov 2013 12:00:00 GMT</pubDate><guid>http://www.shnenglu.com/guijie/archive/2013/11/02/204063.html</guid><wfw:comment>http://www.shnenglu.com/guijie/comments/204063.html</wfw:comment><comments>http://www.shnenglu.com/guijie/archive/2013/11/02/204063.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.shnenglu.com/guijie/comments/commentRss/204063.html</wfw:commentRss><trackback:ping>http://www.shnenglu.com/guijie/services/trackbacks/204063.html</trackback:ping><description><![CDATA[<div><a >http://blog.sina.com.cn/s/blog_401aa0540100ufl1.html</a><br /><br />Matlab 緇樺浘鏃訛紝 鍙互閫氳繃 璁劇疆 "interpreter" 灞炴?鏄劇ず鏁板鍏紡銆?/div> <div>E.g.</div> <div>xlabel('$n$','interpreter','latex');</div> <div>ylabel('${\gamma}$','interpreter','latex');</div> <div>title('${\gamma}(n)$','interpreter','latex');</div> <div>text(0.5,0.5, '$\int_{a}^{b}f(x)dx$', 'interpreter','latex');<br /><br /><span style="color: red">渚?錛?/span>鎴戠殑紼嬪簭Flicker.m (<span style="color: red">鎵鏈夊瓧浣撻兘鏄疞atex)</span> <div>h = legend('ours','$l_p$-norm MKL',1);</div> <div>set(h,'Interpreter','latex');<br /><br /><span style="color: red">渚?錛?/span>鎴戠殑紼嬪簭AR_Sparse.m (<span style="color: red">浠呬粎鍏紡瀛椾綋鏄痩atex)</span><br /> <div>h = legend('l1','DLSR-FS',4);</div> <div>h1 = findobj(get(h,'Children'),'String','l1');</div> <div>set(h1,'String','$l_1$','Interpreter','LaTex');<br /><br />---------------------------濡備綍鍦╩atlab涓殑xlabel錛寉label錛宭egend鍜宼ext鍑芥暟涓嬌鐢╨atex(<span style="color: red">浠ヤ笅鍏充簬legend鐨勪笉蹇呯湅錛屽凡鍒版垜鐨勪緥浜?/span>)---------------------------<br />http://blog.sina.com.cn/s/blog_6e0693f70100nj22.html<br />浠ヤ笅渚嬪瓙涓睍紺轟簡濡備綍鐢ㄥ湪matlab鍑芥暟涓嬌鐢╨atex<br />t = 0:0.1:2*pi; <div>x = sin(t);</div> <div>hold on;</div> <div>plot(t,x,'-*');</div> <div>plot(t,2*x,'-.');</div> <div>%% Using Latex in xlabel and ylabel</div> <div>xlabel('$Time$','Interpreter','LaTex');</div> <div>ylabel('$Value$','Interpreter','LaTex');</div> <div>%% Using Latex in legend</div> <div>h = legend('sin(x)__','2*sin(x)__');</div> <div>h1 = findobj(get(h,'Children'),'String','sin(x)__');</div> <div>set(h1,'String','$sin(\hat{x})$','Interpreter','LaTex');</div> <div>h2 = findobj(get(h,'Children'),'String','2*sin(x)__');</div> <div>set(h2,'String','$2*sin(\hat{x})$','Interpreter','LaTex');</div> <div>%% Using Latex in text</div> <div>text('Interpreter','latex',...</div> <div> 'String','$$\int_0^x\!\int_y dF(u,v)$$',...</div> <div> 'Position',[3 1],...</div> <div> 'FontSize',16);</div> <div>%% Using Latex in title</div> <div>title('$How \ to \ use \ latex \ in \ figure$','Interpreter','LaTex');</div></div></div></div><img src ="http://www.shnenglu.com/guijie/aggbug/204063.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.shnenglu.com/guijie/" target="_blank">鏉板摜</a> 2013-11-02 20:00 <a href="http://www.shnenglu.com/guijie/archive/2013/11/02/204063.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>鍏冭優(cell)涓庣粨鏋勪綋(struct)http://www.shnenglu.com/guijie/archive/2013/09/21/203326.html鏉板摜鏉板摜Sat, 21 Sep 2013 03:31:00 GMThttp://www.shnenglu.com/guijie/archive/2013/09/21/203326.htmlhttp://www.shnenglu.com/guijie/comments/203326.htmlhttp://www.shnenglu.com/guijie/archive/2013/09/21/203326.html#Feedback0http://www.shnenglu.com/guijie/comments/commentRss/203326.htmlhttp://www.shnenglu.com/guijie/services/trackbacks/203326.html鍏冭優鏁扮粍cell array
Element:cell;浠ヤ笅鏍噄ndex璁塊棶cell錛屼互鍏冭優鍐呯紪鍧content addressing璁塊棶鍏冭優鍐呭錛沜ell涓彲浠ュ瓨鏀句換浣曠被鍨嬶紝浠諱綍澶у皬鐨勬暟緇?/div>
cell鐨勫垱寤?/span>
cell()%鍒涘緩鍏冭優鏁扮粍
c=cell(2);%鍒涘緩2×2鐨?/div>
c=cell(m,n);%鍒涘緩m×n鐨?鐢╟ell鍑芥暟鍒涘緩鍏冭優鏁扮粍錛屽垱寤虹殑鏁扮粍涓虹┖鍏冭優銆?span style="color: red">cell鍑芥暟鍒涘緩絀哄厓鑳炴暟緇勭殑涓昏鐩殑鏄負鏁扮粍棰勫厛鍒嗛厤榪炵畫鐨勫瓨鍌ㄧ┖闂達紝鑺傜害鍐呭瓨鍗犵敤錛屾彁楂樻墽琛屾晥鐜囥傚悓cppblog/MATLAB紼嬪簭鐨勪紭鍖栥侀鍏堝垎閰嶅瓨鍌ㄧ┖闂?/span>
c_str=char('This is cell array');c_R=rand(3,3);c_comp=1+2i;c_sym=sym('sin(-3*t)*exp(-t)');
涓ょ璧嬪兼柟寮忥細index璧嬪煎拰content addressing璧嬪?/span>
index璧嬪鹼細A(1,1)={c_str};A(1,2)={c_R};A(2,1)={c_comp};A(2,2)={c_sym};
content addressing璧嬪?B{1,1}=c_str;B{1,2}=c_R;B{2,1}=c_comp;B{2,2}=c_sym;% The class({c_str}) and class(c_str) are cell and string, respectively.

cell array鐨勮闂?br />B{1,2}
B{1,2}(1,2)

闂錛?/span>鎴戞湁涓涓猚ell鍙橀噺銆傛瘮鏂硅3*1鐨剆ize  姣忎竴涓噷闈㈠瓨浜嗕竴涓?鉁?鐨勭煩闃點俶atlab涓湁娌℃湁蹇熺殑璇彞鎶婃瘡涓涓?*9鐨勭煩闃碉紝reshape鎴?*3鐨勭煩闃點備篃灝辨槸璇村涓涓猚ell鍙橀噺涓殑姣忎竴涓厓绱?搴旇鏄竴涓煩闃?榪涜reshape鎿嶄綔銆傚綋鐒朵笉鎯崇敤寰幆鍋氥?br />絳旀錛?/span>A = {rand(1,9),rand(1,9),rand(1,9)}; cellfun(@(x) reshape(x, 3, 3).', A, 'UniformOutput', false) 

cell杞寲鎴愮煩闃電殑鍑芥暟cell2mat
渚嬶細A = {rand(1,9),rand(1,9),rand(1,9)};cell2mat(A)
緇撴瀯浣撴暟緇?structure array
Element:structure
鍩熻闂?/div>
鍩熶腑鍙互瀛樻斁浠諱綍綾誨瀷銆佷換浣曞ぇ灝忕殑鏁扮粍
綾籆
cell鍜宻truct鐨勮漿鎹ell2struct.

Matlab鎻愪緵浜嗕袱縐嶅畾涔夌粨鏋勭殑鏂瑰紡錛氱洿鎺ュ簲鐢ㄥ拰浣跨敤struct鍑芥暟銆?/span>
1. 浣跨敤鐩存帴寮曠敤鏂瑰紡瀹氫箟緇撴瀯
涓庡緩绔嬫暟鍊煎瀷鏁扮粍涓鏍鳳紝寤虹珛鏂皊truct瀵硅薄涓嶉渶瑕佷簨鍏堢敵鏄庯紝鍙互鐩存帴寮曠敤錛岃屼笖鍙互鍔ㄦ佹墿鍏呫傛瘮濡傚緩绔嬩竴涓鏁板彉閲弜錛?br />x.real = 0; % 鍒涘緩瀛楁鍚嶄負real錛屽茍涓鴻瀛楁璧嬪間負0
x.imag = 0 % 涓簒鍒涘緩涓涓柊鐨勫瓧孌礽mag錛屽茍涓鴻瀛楁璧嬪間負0
x =
real: 0
imag: 0
鐒跺悗鍙互灝嗘棗鍔ㄦ佹墿鍏呬負鏁扮粍錛?br />x(2).real = 0; % 灝唜鎵╁厖涓?×2鐨勭粨鏋勬暟緇?br />x(2).imag = 0;
鍦ㄤ換浣曢渶瑕佺殑鏃跺欙紝涔熷彲浠ヤ負鏁扮粍鍔ㄦ佹墿鍏呭瓧孌碉紝濡傚鍔犲瓧孌祍cale錛?br />x(1).scale = 0;
榪欐牱錛屾墍鏈墄閮藉鍔犱簡涓涓猻cale瀛楁錛岃寈(1)涔嬪鐨勫叾浠栧彉閲忕殑scale瀛楁涓虹┖錛?br />x(1) % 鏌ョ湅緇撴瀯鏁扮粍鐨勭涓涓厓绱犵殑鍚勪釜瀛楁鐨勫唴瀹?
ans =
real: 0
imag: 0
scale: 0
2. 浣跨敤struct鍑芥暟鍒涘緩緇撴瀯
浣跨敤struct鍑芥暟涔熷彲浠ュ垱寤虹粨鏋勶紝璇ュ嚱鏁頒駭鐢熸垨鍚у叾浠栧艦寮忕殑鏁版嵁杞崲涓虹粨鏋勬暟緇勩?br />struct鐨勪嬌鐢ㄦ牸寮忎負錛?br />s = sturct('field1',values1,'field2',values2,…);
璇ュ嚱鏁板皢鐢熸垚涓涓叿鏈夋寚瀹氬瓧孌靛悕鍜岀浉搴旀暟鎹殑緇撴瀯鏁扮粍錛屽叾鍖呭惈鐨勬暟鎹畍alues1銆乿aluese2絳夊繀欏諱負鍏鋒湁鐩稿悓緇存暟鐨勬暟鎹紝鏁版嵁鐨勫瓨鏀句綅緗煙鍏朵粬緇撴瀯浣嶇疆涓涓瀵瑰簲鐨勩傚浜巗truct鐨勮祴鍊肩敤鍒頒簡鍏冭優鏁扮粍銆傛暟緇剉alues1銆乿alues2絳夊彲浠ユ槸鍏冭優鏁扮粍銆佹爣閲忓厓鑳炲崟鍏冩垨鑰呭崟涓暟鍊箋傛瘡涓獀alues鐨勬暟鎹璧嬪肩粰鐩稿簲鐨刦ield瀛楁銆?br />褰搗aluesx涓哄厓鑳炴暟緇勭殑鏃跺欙紝鐢熸垚鐨勭粨鏋勬暟緇勭殑緇存暟涓庡厓鑳炴暟緇勭殑緇存暟鐩稿悓銆傝屽湪鏁版嵁涓笉鍖呭惈鍏冭優鐨勬椂鍊欙紝寰楀埌鐨勭粨鏋勬暟緇勭殑緇存暟鏄?×1鐨勩備緥濡傦細
s = struct('type',{'big','little'},'color',{'blue','red'},'x',{3,4})
s =
1x2 struct array with fields:
type
color
x

鍙傝冩枃鐚細http://blog.sciencenet.cn/blog-436588-320694.html


鏉板摜 2013-09-21 11:31 鍙戣〃璇勮
]]>matlab fscanfhttp://www.shnenglu.com/guijie/archive/2013/09/13/203214.html鏉板摜鏉板摜Fri, 13 Sep 2013 06:34:00 GMThttp://www.shnenglu.com/guijie/archive/2013/09/13/203214.htmlhttp://www.shnenglu.com/guijie/comments/203214.htmlhttp://www.shnenglu.com/guijie/archive/2013/09/13/203214.html#Feedback0http://www.shnenglu.com/guijie/comments/commentRss/203214.htmlhttp://www.shnenglu.com/guijie/services/trackbacks/203214.html緇撳悎鎴戠殑鏁欐潗P31
matlab鏂囦歡鎿嶄綔錛氳鐢佃剳鐩綍Blessing of Dimensionality\Features\code\readFea.m 鍜?findImsFeaIdx.m
http://blog.sina.com.cn/s/blog_4cfb5a6201015i8q.html

渚?錛?br />璺緞+鏂囦歡鍚嶏細d:\moon.txt
鍐呭錛?br />
13,1,3.4
3,2.1,23
1,12,2
4,5.4,6
鐜板湪涓轟簡璇誨彇moon涓殑鏁版嵁瀛樺湪涓涓暟緇勯噷錛屽彲浠ョ敤濡備笅鏂規硶

fid=fopen('d:\moon.txt');

data=fscanf(fid,'%f,%f,%f',[3,inf]) ;%榪欓噷寰楃敤鍗曞紩鍙?/span>

fclose(fid);

榪欐椂data涓殑鏁版嵁濡備笅錛?/span>
13 3 1 4
1 2.1 12 5.4
3.4 23 2 6

渚?錛?br />鏁版嵁鍦╠:\test.txt
0.00    good 2
0.10    bot 3
1.02    yes 4
1.00    yes 5
1.00    yes 6
1.00    yes 3
1.00    yes 5
1.00    yes 6
1.00    yes 1
1.00    yes 3
1.00    yes 7
1.00    yes 3
1.00    yes 2

紼嬪簭錛?/span>
fid = fopen('d:\test.txt', 'r');
a = fscanf(fid, '%f    %*s %d ', [2 inf])    % It has two rows now.
fclose(fid);
a
瑙i噴涓?/span>錛氱涓鍒楀拰絎簩鍒椾箣闂存湁鍥涗釜絀烘牸錛?span style="color: red;">format涔熻鍥涚┖鏍煎摝錛佹湁涓夊垪鍗充笁縐嶇被鍨嬶紝瑕佹湁涓夌format錛?span style="color: red;">%*s鍗充負涓嶈緭鍑哄瓧絎︿覆鍨嬨?br />

fid = fopen('E:\temp\test.txt', 'r');
a = fscanf(fid, '%f    %*s %*f ', 5)    % It has five rows and one column now. %*s %*f 鍗寵繖涓や釜涓嶈緭鍑?/span>
fclose(fid);
a

紼嬪簭緇撴灉涓猴細
a =
         0
    0.1000
    1.0200
    1.0000
    1.0000


鏉板摜 2013-09-13 14:34 鍙戣〃璇勮
]]>
matlab涓瑙掗樀鐨勫瓨鍌紝diag vs spdiagshttp://www.shnenglu.com/guijie/archive/2013/07/07/201586.html鏉板摜鏉板摜Sun, 07 Jul 2013 03:39:00 GMThttp://www.shnenglu.com/guijie/archive/2013/07/07/201586.htmlhttp://www.shnenglu.com/guijie/comments/201586.htmlhttp://www.shnenglu.com/guijie/archive/2013/07/07/201586.html#Feedback0http://www.shnenglu.com/guijie/comments/commentRss/201586.htmlhttp://www.shnenglu.com/guijie/services/trackbacks/201586.htmlFeiping Nie鐨凬IPS 2010鍏竷浠g爜L21R21絎?4琛岀敤鐨?/span>D = spdiags(d,0,n,n);鍙敤D =diag(d)瀹炵幇綾諱技鍔熻兘錛屼絾鍙兘鏁堢巼鏇翠綆錛屽湪54鏈嶅姟鍣‵RGC 30Train錛屽墠鑰呰楁椂22縐掞紝鍚庤呰楁椂53縐掋傚洜涓哄墠鑰呴噰鐢ㄧ█鐤忓瓨鍌紝鏇磋妭鐪佸唴瀛樸侼ie鑰佸笀璁詫細鍔熻兘鐩稿悓錛屼絾鐢變簬鏄痵parse鐨勭煩闃碉紝鐭╅樀寰堝ぇ鏃朵細蹇緢澶氥?/span>
綆鍗曚緥瀛愶細
p=[1 2 3]; D1=diag(p);D2 =  spdiags(p',0,3,3);


鏉板摜 2013-07-07 11:39 鍙戣〃璇勮
]]>matlab楂樻晥瀹炵幇鐭╅樀涔樹互瀵硅闃?/title><link>http://www.shnenglu.com/guijie/archive/2013/07/04/201514.html</link><dc:creator>鏉板摜</dc:creator><author>鏉板摜</author><pubDate>Thu, 04 Jul 2013 06:28:00 GMT</pubDate><guid>http://www.shnenglu.com/guijie/archive/2013/07/04/201514.html</guid><wfw:comment>http://www.shnenglu.com/guijie/comments/201514.html</wfw:comment><comments>http://www.shnenglu.com/guijie/archive/2013/07/04/201514.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.shnenglu.com/guijie/comments/commentRss/201514.html</wfw:commentRss><trackback:ping>http://www.shnenglu.com/guijie/services/trackbacks/201514.html</trackback:ping><description><![CDATA[<div>[dim,num]=size(Data);weight鏄竴涓?×num鐨勮鍚戦噺錛屽鎴愪竴涓瑙掗樀P=diag(weight);鐩爣錛氬疄鐜癉ata*P<br /><span style="color: red;">鏂瑰紡涓</span>錛欴ata*diag(weight)錛岃繖縐嶉渶瑕乨im×num×(2num-1)涓姞娉曟垨涔樻硶錛?br /><span style="color: red;">鏂瑰紡浜?/span>錛欴ata.*repmat(weight,dim,1)錛岃繖縐嶅彧闇瑕乨im×num涓箻娉曘?br />榪欏氨鏄疪an He鐨凜VPR 12浠g爜CRFS絎?1琛岀敤:X1 = Data.*repmat(weight,dim,1)瀹炵幇Data*P鐨勫師鍥犮?/div><img src ="http://www.shnenglu.com/guijie/aggbug/201514.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.shnenglu.com/guijie/" target="_blank">鏉板摜</a> 2013-07-04 14:28 <a href="http://www.shnenglu.com/guijie/archive/2013/07/04/201514.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>鑳戒笉鐢╥nv灝介噺涓嶇敤http://www.shnenglu.com/guijie/archive/2013/07/03/201500.html鏉板摜鏉板摜Wed, 03 Jul 2013 14:47:00 GMThttp://www.shnenglu.com/guijie/archive/2013/07/03/201500.htmlhttp://www.shnenglu.com/guijie/comments/201500.htmlhttp://www.shnenglu.com/guijie/archive/2013/07/03/201500.html#Feedback0http://www.shnenglu.com/guijie/comments/commentRss/201500.htmlhttp://www.shnenglu.com/guijie/services/trackbacks/201500.html瀹炵幇涓涓煩闃電殑閫嗕箻浠ュ彟澶栦竴涓煩闃碉紝涔熺敤鍙抽櫎銆傜被浼煎疄鐜頒竴涓煩闃典箻浠ュ彟澶栦竴涓煩闃電殑閫嗭紝鐢ㄥ乏闄わ紝涓嶇敤inv

http://zhidao.baidu.com/question/308277515.html
宸﹂櫎瑕佷笉瑕佹眰鐭╅樀鍙嗭紵涓轟粈涔堜竴涓笉鍙嗙殑鐭╅樀a鍦╩atlaB涓敤inv錛坅錛?y涓嶅彲璁$畻錛岀敤a\y灝卞彲浠ヨ綆椾簡錛?/div>
絳旓細宸﹂櫎涓嶈姹傜煩闃靛彲閫嗭紝鍦╩atlab涓璱nv錛坅錛?y涓巃\y騫朵笉絳夊悓錛屽乏闄ゅ懡浠ゆ湁鏇存繁鐨勫唴娑碉紝褰揳涓烘柟闃典笖鍙嗘椂錛屼簩鑰呴兘鑳藉緱鍒版紜粨鏋滐紝浣?span style="color: red;">宸﹂櫎綺懼害鏇撮珮錛岃繍綆楁暟搴﹀揩(鎴戝疄楠屼笅鏉ワ紝紜疄鏄繖鏍?錛岀壒鍒綋A涓虹梾鎬佺煩闃墊椂錛宨nv(A)*y鐨勮綆楃粨鏋滀笉鍙潬錛堜笉榪囪繖縐嶇煩闃靛嚭鐜扮殑姒傜巼寰堜綆錛夛紝浣嗙敤宸﹂櫎璁$畻鍑虹殑緇撴灉鍗村緢鍙潬錛屽洜涓哄乏闄ゆ槸matlab璁捐鐨勪竴涓櫤鑳界畻絎︼紝浠栧彲浠ユ櫤鑳藉湴閫夋嫨綆楁硶錛涘綋鏂圭▼涓虹煕鐩炬柟紼嬶紙涔熷氨鏄嫭绔嬫柟紼嬩釜鏁板浣欐湭鐭ユ暟涓暟錛夋椂錛屾鏃舵樉鐒舵病鏈夌簿紜В錛屼絾寰堝鏃跺欐垜浠渶瑕亁鍦ㄦ渶灝忎簩涔樻剰涔変笅鐨勮В錛屾鏃剁敤A\y灝辮兘寰楀埌x鐨勬渶灝忎簩涔樿В銆?br />
Haiqing Li璇翠粬浠庢潵涓嶇湅榪欎簺涓枃鐨勶紝鏈変簺浜哄彲鑳藉洖絳斿緱涓嶄笓涓氭垨璇В錛屽埌matlab甯姪鎼滅儲arithmetic operators鏈夊乏闄ゆ垨鑰呭彸闄よ緇嗚В閲?br />
嫻嬭瘯渚嬪瓙錛?br />絎竴涓猰atlab鐨刴鏂囦歡
% 鐢熸垚鏁版嵁
rand('state',0);
n = 10000;% 涔熷彲璁劇疆涓?000
A = randn(n,n);
B = randn(n,1);
save MyFile1 A B;

絎簩涓猰atlab鐨刴鏂囦歡
% 嫻嬭瘯姹傞嗘椂闂?/div>
tic;
load MyFile1;
n = size(A,1);
C1 = inv(A'*A+0.01*eye(n))*B;
save MyFile2 C1;
toc;

絎笁涓猰atlab鐨刴鏂囦歡
% 嫻嬭瘯宸﹂櫎鏃墮棿
tic;
load MyFile1;
n = size(A,1);
C2 = (A'*A+0.01*eye(n))\B;
save MyFile3 C2;
toc;


鏉板摜 2013-07-03 22:47 鍙戣〃璇勮
]]>濡備綍鐢╩atlab姹傜煩闃電殑鏈澶у寮傚鹼紵(Matlab code to solve the largest singular value of a matrix)http://www.shnenglu.com/guijie/archive/2013/05/03/199950.html鏉板摜鏉板摜Fri, 03 May 2013 13:44:00 GMThttp://www.shnenglu.com/guijie/archive/2013/05/03/199950.htmlhttp://www.shnenglu.com/guijie/comments/199950.htmlhttp://www.shnenglu.com/guijie/archive/2013/05/03/199950.html#Feedback0http://www.shnenglu.com/guijie/comments/commentRss/199950.htmlhttp://www.shnenglu.com/guijie/services/trackbacks/199950.htmln = norm(A) returns the largest singular value of A, max(svd(A)).


鏉板摜 2013-05-03 21:44 鍙戣〃璇勮
]]>combntns鍑芥暟鎵寮曡搗鐨勫唴瀛樹笉瓚抽棶棰?/title><link>http://www.shnenglu.com/guijie/archive/2012/12/13/196200.html</link><dc:creator>鏉板摜</dc:creator><author>鏉板摜</author><pubDate>Thu, 13 Dec 2012 00:30:00 GMT</pubDate><guid>http://www.shnenglu.com/guijie/archive/2012/12/13/196200.html</guid><wfw:comment>http://www.shnenglu.com/guijie/comments/196200.html</wfw:comment><comments>http://www.shnenglu.com/guijie/archive/2012/12/13/196200.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.shnenglu.com/guijie/comments/commentRss/196200.html</wfw:commentRss><trackback:ping>http://www.shnenglu.com/guijie/services/trackbacks/196200.html</trackback:ping><description><![CDATA[<p style="font-family: 瀹嬩綋; line-height: 21.33333396911621px; background-color: #ffffff;">緙栧啓NFL鍜孨FP鍒嗙被鍣ㄥ簲鐢ㄤ簬ASLAN鏁版嵁搴撳彂鐜癱ombntns鍑芥暟鎵寮曡搗鐨勫唴瀛樹笉瓚籌紝鍒扮綉涓婃悳绱㈡湁浜烘彁闂紝浣嗘病鏈夎В鍐蟲柟妗堛?br /><span style="color: red;">闂</span>錛氭垜鎯沖彇涓涓簭鍒楃殑浠繪剰緇勫悎錛岀敤combntns錛屽湪鏁扮洰杈冨皬鏃訛紝鍙互杈懼埌鐩殑錛屼絾鏄暟鐩彉澶ф椂錛屽氨涓嶈浜嗭紝姹傚姪鍚勪綅銆?/p><p style="font-family: 瀹嬩綋; line-height: 21.33333396911621px; background-color: #ffffff;">渚嬪鍙?:5,閲岄潰3涓暟瀛楃殑緇勫悎錛屽緢瀹規槗寰楀埌銆?br />combntns(1:5,3) 灝卞彲浠ヤ簡</p><p style="font-family: 瀹嬩綋; line-height: 21.33333396911621px; background-color: #ffffff;">浣嗘槸鍙?:100閲岄潰10涓暟瀛楃殑緇勫悎錛屽氨涓嶈浜嗐?br /><span style="color: red;">鎴戠殑瑙e喅鏂規錛?/span><span style="color: #000000;">濡傛灉浣犳湭蹇呰鍙栨墍鏈夌粍鍚堬紝鍙互浠?錛?00涓換鍙?0涓暟錛屽啀鍙栬繖20涓暟瀛楅噷闈?0涓暟瀛楃殑緇勫悎銆?br />%matlab code:</span><br /><div>rand('state',0);</div><div>temp1 = randperm(100);</div><div>temp2 = temp1(1:20);</div><div>combntns(temp2,10)</div></p><img src ="http://www.shnenglu.com/guijie/aggbug/196200.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.shnenglu.com/guijie/" target="_blank">鏉板摜</a> 2012-12-13 08:30 <a href="http://www.shnenglu.com/guijie/archive/2012/12/13/196200.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>win7涓媘atlab7.0鐨勫嵏杞介棶棰?涓轟粈涔坢atlab2010a鍙兘鍦ㄦ柇緗戞椂鎵嶈兘鎵撳紑錛?/title><link>http://www.shnenglu.com/guijie/archive/2012/12/05/196015.html</link><dc:creator>鏉板摜</dc:creator><author>鏉板摜</author><pubDate>Wed, 05 Dec 2012 11:32:00 GMT</pubDate><guid>http://www.shnenglu.com/guijie/archive/2012/12/05/196015.html</guid><wfw:comment>http://www.shnenglu.com/guijie/comments/196015.html</wfw:comment><comments>http://www.shnenglu.com/guijie/archive/2012/12/05/196015.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.shnenglu.com/guijie/comments/commentRss/196015.html</wfw:commentRss><trackback:ping>http://www.shnenglu.com/guijie/services/trackbacks/196015.html</trackback:ping><description><![CDATA[<span style="color: #444444; font-family: Tahoma, 'Microsoft Yahei', Simsun; background-color: #ffffff;"></span><div><div>http://www.ilovematlab.cn/thread-68860-1-1.html</div>鍦╳in7錛?2浣嶅搴増涓?鏈変袱縐嶆柟娉曡В鍐蟲甯歌繍琛岄棶棰橈紝涓鏄皢閰嶈壊鏂規鏀逛負緇忓吀(鍦ㄦ闈㈢┖鐧藉鍙沖嚮榧犳爣錛岄夋嫨涓у寲錛屽湪寮瑰嚭鐨勫璇濇涓夋嫨windows緇忓吀涓婚鍗沖彲)錛屼簩鏄吋瀹規ф敼涓簐ista sp1鎴杝p2.<span style="background-color: #ffffff; color: #444444; font-family: Tahoma, 'Microsoft Yahei', Simsun;">鍗歌澆瀹屼簡鍚庯紝鍐嶆妸涓婚鏀瑰洖鍒頒綘鍘熸潵鐨勪富棰樸?br /><br /></span><div><span style="color: red;">涓轟粈涔坢atlab2010a鍙兘鍦ㄦ柇緗戞椂鎵嶈兘鎵撳紑錛?/span><br />20121207鍙戠幇matlab鎵撲笉寮錛屼笂緗戞悳绱㈣В鍐蟲柟妗堛傛湁浜鴻鏂綉灝卞彲浠ャ傛垜瀹為獙涓ゆ錛屾敞閿鍚庢柇緗戣兘鎵撳紑matlab錛屾敞閿鍚庤繛緗戯紝涓嶆墦寮鍏朵粬浠諱綍紼嬪簭錛宮atlab榪樻槸鎵撲笉寮錛岀瓑浜嗕簲鍒嗛挓銆傝兘鐪嬪埌matlab榪涚▼銆傜戶緇悳绱?#8220;Windows 7 matlab鏂綉鎵嶈兘鎵撳紑”銆傛煡鍒拌В鍐蟲柟妗?http://wenwen.soso.com/z/q294348187.htm)錛?span style="font-family: Arial, Helvetica, sans-serif, SimSun; line-height: 22px;">浣犲彲鑳界敤鐨勬槸window7鍚э紝榪欑鐜拌薄鐨勪駭鐢熸槸鐢變簬MatLab涓嶹indows 7 鐨勫吋瀹規ч棶棰橈紝瑙e喅鐨勬柟娉曞涓嬶細浠庣函鍑鐨刉indows XP緋葷粺涓璼ystem32鐩綍涓嫹璐濅竴浠絠phlpapi.dll鍒?Matlab 2010a瀹夎鐩綍\bin\win32涓棶棰樺嵆鍙В鍐籌紝褰撶劧錛孹64鐨勭郴緇熻鍒?Windows XP X64 涓幓鎷楓傛垜闂甃ianyang Ma瑕佷簡榪欎釜鏂囦歡錛岄噸鍚笅鐢佃剳灝辨悶濂戒簡(鍗充嬌鍦ㄥ悓鏃舵墦寮qq,gtalk,璋鋒瓕嫻忚鍣?</span>FileZilla鐨勬儏鍐典笅錛屼篃鑳芥墦寮matlab<span style="font-family: Arial, Helvetica, sans-serif, SimSun; line-height: 22px;">)銆?   涓?/span>閰嶈壊鏂規鍜屽吋瀹規ф病鏈夊叧緋匯?/div></div><img src ="http://www.shnenglu.com/guijie/aggbug/196015.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.shnenglu.com/guijie/" target="_blank">鏉板摜</a> 2012-12-05 19:32 <a href="http://www.shnenglu.com/guijie/archive/2012/12/05/196015.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>How to use matlab solve optimization quadratic?http://www.shnenglu.com/guijie/archive/2012/11/21/195475.html鏉板摜鏉板摜Wed, 21 Nov 2012 10:31:00 GMThttp://www.shnenglu.com/guijie/archive/2012/11/21/195475.htmlhttp://www.shnenglu.com/guijie/comments/195475.htmlhttp://www.shnenglu.com/guijie/archive/2012/11/21/195475.html#Feedback0http://www.shnenglu.com/guijie/comments/commentRss/195475.htmlhttp://www.shnenglu.com/guijie/services/trackbacks/195475.html

鏉板摜 2012-11-21 18:31 鍙戣〃璇勮
]]>
How to compile the mexfile?http://www.shnenglu.com/guijie/archive/2012/10/18/193450.html鏉板摜鏉板摜Thu, 18 Oct 2012 00:27:00 GMThttp://www.shnenglu.com/guijie/archive/2012/10/18/193450.htmlhttp://www.shnenglu.com/guijie/comments/193450.htmlhttp://www.shnenglu.com/guijie/archive/2012/10/18/193450.html#Feedback0http://www.shnenglu.com/guijie/comments/commentRss/193450.htmlhttp://www.shnenglu.com/guijie/services/trackbacks/193450.htmlAn Efficient Projection for l1,∞ Regularization璇ユ枃鎻愪緵浠g爜錛屽湪Readme鏂囦歡涓To run the projection in Matlab, you first need to compile the mexfile:
$ mex -output projL1Inf mex-projL1Inf.c 
Then, from Matlab, test the projection by running the script "runprojection", 

(1)鍦ㄦ垜絎旇鏈數鑴戯紝鎵撳紑matlab錛屾墦寮璇ョ▼搴忔墍鍦ㄧ殑鏂囦歡澶癸紝鍦╩atlab鍛戒護琛岃緭鍏ex -setup錛?span style="color: red">matlab杈撳嚭錛?/span>Would you like mex to locate installed compilers [y]/n? 鎵嬪姩杈撳叆錛?/span>y 錛?span style="color: red">matlab杈撳嚭錛?nbsp;
Select a compiler:  鎵嬪姩杈撳叆錛?, matlab杈撳嚭錛?/span> Are these correct [y]/n?   鎵嬪姩杈撳叆錛?/span>y 銆?span style="color: #ff0000">鎵嬪姩杈撳叆錛?/span> mex -output projL1Inf mex-projL1Inf.c 錛屽彲鑳芥槸鍥犱負鎴戠殑絎旇鏈數鑴戞病瑁匳C錛屾湁閿欒銆傚湪鎴戞湰鏈鴻鑳借繍琛岋紝鍏抽敭灝辨槸鐢熸垚projL1Inf.mexw32榪欎釜鏂囦歡灝卞彲浠ヤ簡錛屽湪Mingming Gong鐢佃剳涓婄敓鎴愶紝鎷瘋礉鍒版垜鐨勭數鑴戝氨鍙互浜嗐?/span> Mingming鐢佃剳瑁匳C浜嗭紝浣嗚繕鏄笉鑳界紪璇戯紝浠栬鍙兘鍘熷洜鏄繖涓猚璇█浠g爜鏈潵灝辨槸鍦╨inux涓嬪啓鐨勶紝鍦╳indows涓婅窇涓嶄簡錛宯aiyang涔熻繖涔堣銆?span style="color: red">20121023, after Mingming Gong saw my blog, he found the solution to produce the file projL1Inf.mexw32. 鍙灝唌ex-projL1Inf.c鍚庣紑鏀逛負mex-projL1Inf.cpp錛宲rojL1Inf.c鍚庣紑鏀逛負projL1Inf.cpp錛宮ex-projL1Inf.cpp絎?9琛屾敼涓?include "projL1Inf.cpp"錛屽彧瑕佷慨鏀硅繖涓夌偣灝卞彲浠ュ湪windows涓嬬紪璇戯紝鎴戝凡緇忎粠浠栭偅閲屾嫹璐濅簡projL1Inf.mexw32 銆備粠鎴戞湰鏈鴻繕鏄笉鑳界紪璇戯紝鍥犱負鏈満娌¤VC銆?span style="color: #ff0000">鍘?/span>鍥狅細*.cpp鏄敮鎸丆鍜孋++鐨勶紱*.c鍙敮鎸丆錛屾晠//涓嶆敮鎸併傚湪Linux涓婥鍜?/span>C++鏄袱涓紪璇戝櫒(鍦╨inux涓媍鏄敤gcc緙栬瘧錛孋++浣跨敤g++緙栬瘧)錛屽湪windows涓嬶紝C鍜孋++鏄彲浠ュ悓鏃剁敤VC緙栬瘧鐨勩?br />
20130629鍦∟LPR鐨?4鏈嶅姟鍣ㄧ敤mex -output projL1Inf mex-projL1Inf.cpp鎴愬姛緙栬瘧鐢熸垚鏂囦歡projL1Inf.mexw64錛屼笉鐭ヤ負浠涔堢敤mex -setup涓姝ヤ竴姝ユ潵涓嶈銆?br />
(2)鍦╱ts cluster錛屾寜鐓т笂闈㈣緭鍏ョ殑鍛戒護錛屾湁閿欒鍜岃鍛?(Mingming said that the warning does not matter)
Warning: You are using gcc version "4.4.6".  The version
         currently supported with MEX is "4.3.4". 
閿欒錛歱rojL1Inf.c:248: error: expected expression before '/' token
projL1Inf.c:250: error: expected expression before '/' token
projL1Inf.c:252: error: expected expression before '/' token
鎵撳紑projL1Inf.c 錛屽皢榪欎笁琛岀殑娉ㄩ噴//錛屽潎鎹㈡垚/* * / 
榪欐牱鐨勪綔鐢紝灝辨槸鐢熸垚projL1Inf.mexa64榪欎釜鏂囦歡.濡傛灉鐢ㄥ懡浠ex mex-projL1Inf.c,灝辨槸鐢熸垚mex-projL1Inf.mexa64 (宸茬粡瀹炶返錛?/span>灝嗗師濮?/span> projL1Inf.mexa64 鍒犻櫎錛岀敤鍛戒護mex mex-projL1Inf.c,灝辨槸鐢熸垚mex-projL1Inf.mexa64錛?/span> 鍐嶅皢榪欎釜鏂囦歡鏀瑰悕涓簆rojL1Inf.mexa64錛屽啀榪愯runprojection 榪樻槸鍙互鐨?

20121208鍦╱ts鏈嶅姟鍣ㄧ紪璇憀ibsvm-mat-2.9-1錛岀紪璇戞湁闂錛屾牴鎹彁紺猴紝灝嗘墍鏈夋枃浠?.c閮藉彉鎴?.cpp,榪樻湁闂g++: svm.obj: No such file or directory錛屼笂緗戞悳绱㈣В鍐蟲柟妗坔ttp://blog.csdn.net/kit_147/article/details/7417734錛屽皢鏂囦歡svm.obj鏀逛負svm.o錛岀紪璇戝氨娌℃湁闂浜嗭紝浣嗙敤紼嬪簭嫻嬭瘯榪樻湁闂錛屾彁紺?"-largeArrayDims"鐨勯棶棰橈紝make.m寮濮嬫敞閲婏細% add -largeArrayDims on 64-bit machines錛岄棶mingming gong鎬庝箞add錛熷皢makefile涓殑mex...淇敼涓簃ex...-largeArrayDims鍗沖彲銆備緥濡?br />
mex -O -c svm.cpp 
mex -O -c svm_model_matlab.c 
淇敼涓?/span>
mex -O -c svm.cpp -largeArrayDims
mex -O -c svm_model_matlab.c -largeArrayDims
(This is with Mingming Gong's help)

20150710鍦ㄨ窇FastHash鎻愮ず閿欒錛歜inaryTreeTrain1.mexw64涓嶆槸鏈夋晥鐨剋32搴旂敤紼嬪簭,鎰熷埌璐硅В錛岃繖鏄?4浣嶆満錛屾庝箞浼氭彁紺鴻繖涓敊璇侸ian Liang璁查噸鏂扮紪璇戜笅灝辮浜嗭紝浠栧氨鍦╩atlab紿楀彛鏁插叆mex binaryTreeTrain1.cpp錛屽啀鏁插叆mex forestInds.cpp灝卞彲浠ヤ簡


鏉板摜 2012-10-18 08:27 鍙戣〃璇勮
]]>
青青草原综合久久大伊人导航_色综合久久天天综合_日日噜噜夜夜狠狠久久丁香五月_热久久这里只有精品
  • <ins id="pjuwb"></ins>
    <blockquote id="pjuwb"><pre id="pjuwb"></pre></blockquote>
      <noscript id="pjuwb"></noscript>
            <sup id="pjuwb"><pre id="pjuwb"></pre></sup>
              <dd id="pjuwb"></dd>
              <abbr id="pjuwb"></abbr>
              香港久久久电影| 卡一卡二国产精品| 亚洲国产成人一区| 亚洲精品日韩在线| 亚洲欧美影音先锋| 亚洲高清免费在线| 欧美成人综合网站| 国产精品视频精品| 亚洲啪啪91| 久久精品国产久精国产思思| 久久国产主播| 久久久99国产精品免费| 国产精品久久久久一区二区| 最新国产成人在线观看| 亚洲精品国精品久久99热一| 午夜精品在线观看| 狠狠色综合网| 久久久精品五月天| 亚洲网站视频福利| 国产精品播放| 99视频精品| 久久资源在线| 久久精品国产一区二区三区免费看| 精品51国产黑色丝袜高跟鞋| 久久精品一区二区国产| 欧美二区不卡| 久久精品国语| 欧美日韩中文精品| 亚洲视频在线观看| 亚洲免费黄色| 欧美午夜精品久久久| 久久综合亚州| 欧美成人精品三级在线观看| 亚洲欧美伊人| 欧美麻豆久久久久久中文| 亚洲免费激情| 日韩西西人体444www| 国产自产精品| 欧美成人免费全部| 欧美韩日一区二区三区| 亚洲高清视频在线| 乱人伦精品视频在线观看| 欧美日韩在线播放一区| 一本大道久久a久久精二百| 亚洲欧美国产77777| 欧美成黄导航| 香蕉视频成人在线观看| 亚洲欧洲日韩在线| 欧美人成在线视频| 免费短视频成人日韩| 亚洲最新在线| 欧美一区二区视频在线| 国产精品视频内| 亚洲国产精品va| 先锋亚洲精品| av成人老司机| 久久嫩草精品久久久精品一| 牛人盗摄一区二区三区视频| 亚洲精品综合精品自拍| 中文精品视频| 久久精品系列| 欧美中文字幕在线| 欧美日韩网站| 亚洲欧洲日本国产| 亚洲电影免费在线 | 99精品免费| 亚洲黄色高清| 久久蜜桃资源一区二区老牛| 国产精品国产精品| 亚洲全部视频| 亚洲美洲欧洲综合国产一区| 久久久久久**毛片大全| 久久精品国产一区二区电影| 欧美好吊妞视频| 久久久久国产精品www| 欧美午夜一区二区三区免费大片| 欧美激情bt| 欧美亚洲一区二区在线| 午夜国产不卡在线观看视频| 欧美日韩视频一区二区| 亚洲电影毛片| 亚洲精品国精品久久99热一| 久久亚洲精品一区二区| 米奇777在线欧美播放| 激情91久久| 欧美在线视频观看| 欧美日韩国产一区| 欧美一区二区三区四区视频| 久久久久久亚洲精品中文字幕 | 国产精品久久久久av免费| 亚洲最快最全在线视频| 中国亚洲黄色| 国产日韩欧美制服另类| 亚洲精品国精品久久99热| 亚洲最新中文字幕| 欧美午夜精品一区| 午夜精品影院| 欧美jjzz| 99精品视频免费观看| 久久久久久久91| 欧美激情小视频| 一区二区三区四区五区精品| 国产精品国产馆在线真实露脸| 亚洲综合国产精品| 午夜久久电影网| 国产精品久久久久久久久久妞妞| 亚洲伊人久久综合| 嫩草成人www欧美| 亚洲最新视频在线播放| 国产婷婷成人久久av免费高清 | 亚洲天堂免费在线观看视频| 国产精品日本| 久久精品五月| 亚洲另类在线一区| 久久国产精品色婷婷| 韩日精品在线| 欧美区二区三区| 欧美中文日韩| 最新亚洲电影| 久久精品国产精品亚洲综合| 亚洲国产电影| 国产精品福利在线观看| 久久九九有精品国产23| 亚洲精品国产系列| 久久夜色精品国产| 中日韩视频在线观看| 激情欧美一区二区三区| 久久综合九色综合欧美狠狠| 亚洲自拍偷拍福利| 亚洲免费av片| 久久久综合网| 亚洲天堂第二页| 最新亚洲视频| 狠狠干综合网| 国产热re99久久6国产精品| 米奇777在线欧美播放| 日韩一级不卡| 国产精品高潮呻吟久久av黑人| 久久久亚洲高清| 午夜精品久久久久久久 | 亚洲精品一区中文| 精品成人久久| 国产欧美在线| 欧美三级网址| 欧美人与性动交a欧美精品| 久久久噜噜噜| 久久裸体视频| 中文一区二区在线观看| 亚洲大胆在线| 久久尤物电影视频在线观看| 欧美一区二区高清在线观看| 亚洲天堂第二页| 亚洲午夜视频在线观看| 国产精品久久久久久影院8一贰佰| 欧美成年人视频| 欧美99久久| 欧美高清视频在线| 美女精品国产| 久久精品视频99| 麻豆视频一区二区| 久久网站免费| 久久久成人网| 久久伊人亚洲| 欧美福利电影在线观看| 欧美电影资源| 欧美成人中文| 欧美日韩国产页| 欧美日韩亚洲系列| 国产精品美女久久| 国产日韩在线看片| 韩国av一区二区三区| 狠狠色丁香婷综合久久| 亚洲欧洲日产国产综合网| av成人手机在线| 亚洲精品色图| 亚洲最新中文字幕| 午夜亚洲性色福利视频| 久久久久久久久久久成人| 免费日韩视频| 亚洲精品视频免费| 亚洲永久精品国产| 久久精品国产99国产精品澳门| 久久中文字幕导航| 久久影院午夜论| 欧美夫妇交换俱乐部在线观看| 欧美精品日日鲁夜夜添| 国产精品毛片高清在线完整版| 国产亚洲免费的视频看| 在线成人欧美| 制服丝袜激情欧洲亚洲| 午夜精品国产更新| 欧美激情一区二区三区在线视频观看| 亚洲伦理网站| 久久不射网站| 欧美日韩国产va另类| 国产一级久久| 亚洲视频电影图片偷拍一区| 久久精品官网| 日韩视频在线一区二区| 毛片精品免费在线观看|