Solve function not working
Show older comments
Hi everyone, I'm really new to Matlab and am struggling to get this code to work, I was hoping for the Wall_thickness and Outer_Diameter variables to output numbers but I've been unsuccessful. Any ideas?
%% Parameters
Outer_Diameter = 2;
Unit_Cell_Size = 4;
Material_Density = 4.41;
Lattice_Density = 2.8;
%% Calculations
Mass = Lattice_Density*((0.1*Unit_Cell_Size)^3);
Unit_Cell_Volume_cm = Mass/Material_Density;
Unit_Cell_Volume_mm = Unit_Cell_Volume_cm/0.001;
syms Wall_thickness Outer_Diameter
Equation1 = ((pi*(Outer_Diameter/2)^2)*Unit_Cell_Size)-((pi*(Outer_Diameter/2)^2)*Outer_Diameter);
Equation2 = ((pi*((Outer_Diameter/2)-Wall_thickness)^2)*Unit_Cell_Size)-((pi*((Outer_Diameter/2)-Wall_thickness)^2)*(Outer_Diameter-(2*Wall_thickness)));
solve(Equation1,Equation2);
Accepted Answer
More Answers (0)
Categories
Find more on Calculus in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

