|
|
EDA365欢迎您登录!
您需要 登录 才可以下载或查看,没有帐号?注册
x
n=9;0 C0 W' G5 b( V9 b- h1 a. D
for i=1:n
' v, ]5 ^2 S3 V5 S# {- C; D6 p0 M temp=dlmread(['strain_',int2str(i),'.rpt']);
9 K3 v) ]3 [/ X0 A. }- F, B3 M7 V- Y tempe1bl(:,i)=temp(:,2);
6 z, [- m0 d* d; l8 s tempe1br(:,i)=temp(:,3);( u+ _/ M6 P1 [0 b
tempe2(:,i)=temp(:,6);
6 f- v/ u2 a! L) _6 xend
# R2 D! ]/ K5 B5 f, ?+ L: Z) H
' y& j1 {: Q2 e: e& ~ ]6 q5 K
" H7 ^" w. A; q. x0 g这段程序中如果把n的数值变成两位数(如10),读取便会出现错误,请问应该怎么修改;. r. ^. S Z2 d: ~8 v
出错代码:
+ o' ~% X# }" O# ^1 P' Q; {/ \ J5 [" j
9 m& V$ `/ q. p! \) p* ^错误使用 dlmread (line 138)文件和格式字符串之间不匹配。
) W5 ~& U4 i/ |+ j- Q从文件(行 1u,字段 1u)中读取 number 时出现问题 ==>
0 C& ?- y: C" O" }8 c! i5 P$ _/ u********************************************************************************\n
" o2 Q3 v+ v. ?! h) F/ g: E[color=rgb(51, 102, 153) !important]
`0 I5 o3 Q, i3 {5 E4 o9 Q2 v: G) b& ~) D, |, x. F
[color=rgb(51, 102, 153) !important], V% i" A8 A+ |; E
- U/ Q6 h2 ?1 ]" z4 v
|
|