photo

Brendan


Last seen: 8 mesi fa Attivo dal 2023

Followers: 0   Following: 0

Statistica

  • Thankful Level 2

Visualizza badge

Feeds

Visto da

Domanda


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...

10 mesi fa | 1 risposta | 0

1

risposta

Domanda


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 ...

11 mesi fa | 1 risposta | 0

1

risposta

Domanda


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...

oltre un anno fa | 1 risposta | 0

1

risposta

Domanda


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 ...

oltre un anno fa | 1 risposta | 0

1

risposta

Domanda


"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...

oltre un anno fa | 1 risposta | 0

1

risposta