フィルターのクリア

How to repeatedly remove the connecting lines between the first an the last points on a surf plot.

4 ビュー (過去 30 日間)
Its a plot with dates on the x-axis, time on the y-axis and power usage on the z-axis. So i got the mentioned issue for every day in the year and cannot fix it manually. As you can see im an absolute beginner in Matlab.... Thanks for help.
a=nan(1,208)';
date=[column1;a];
time=[column2;a];
usage=[column3*3.5*77.826;a];
datere=reshape(date,188,[]);
usagere=reshape(usage,188,[]);
timere=reshape(time,188,[]);
surf(datere,timere,usagere)
  2 件のコメント
jonas
jonas 2018 年 8 月 30 日
Could you upload the data?
Stephen23
Stephen23 2018 年 8 月 31 日
編集済み: Stephen23 2018 年 8 月 31 日
Benedikt Wessel's "Answer" moved here:
Yes of course, i only need the first sheet.

サインインしてコメントする。

採用された回答

jonas
jonas 2018 年 8 月 31 日
編集済み: jonas 2018 年 8 月 31 日

Here is your lastkurven!

TT=readtable('Lastkurven.xlsx');
Date=TT.Date;
Time=duration(days(TT.Time),'format','hh:mm');
x=unique(Date)
y=unique(Time)
z=reshape(TT{:,3},length(y),length(x));
surf(x,y,z)
  4 件のコメント
Benedikt Wessel
Benedikt Wessel 2018 年 8 月 31 日
A very helpful Information, I think I have to use this in my next tasks. Thanks mate
Benedikt Wessel
Benedikt Wessel 2018 年 9 月 4 日
I got a new issue, regarding the second page on the excel sheet. Why isn't the code working there? I think its because of some missing data, should I interpolate there like you already mentioned or what should I do?

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeGraphics Object Programming についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by