fid =fopen(datafile.txt','r');
data = textscan(fid, '%f %f %f %f %f %f %f %f %f %f %f %f %f %f %f %f %f %f %f %f %f %f %f %f');
plot3(data(:,5),data(:,6),data(:,7))
fclose(fid);
我收到錯誤:MatLab幫助!使用plot3錯誤沒有足夠的輸入參數
Error using
plot3
Not enough input arguments.
我要去哪裏錯了嗎?我的數據文件只是雙列(因此,%f
)
你是否'data'實際上是從獲取文本文件中的正確的信息? – kedarps