Matlab chapter05

本文档提供了一系列Matlab编程练习,包括从文本文件读取分子数据并生成稀疏邻接矩阵,创建频率单词列表并排序,解析光谱数据绘制线谱,以及从wiki页面创建词云并提取页面标题。涉及的功能有textscan、sparse、table、writetable、regexp等。
摘要由CSDN通过智能技术生成

EXERCISE 5.1

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
编写一个函数 [B,V]=fullerene2graph(filename,rmax),它从名为 filename.cc1 的文本文件(Chem3D Cartesian 1 格式 - 第一行:原子数,第二行和所有其他行:化学符号 ,原子索引,x,y,z,atom_type,相邻原子的索引)。 该函数返回稀疏邻接矩阵 B(定义见 doc bucky)和原子的笛卡尔坐标。 在 fullerene.cc1(线框 3D 模型)中可视化分子。

[B
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

哇小侠

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值