Numerical solution of symbolic equation

1 vue (au cours des 30 derniers jours)
Jesse
Jesse le 9 Nov 2020
Commenté : Walter Roberson le 11 Nov 2020
Could someone help me with my solving problems?
Here is my code. I would like to have numerical answers
clear;clc;
E = 2*10^11;
I = 4*10^-4;
F = 10000;
l = 2;
syms x
Mx = @(x) (F.*x);
phix = @(x) int(Mx,0,l);
fx = @(x) int(phix,0,l);
%x = 0:x_step:l;
x_step = 0.01;
x = 0:x_step:l;
M = solve(Mx,x) ;
  11 commentaires
Jesse
Jesse le 11 Nov 2020
I have this and think it works how i would like it
clear;clc;
F = 10000;
l = 2;
x_step = 0.01;
x = 0:x_step:l;
syms t B
fx = int(F*t, 0, B)
result = subs(fx, B, x)
plot(result,x)
Walter Roberson
Walter Roberson le 11 Nov 2020
F = 10000;
l = 2;
x_step = 0.01;
x = 0:x_step:l;
syms t B
Mx = F*t; %generate the formula
fx = int(Mx, 0, B) %integrate it
result = subs(fx, B, x);
plot(x, result); %plot it

Connectez-vous pour commenter.

Réponses (0)

Catégories

En savoir plus sur Formula Manipulation and Simplification dans Help Center et File Exchange

Produits


Version

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by