Write a function, [B,V]=fullerene2graph(filename,rmax), which reads data from a text file named filename.cc1 (Chem3D Cartesian 1 format – 1st line: number of atoms, 2nd and all other lines: chem. symbol, atom index, x, y, z, atom_type, indexes of adjacent atoms). The function returns the sparse adjacency matrix B (for definition see doc bucky) and Cartesian coordinates of atoms. Visualize the molecule in fullerene.cc1 (wireframe 3D model).
Mandatory: textscan
Hint: sparse
編寫一個函數(shù) [B,V]=fullerene2graph(filename,rmax),它從名為 filename.cc1 的文本文件(Chem3D Cartesian 1 格式 - 第一行:原子數(shù),第二行和所有其他行:化學符號 ,原子索引,x,y,z,atom_type,相鄰原子的索引)。 該函數(shù)返回稀疏鄰接矩陣 B(定義見 doc bucky)和原子的笛卡爾坐標。 在 fullerene.cc1(線框 3D 模型)中可視化分子。
[B
你是否還在尋找穩(wěn)定的海外服務器提供商?創(chuàng)新互聯(lián)www.cdcxhl.cn海外機房具備T級流量清洗系統(tǒng)配攻擊溯源,準確流量調(diào)度確保服務器高可用性,企業(yè)級服務器適合批量采購,新人活動首月15元起,快前往官網(wǎng)查看詳情吧
當前名稱:Matlabchapter05-創(chuàng)新互聯(lián)
標題網(wǎng)址:http://sd-ha.com/article40/cdesho.html
成都網(wǎng)站建設公司_創(chuàng)新互聯(lián),為您提供企業(yè)網(wǎng)站制作、App開發(fā)、網(wǎng)站設計公司、用戶體驗、移動網(wǎng)站建設、微信公眾號
聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請盡快告知,我們將會在第一時間刪除。文章觀點不代表本網(wǎng)站立場,如需處理請聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時需注明來源: 創(chuàng)新互聯(lián)
猜你還喜歡下面的內(nèi)容