Error using round every time can anyone please help me with this?
39 views (last 30 days)
Show older comments
Raj Arora on 20 Apr 2021
Commented: Raj Arora on 21 Apr 2021
n = 0.025;
bw = 36;
angle = 60;
tw = simplify(bw + 2*(x * tand(angle)));
A = 0.5*(bw + simplify(tw))*x;
P = simplify(bw + 4*x);
S = 0.00001;
Q = 347.9;
syms brand height
brand = ((c/n)*((A^1.666)/(P^0.666))*(S^0.5)) == Q
height = vpasolve(brand, x)
stage = round(height,4); %%%LINE 18%%
ITS SHOWING TOO MANY INPUT ARGUMENT WHY SO?
Error using sym/round
Too many input arguments.
Error in Untitled2 (line 18)
stage = round(height,4)
If my Answer helped you solve your problem, please Accept it!
More Answers (1)
Steven Lord on 20 Apr 2021
The round function for symbolic expressions does not accept the input argument N (the number of digits to which to round) like the round function for numeric arrays does. If you convert your height variable to double then you can call round to round the number to 4 places.
Find more on Linear Algebra 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!