How to convert this equation to matlab code ?

8 views (last 30 days)
Dear all,
I need you help to convert this equation to matlab code pls ?
Thank you so much
  3 Comments

Sign in to comment.

Accepted Answer

Walter Roberson
Walter Roberson on 7 Sep 2022
syms epsilon_t0_2 E_0 n sigma sigma_0_2 sigma_1_0 n_prime_0_2_1_0
E_0_2 = (sigma_0_2 * E_0)/(sigma_0_2 + 0.002*log(E_0))
E_0_2 = 
part1 = sigma/E_0 + 0.002 * (sigma/sigma_0_2)^n
part1 = 
part2 = (sigma-sigma_0_2)/E_0_2 + (0.008 - (sigma_1_0 - sigma_0_2)/E_0_2) * ((sigma - sigma_0_2)/(sigma_1_0 - sigma_0_2))^n_prime_0_2_1_0 + epsilon_t0_2
part2 = 
eta = piecewise(sigma <= sigma_0_2, part1, part2)
eta = 

More Answers (0)

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by