How can I show the integral symbol with the original problem?

Hi, I would like to know how to display the integral symbol with the original problem on the screen. I use the preety command to show the problem or answer in a detailed way, but if I want to show f=int(x^2) how can I show the original problem (int(x^2)) with the integral symbol precedent?. (Not the solution)

 Risposta accettata

Try
sym('_hold(int(x^2))')

4 Commenti

Hi, thanks, but it shows only:
ans =
_hold(x^3/3)
as answer. I want to display the same x^2 with the integral symbol.
Ah, try without the underscore
sym('hold(int(x^2))')
Yes!! it works with pretty(sym('hold(int(x^2,x))')) Thank you very much!!

Accedi per commentare.

Più risposte (0)

Categorie

Community Treasure Hunt

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

Start Hunting!

Translated by