photo

Brendan


Last seen: 2 months ago Active since 2023

Followers: 0   Following: 0

Statistics

  • Thankful Level 2

View badges

Feeds

View by

Question


Getting the Error "Not enough input arguments" but I did the exact same method earlier in the code without issue..
clear all close all clc % EMEC-342 Mini Project: 4-Bar Linkage Analysis % Known Values a=10; % cm b=25; %cm c=25; %cm...

2 months ago | 1 answer | 0

1

answer

Question


I'm not sure as to why MATLAB is not outputting the figure, as well as the vector [T_Euler]. When I run the code it is fine, but when publishing I don't see either. Any fixes?
%% problem description % Determine the temperature vs time for hot iron with convection and % radiation. %% driver functi...

1 year ago | 1 answer | 0

1

answer

Question


I'm unsure as to why MATLAB is returning an infinite root no matter the initial guess. Can someone help with this?
%% False-position root finder function FP_iteration_root_finder clear clc close all Bi = 4.8; %initial ...

1 year ago | 1 answer | 0

1

answer

Question


Why am I getting an error here?
clear all close all clc % constants and data g = 9.81; D = 75; rho= 1000; Z = 0:12.5:75; w = [122 130 135 160 175 190 2...

1 year ago | 1 answer | 0

1

answer

Question


Can anyone tell me why I'm getting an error here? "xold=xnew;'' is giving me an error in this statement and I'm not sure why.
clear all close all clc % Problem 6.7 while (1) fx=@(x) x.^3-6*x.^2+11*x-6.1; % Using the Modified Secant Method ...

2 years ago | 1 answer | 0

1

answer

Question


"theta" is defined inside of the statement, but when I run my code it gives me an error saying that " 'theta' is not a recognized function or variable'. Any solutions?
x = [2 2 0 -3 -2 -1 0 0 2]; y = [0 1 3 1 0 -2 0 -2 2]; r = (sqrt((x.^2)+(y.^2))); if x > 0 theta = atan(y./x); e...

2 years ago | 1 answer | 0

1

answer