Community Profile

photo

cakey


1993

Active since 2014

Statistics

  • Thankful Level 3

View badges

Content Feed

View by

Question


How can I make the dimensions agree for this function
f = @(x) x - exp(cos(transpose[1:4])*sum(x)); And x=[2.5;2;1.4;.9] is a column vector. when I subtract it says error Matrix dim...

9 years ago | 1 answer | 0

1

answer

Question


Subscripted assignment dimension mismatch.(matrices)
J = eye(4); % 4x4 identity matrix u = sum(x); N=[exp(cos(u))*sin(u),exp(cos(u))*sin(u),exp(cos(u))*sin(u),exp(cos(u))*si...

9 years ago | 2 answers | 0

2

answers

Question


How do i complete this matrix that has n+1 rows and m columns?
This stops at the 2nd row of the matrix, How can i get the whole matrix? Also, can someone explain what is going on? func...

9 years ago | 1 answer | 0

1

answer

Question


Help vectors size doesn't match...why?
This is my code to evaluate Lagrange where x_in are the given interpolation points and x_out is suppose to be f(x_in), but it ke...

9 years ago | 1 answer | 0

1

answer

Question


How to make this Lagrange formula vectorized work for all Ln? This is only for L3
if true % code end function f_handle = make_L3(x_in) x3 = x_in(3); not_x3 = [x_in(1:2), x_in(4:end)]; ...

9 years ago | 0 answers | 0

0

answers

Question


How do I write this expression in matlab?
How do I write this expression in matlab? a(n)=sqrt(a(n-1))*(n+1)^(1/(2*k))

9 years ago | 1 answer | 0

1

answer

Question


How do I get formula for the nth term of this on matlab?
sqrt(1+2sqrt(1+3sqrt(1+4sqrt(1+...)))) I know this limit is 3...but I need to get matlab to give me the first 40 terms. I am...

9 years ago | 4 answers | 0

4

answers

Question


How to run this code on any inputs?Newton
function [p,k] = newton(f,df,p0,tol) for k=1:100 p = p0 - f(p0)/df(p0); if abs(p-p0)<tol, break; end p0 = p;...

9 years ago | 2 answers | 0

2

answers

Question


How do I get my code to display the associated x values for maximum and minimum
In addition, How do I get it to label the coordinates in the graph it makes? I tried getting it to display Xmax or Xmin, but...

9 years ago | 1 answer | 0

1

answer

Question


Help my code won't run for finding the minimum and maximum of a function
The function is p(x) and when you take the derivative, I get the quadratic formula and I'm trying to use it to find critical poi...

9 years ago | 2 answers | 0

2

answers