フィルターのクリア

Import data from google sheets to matlab

132 ビュー (過去 30 日間)
Hüseyin Cagdas Yatkin
Hüseyin Cagdas Yatkin 2019 年 12 月 12 日
コメント済み: O.Hubert 2024 年 6 月 5 日
Hello guys,
I wanted to import data from google sheets to matlab. However I couldn't find any information about it. Since the google sheets always geting update I can't just copy and paste so I wanted to import new data for every time I run the matlab script. Is there a way?
Thanks in advance.
  1 件のコメント
Vinicio Moya
Vinicio Moya 2020 年 6 月 26 日
Did you resolve it?

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

回答 (3 件)

Donald
Donald 2021 年 3 月 4 日
First, find the ID for your Sheet. It's the long string if you look at the URL. For example,
http s://docs.google.com/spreadsheets/d/bladjaljd77442n2j3ljk2j3j2jdkdjad/edit#gid=1498695871
Then it's easy
ID = 'bladjaljd77442n2j3ljk2j3j2jdkdjad'
sheet_name = 'My Sheet';
url_name = sprintf('https://docs.google.com/spreadsheets/d/%s/gviz/tq?tqx=out:csv&sheet=%s',...
ID, sheet_name);
sheet_data = webread(url_name);
  5 件のコメント
thierry Lanoe
thierry Lanoe 2023 年 3 月 25 日
is there a solution with "protected sheets"
O.Hubert
O.Hubert 2024 年 6 月 5 日
Bennet, have you tried passing the ContentType option to webread (see the help here)?

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


Hiro Yoshino
Hiro Yoshino 2019 年 12 月 12 日
  1 件のコメント
Hüseyin Cagdas Yatkin
Hüseyin Cagdas Yatkin 2019 年 12 月 12 日
I think this is for the offline files, I want to take from online source which is specifically google sheets.

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


dimuthu chathuranga
dimuthu chathuranga 2021 年 4 月 9 日
I have same problem please help me I want to real time uptade data fron google sheet to mathlab gui

カテゴリ

Help Center および File ExchangeGoogle についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by