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:
display an expression without solving it

Subject: display an expression without solving it

From: Jules Kassmann

Date: 12 Mar, 2011 23:18:04

Message: 1 of 2

Hello everyone,

Is it possible to display an expression in the command window? like in MuPAD:

print(Typeset, int(f(x)/g(x), x = a..b)):

which returns a nice expression.
I would like to display the key mathematical expression of my m-file, as to state the problem.

Alternatively, is it possible to import an expression created in MuPad to import it in an m-file?

I need this expression (in MuPAD form:

_int := freeze(int): F := _int(1/P, P = Pi..Po)*-n*R*T = w

To be printed like this in the command window in Matlab


Thank you for your help!




Jules

Subject: display an expression without solving it

From: Steve Sachay

Date: 13 Mar, 2011 00:21:04

Message: 2 of 2

"Jules Kassmann" <jules.kassmann@gmail.com> wrote in message <ilguvc$lbi$1@fred.mathworks.com>...
> Hello everyone,
>
> Is it possible to display an expression in the command window? like in MuPAD:
>
> print(Typeset, int(f(x)/g(x), x = a..b)):
>
> which returns a nice expression.
> I would like to display the key mathematical expression of my m-file, as to state the problem.
>
> Alternatively, is it possible to import an expression created in MuPad to import it in an m-file?
>
> I need this expression (in MuPAD form:
>
> _int := freeze(int): F := _int(1/P, P = Pi..Po)*-n*R*T = w
>
> To be printed like this in the command window in Matlab
>
>
> Thank you for your help!
>
>
>
>
> Jules


I believe you'll need to have the symbolic math toolbox installed to do this kind of thing.

Tags for 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