我正在尝试绘制两个向量,每个向量具有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
答案 0 :(得分:2)
由于这些是表,因此您需要提取值:
runOneVolume = titrationData{1:249, 'runOneVolume'};
runOnepH = titrationData{1:249, 'runOnepH'};
plot(runOneVolume, runOnepH)
或者,尝试以下操作:
plot(titrationData.runOneVolume(1:249), titrationData.runOnepH(1:249))