Help with my code
古いコメントを表示
Help, I have this code, where I wanted to use 'dsolve to get the answer, but it shows me an 'empty sym' like answer:
clear all
clc
disp('Se resolverá una ecuación integro - diferencial')
syms vel(t) t desp(t)
V = input('Ingrese el voltaje: ' );
l = input('Ingrese la longitud: ');
M = input('Ingrese la masa: ');
B = input('Ingrese la inducción magnética: ');
froz = input('Ingrese la fuerza de rozamiento: ');
eqn = diff(vel,t) == (1/M)*(((V*l*B)-(vel(t)*(l^2)*(B^2)))/(1+(2*int(vel, [0 t])))-froz);
%eqn = diff(vel,t) == 2*int(vel, [0 t])
vel(t) = dsolve(eqn, 'vel(0) = 0')
pretty(vel(t))
What can I do?
2 件のコメント
Walter Roberson
2018 年 11 月 27 日
Can you give us some sample inputs for V l M B froz ?
The int() in the equation is going to make it difficult to solve symbolically.
Alberto Cadena Vaca
2018 年 11 月 27 日
採用された回答
その他の回答 (1 件)
Alberto Cadena Vaca
2018 年 11 月 27 日
0 投票
3 件のコメント
Walter Roberson
2018 年 11 月 27 日
we do not know your inputs
Alberto Cadena Vaca
2018 年 11 月 27 日
madhan ravi
2018 年 11 月 27 日
The below is the graph I got with the datas you gave:

カテゴリ
ヘルプ センター および File Exchange で Programming についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
