필터 지우기
필터 지우기

i=dsolve('​Dy=-8*y+40​*sin(8*t)'​,'y(0)=5') Warning: Support for character vector or string inputs will be removed in a future release. Instead, use syms to declare variables and replace inputs such as dsolve('Dy = -3*y') with syms y(t); dsolve(diff(y,

조회 수: 1 (최근 30일)
i=dsolve('Dy=-8*y+40*sin(8*t)','y(0)=5')
Warning: Support for character vector or string inputs will be
removed in a future release. Instead, use syms to declare
variables and replace inputs such as dsolve('Dy = -3*y') with syms
y(t); dsolve(diff(y,t) == -3*y). > In dsolve (line 126)
  댓글 수: 2
Noah Prisament
Noah Prisament 2023년 11월 27일
Hi Juan, this question would be better posted in MATLAB Answers. But to resolve this warning, you can use the dsolve syntax described in the warning and explained in this documentation: https://www.mathworks.com/help/symbolic/dsolve.html which uses symbolic equations instead of an equation string.
Walter Roberson
Walter Roberson 2023년 12월 11일
syms y(t)
i = dsolve(diff(y) == -8*y + 40*sin(8*t), y(0) == 5)
This leads to the result
i =
(15*exp(-8*t))/2 - (5*2^(1/2)*cos(8*t + pi/4))/2

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Formula Manipulation and Simplification에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by