在Matlab中绘制大型数据集



我试图绘制两个向量,这两个向量有266个元素。我一直收到错误"使用表格/绘图错误。输入参数太多"。我如何绕过这个错误并绘制所有数据点?

runOneVolume = titrationData(1:249, 'runOneVolume');
runTwoVolume = titrationData(1:241, 'runTwoVolume');
runThreeVolume = titrationData(1:243, 'runThreeVolume');
runFourVolume = titrationData(:, 'runFourVolume');
runFiveVolume = titrationData(1:266, 'runFiveVolume');
runSixVolume = titrationData(1:222, 'runSixVolume');
runOnepH = titrationData(1:249, 'runOnepH');
runTwopH = titrationData(1:241, 'runTwopH');
runThreepH = titrationData(1:243, 'runThreepH');
runFourpH= titrationData(:, 'runFourpH');
runFivepH = titrationData(1:266, 'runFivepH');
runSixpH = titrationData(1:222, 'runSixpH');

plot(runOneVolume, runOnepH) %This line gave the error
>> whos
Name                   Size             Bytes  Class    Attributes
runFiveVolume        266x1               3186  table              
runFivepH            266x1               3178  table              
runFourVolume       1165x1              10378  table              
runFourpH           1165x1              10370  table              
runOneVolume         249x1               3048  table              
runOnepH             249x1               3040  table              
runSixVolume         222x1               2832  table              
runSixpH             222x1               2824  table              
runThreeVolume       243x1               3004  table              
runThreepH           243x1               2996  table              
runTwoVolume         241x1               2984  table              
runTwopH             241x1               2976  table              
titrationData       1165x12            115592  table              

由于这些是表,您需要提取值:

runOneVolume = titrationData{1:249, 'runOneVolume'};
runOnepH = titrationData{1:249, 'runOnepH'};
plot(runOneVolume, runOnepH) 

或者,试试这个:

plot(titrationData.runOneVolume(1:249), titrationData.runOnepH(1:249)) 

相关内容

  • 没有找到相关文章

最新更新