
how to make a contour line using curvature values for a given x y line data
3 ビュー (過去 30 日間)
古いコメントを表示
Hi, I have an xy line coordinates and I have a set of curvature values that correlate to each point. I am trying to see if there is a way I can use my x, y values and create the line and have this line contoured with different colors at each xy cordinate based on the curvature values? Here is my x and y data for the line and curvature values (c) for the line
x=[205.333 212 221.333 234.667 246.667 260 274.667 289.333 298.667 309.333 320 329.333 341.333 349.333 356 368 377.333 386.667 394.667 402.667 413.333 424 434.667 445.333 460 474.667 493.333 506.667 525.333 541.333 558.667 573.333 590.667 605.333 624 645.333 666.667 684 706.667 721.333 744 ];
y=[369.333 362.667 365.333 366.667 361.333 356 352 349.333 344 340 330.667 321.333 314.667 308 301.333 296 292 289.333 284 277.333 274.667 273.333 273.333 270.667 273.333 277.333 286.667 293.333 304 310.667 317.333 316 330.667 344 353.333 358.667 368 374.667 378.667 380 384 ];
c= [ 0.000632177 0.000717373 0.000861519 0.00113386 0.001472131 0.001999047 0.002851559 0.004132465 0.005254823 0.006896265 0.008931461 0.010945374 0.013477112 0.01477924 0.015421488 0.015305441 0.014173386 0.01247082 0.010840285 0.009243936 0.007345154 0.005786727 0.004558065 0.003607071 0.002645608 0.001969849 0.001380189 0.001081349 0.000773561 0.000578623 0.000414275 0.000300841 0.000186453 1.00E-04 -3.66E-06 -0.000122928 -0.000254807 -0.000381413 -0.000593041 -0.000773552 -0.001162718]
0 件のコメント
回答 (2 件)
KSSV
2016 年 6 月 5 日
You have to use
cplot(x,y,c);
colorbar
Where x,y are your coordinates and C is curvature values.
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Contour Plots についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!