- 积分
- 458
- 贡献
-
- 精华
- 在线时间
- 小时
- 注册时间
- 2014-3-20
- 最后登录
- 1970-1-1
|
MATLAB
问题截图: |
|
问题概况: |
matlab新手,自编一小段程序,出来的图却是这样的,不知道是怎么回事,麻烦各位牛人朋友耐心指点一下,不胜感激!!!!! |
我看过提问的智慧: |
看过 |
自己思考时长(天): |
2 |
系统平台: |
|
登录后查看更多精彩内容~
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
clear;
t=textread('64x600.txt');
x=[1:1:600];
y=[1:1:64];
for i=1:1:64
for j=1:1:600
if t(i,j)==1
plot(i,j,'o');
elseif t(i,j)==2
plot(i,j,'+');
elseif t(i,j)==3
plot(i,j,'-');
elseif t(i,j)==4
plot(i,j,'*');
elseif t(i,j)==5
plot(i,j,'x');
elseif t(i,j)==6
plot(i,j,'s');
elseif t(i,j)==7
plot(i,j,'d');
elseif t(i,j)==8
plot(i,j,'v');
elseif t(i,j)==9
plot(i,j,'p');
elseif t(i,j)==10
plot(i,j,'>');
end
end
end
|
|