photo

Patrick


Last seen: 7 månader ago Active since 2024

Followers: 0   Following: 0

Statistics

  • Thankful Level 3

View badges

Feeds

View by

Question


MatLab drive syncing issue
I recently connected matlab drive and it keeps giving me a error saying, could not update HW.1; Reason is that 1 or more files c...

7 månader ago | 0 answers | 0

0

answers

Question


I keep getting an error on my correlation coefficient on line 20
% Given data x = [0, 2, 4, 6, 9, 11, 12, 15, 17, 19]; y = [5, 6, 7, 6, 9, 8, 8, 10, 12, 12]; % Least-squares regression for a...

8 månader ago | 1 answer | 0

1

answer

Question


It keeps giving me an error on line 4, saying I'm missing input arguments but I have everything defined?
function root = BisectionRoot(Q,q,R,F,z1,z2) tol = 1e-6; err = 1.0; z = (z1 + z2)/2; fz = Fun(Q,q,R,F,z); fz1 = Fun(Q,q,R,F...

9 månader ago | 1 answer | 0

1

answer

Question


It keeps giving me an error on my xlim and the graph that it gives me isn't complete
Q = 9.4*10.^(-6); q = 2.4*10.^(-5); epsilon= 0.885*10*(-12); R=0.1; z=linspace(0,0.3, 1000); F=(Q*q*z) *((1-z)/(sqrt(z.^2+R...

9 månader ago | 1 answer | 0

1

answer

Question


I'm unsure of why there is an error on F=@x
function Xs= newtonM(fun,FunDer,Xest,err) for i=1:100 Xs= Xest-Fun(Xest)/FunDer(Xest); error =abs((Xs-Xest)/Xs)*100; ...

9 månader ago | 1 answer | 0

1

answer

Question


Can't quite figure out why my syms is giving me an error
% Define the function in symbolic form: syms x f = exp(-0.5*x)*(4-x)-2 ; % Differentiate f(x) in x: Df = diff(f,x) ; % Co...

9 månader ago | 1 answer | 0

1

answer

Question


I can't really find why matlab won't plot this equation, I run into an error as soon as i try to run it
x = 0 : 0.01 : 10 ; y= ((exp(-0.5.*x))*(4-x))-2; % Now, plot the f(x) -> x: plot(x, y) % Set axes labels: xlabel('x') ylab...

9 månader ago | 1 answer | 0

1

answer