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:
How to capture output of lookfor?

Subject: How to capture output of lookfor?

From: Nasser M. Abbasi

Date: 25 Nov, 2012 13:22:52

Message: 1 of 4

lookfor is a useful command, but there does not seem
to be a way to capture its result, since there is no
function form of this command, as in

s=lookfor('fft')

So, how does one capture the output of lookfor
in a cell array to process?

thanks,
--Nasser

Subject: How to capture output of lookfor?

From: Bruno Luong

Date: 25 Nov, 2012 15:40:09

Message: 2 of 4

 s=evalc('lookfor(''fft'')')

% Bruno

Subject: How to capture output of lookfor?

From: Nasser M. Abbasi

Date: 25 Nov, 2012 22:50:17

Message: 3 of 4

On 11/25/2012 9:40 AM, Bruno Luong wrote:
> s=evalc('lookfor(''fft'')')
>

thanks Bruno. I did not know about evalc. Useful function
for this sort of thing. I think lookfor should be modified
to also return its result (like which() can).


--Nasser

Subject: How to capture output of lookfor?

From: dpb

Date: 25 Nov, 2012 23:08:21

Message: 4 of 4

On 11/25/2012 4:50 PM, Nasser M. Abbasi wrote:
...

> ... I think lookfor should be modified
> to also return its result (like which() can).

Seems reasonable.

Submit enhancement request to official TMW support...

--

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