Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
tic, toc commands

Subject: tic, toc commands

From: Yuri Geshelin

Date: 12 Sep, 2008 19:56:02

Message: 1 of 3

Hello,

When you get the on-screen output of tic / toc:

"Elapsed time is XXXXX seconds."

Is there a way to capture the number XXXXX and bring it into workspace?

Subject: tic, toc commands

From: Husam Aldahiyat

Date: 12 Sep, 2008 20:05:03

Message: 2 of 3

The number is stored in the variable toc.

Subject: tic, toc commands

From: Christian Zietz

Date: 12 Sep, 2008 20:05:06

Message: 3 of 3

Yuri Geshelin schrieb:

> When you get the on-screen output of tic / toc:
> "Elapsed time is XXXXX seconds."
> Is there a way to capture the number XXXXX and bring it into workspace?

t = toc;

help toc

Christian
--
Christian Zietz - CHZ-Soft - czietz (at) gmx.net
WWW: http://www.chzsoft.com.ar/
PGP/GnuPG-Key-ID: 0x6DA025CA

Tags for this Thread

No tags are associated with this thread.

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us