Combination and surface plot
조회 수: 1 (최근 30일)
이전 댓글 표시
Please I need help on code for getting combination of the attached energy use schedule, each schedule has an equivalent energy cost and consumption and the practicality of each schedule ranges from 1 to 10, i.e. each schedule could have a practicality of 1, 2, 3, ...,10. I want to use the results to then obtain a surface plot that has Cost, consumption and practicality on each the axes. I will be glad if someone can help me out or lead me on how to go about writing a code for this. Thanks
댓글 수: 3
John D'Errico
2015년 4월 14일
편집: John D'Errico
2015년 4월 14일
The data that you give in that worksheet has 6 sets of numbers, for 6 possible schedules. No practicality is even shown.
So the answer is, given the information you have provided, no such plot can be generated. Magic only works for Harry Potter.
Even if you did improve the data, so that you had actually told us the practicality for each such schedule, you would still almost certainly not be able to generate a complete surface. At least, any such surface would be a terribly poor guess. Your data is simply inadequate to generate a surface. You have 6 data points that are not at all well scattered. What did I say about magic? It still won't work.
답변 (1개)
pfb
2015년 4월 14일
You could try "trisurf". But I agree with John d'Errico that your have too few data.
tri=delaunay(cost,consumption);
trisurf(tri,cost,consumption,practicality);
You actually get a surface...
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Surface and Mesh Plots에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!