Solving equation in Matlab

147 Views Asked by At

I want to solve this equation for several values of y

y=4 exp(0,034x)

y= [60 14 63 34 21 12 11];

Thanks

1

There are 1 best solutions below

5
On BEST ANSWER

This is not mainly a site for programming specific help, so don't be surprised if people sometimes vote down questions that are too specific about computer language. You can use the fsolve command and an anonymous function

f = @(x)[60 14 63 34 21 12 11]' - 4*exp(0.034.*x);
x_solution = fsolve(f,rand(1,7)');