MATLAB横坐标想要用实际的值 求问21\x0566338\x051.76\x05-3.59\x050.8521\x0566342\x051.71\x05-3.35\x050.8621\x0566346\x051.66\x05-3.12\x050.8521\x0566350\x051.62\x05-2.88\x050.8521\x0566354\x051.57\x05-2.65\x050.8521\x0566358\x051.52\x05-2.4

来源:学生作业帮助网 编辑:作业帮 时间:2024/11/16 05:28:11

MATLAB横坐标想要用实际的值 求问21\x0566338\x051.76\x05-3.59\x050.8521\x0566342\x051.71\x05-3.35\x050.8621\x0566346\x051.66\x05-3.12\x050.8521\x0566350\x051.62\x05-2.88\x050.8521\x0566354\x051.57\x05-2.65\x050.8521\x0566358\x051.52\x05-2.4
MATLAB横坐标想要用实际的值 求问
21\x0566338\x051.76\x05-3.59\x050.85
21\x0566342\x051.71\x05-3.35\x050.86
21\x0566346\x051.66\x05-3.12\x050.85
21\x0566350\x051.62\x05-2.88\x050.85
21\x0566354\x051.57\x05-2.65\x050.85
21\x0566358\x051.52\x05-2.42\x050.85
21\x0566362\x051.48\x05-2.18\x050.88
21\x0566366\x051.43\x05-1.95\x050.84
21\x0566370\x051.38\x05-1.72\x050.84
21\x0566378\x051.26\x05-1.28\x050.87
21\x0566382\x051.21\x05-1.05\x050.85
21\x0566386\x051.15\x05-0.83\x050.86
第五列是Y值,第四列为x值,现在想plot(y,'.'); 想让横坐标的值为第四列的实际的值(-3.59,-3.35,-3.12等等),而不是计数的值.求具体的语句

MATLAB横坐标想要用实际的值 求问21\x0566338\x051.76\x05-3.59\x050.8521\x0566342\x051.71\x05-3.35\x050.8621\x0566346\x051.66\x05-3.12\x050.8521\x0566350\x051.62\x05-2.88\x050.8521\x0566354\x051.57\x05-2.65\x050.8521\x0566358\x051.52\x05-2.4
data=[
21663381.76-3.590.85
21663421.71-3.350.86
21663461.66-3.120.85
21663501.62-2.880.85
21663541.57-2.650.85
21663581.52-2.420.85
21663621.48-2.180.88
21663661.43-1.950.84
21663701.38-1.720.84
21663781.26-1.280.87
21663821.21-1.050.85
21663861.15-0.830.86
];
x=data(:,4);
y=data(:,5);
plot(x,y)