Skip to main content
AI Assist is now on Stack Overflow. Start a chat to get instant answers from across the network. Sign up to save and share your chats.
added 12 characters in body
Source Link
Jay
  • 117
  • 2
  • 2
  • 6

I want use matlab to get IBM price from yahoo price can get by

quote = fetch(yahoo, 'IBM', 'Last');
px = quote.Last;

Now I want to retrieve the data every minute from, for example, 9:00 am to 1:00 pm. I would like to use timer object to get my data.

However, I cannot figure out how to use it. What I can get is

t = timer;
t.ExecutionMode = 'fixedRate';
t.Period = 60;

especially the timerFcn, I don't get how to use it.

Hope someone can helpwrite me an example with this. Thanks

I want use matlab to get IBM price from yahoo price can get by

quote = fetch(yahoo, 'IBM', 'Last');
px = quote.Last;

Now I want to retrieve the data every minute from, for example, 9:00 am to 1:00 pm. I would like to use timer object to get my data.

However, I cannot figure out how to use it. What I can get is

t = timer;
t.ExecutionMode = 'fixedRate';
t.Period = 60;

especially the timerFcn, I don't get how to use it.

Hope someone can help me with this. Thanks

I want use matlab to get IBM price from yahoo price can get by

quote = fetch(yahoo, 'IBM', 'Last');
px = quote.Last;

Now I want to retrieve the data every minute from, for example, 9:00 am to 1:00 pm. I would like to use timer object to get my data.

However, I cannot figure out how to use it. What I can get is

t = timer;
t.ExecutionMode = 'fixedRate';
t.Period = 60;

especially the timerFcn, I don't get how to use it.

Hope someone can write me an example with this. Thanks

Source Link
Jay
  • 117
  • 2
  • 2
  • 6

How to use Timer in Matlab

I want use matlab to get IBM price from yahoo price can get by

quote = fetch(yahoo, 'IBM', 'Last');
px = quote.Last;

Now I want to retrieve the data every minute from, for example, 9:00 am to 1:00 pm. I would like to use timer object to get my data.

However, I cannot figure out how to use it. What I can get is

t = timer;
t.ExecutionMode = 'fixedRate';
t.Period = 60;

especially the timerFcn, I don't get how to use it.

Hope someone can help me with this. Thanks