Matlab怎么画已知x,y,z的散点图

2024-11-23 15:46:34
推荐回答(1个)
回答1:

已经验证成功.
[X,Y] = meshgrid(0:0.08:0.8, 0.5:0.05:1.5);

Z=[0.446504 0.638015 0.840081 1.051515 1.271247 1.498321 1.731893 1.971222 2.215668 2.464684 2.717811
0.324683 0.506612 0.699764 0.902927 1.115002 1.334999 1.562035 1.79533 2.034201 2.278059 2.5264
0.21016 0.382176 0.566061 0.76058 0.964608 1.177125 1.397217 1.624067 1.856955 2.095251 2.338411
0.103044 0.264863 0.439172 0.624715 0.820347 1.025024 1.237801 1.457831 1.684358 1.916718 2.154329
0.003402 0.15478 0.319242 0.49552 0.682448 0.87896 1.084088 1.296955 1.516776 1.742855 1.974575
-0.088736 0.051993 0.206376 0.373134 0.551085 0.739145 0.936323 1.141718 1.354519 1.573998 1.799511
-0.173372 -0.043468 0.100639 0.257657 0.426392 0.605745 0.794704 0.99235 1.197844 1.410435 1.629448
-0.250535 -0.131601 0.002061 0.149151 0.308463 0.478884 0.659387 0.849033 1.046963 1.252402 1.46465
-0.320277 -0.212431 -0.089354 0.047647 0.197357 0.358651 0.530488 0.711911 0.902046 1.100094 1.305335
-0.382668 -0.286005 -0.173627 -0.046849 0.093106 0.245102 0.408089 0.581094 0.763226 0.95367 1.151683
-0.437796 -0.352386 -0.2508 -0.134357 -0.004286 0.138268 0.292244 0.456659 0.630605 0.813251 1.003837
-0.485759 -0.411655 -0.320932 -0.214913 -0.094834 0.038155 0.182982 0.338654 0.504253 0.678931 0.861912
-0.526667 -0.463905 -0.384098 -0.288574 -0.178573 -0.055253 0.080308 0.227108 0.384217 0.550775 0.725992
-0.560638 -0.509237 -0.440382 -0.355406 -0.255554 -0.141987 -0.01579 0.122025 0.27052 0.428826 0.596138
-0.587797 -0.547761 -0.489881 -0.415491 -0.32584 -0.222094 -0.105345 0.023392 0.163169 0.313105 0.472387
-0.60827 -0.579594 -0.532698 -0.468918 -0.389507 -0.295635 -0.188398 -0.068819 0.062149 0.203616 0.354758
-0.622189 -0.604857 -0.568942 -0.515784 -0.446638 -0.36268 -0.265007 -0.154649 -0.032567 0.100345 0.243254
-0.629688 -0.623673 -0.598727 -0.556191 -0.497325 -0.423306 -0.335238 -0.234153 -0.121017 0.003269 0.137862
-0.6309 -0.636168 -0.622169 -0.590247 -0.541664 -0.477601 -0.399165 -0.307391 -0.203251 -0.087653 0.038557
-0.625956 -0.642468 -0.639387 -0.618062 -0.579756 -0.525655 -0.456868 -0.374435 -0.27933 -0.172467 -0.054699
-0.611156 -0.642697 -0.650499 -0.639747 -0.611706 -0.567565 -0.508435 -0.435361 -0.34932 -0.25123 -0.14195];

surf(X,Y,Z);