关于求积分的问题。

按照Matlab手册上的示例:
Example 1
Compute the indefinite integrals and :
int(1/x/ln(x), x)
复制粘贴后的计算却出现了问题:
>> int(1/x/ln(x), x)
Undefined function or variable 'x'.
>>
请教,这问题是出在哪里?
(ps查看了手册中函数的保存路径,我的电脑里面没有该路径,似乎也没有这个文件;我是win8中文版,不知道这个会不会有影响)

 Respuesta aceptada

najosac
najosac el 23 de Nov. de 2022

0 votos

错误提示已经告诉你了: Undefined function or variable 'x'. 意思是,变量 x 未定义。
一般批量定义符号变量用 syms 函数, 这样就可以了:
syms x
int(1/x/log(x), x)

Más respuestas (0)

Categorías

Más información sobre 编程 en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 23 de Nov. de 2022

Respondida:

el 23 de Nov. de 2022

Community Treasure Hunt

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

Start Hunting!