フィルターのクリア

Info

この質問は閉じられています。 編集または回答するには再度開いてください。

How to create a cell array using web data?

1 回表示 (過去 30 日間)
Juan Rosado
Juan Rosado 2013 年 2 月 15 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
Greetings,
I am trying to create a {... x 4} cell array with the following data.
http://www.ndbc.noaa.gov/data/realtime2/41053.txt
I want to take the first five columns (#YY MM DD hh mm) and make it the first cell array. Then take all the rows starting from the third row, keeping in mind the program updates daily and the number of rows varies.
If you help me with this I can deal with the other 3 columns of the cell array
So far the code goes like this,
clc,clear all
fid = urlwrite('http://www.ndbc.noaa.gov/data/realtime2/41053.txt','SJ.txt')
Could you please help?
  1 件のコメント
Image Analyst
Image Analyst 2013 年 2 月 15 日
How many columns from each row are you going to take, and how many cells do you want them in? What is in each cell? Why don't you just read the first two lines into a 2 by 19 cell array, then for the rest of the lines, just read each line into a row of a (N rows) by 8 (or 91) regular old numerical matrix?

回答 (0 件)

この質問は閉じられています。

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by