I'm new to MatLab and for the sake of an exercise for my university I have to find a root using Newton's method for a given function.
>> x = linspace(-3,3);
>> y = sinh(x-1)*log((3+2)*x+1)-1-1;
Error using *
Inner matrix dimensions must agree.
>> y = sinh(x-1).*log((3+2)*x+1)-1-1;
>> plot(x,y)
Warning: Imaginary parts of complex X and/or Y arguments ignored
I wanted to visualize my function but as you can see in the first error I can't use the standard * operator so I tried with .* (which I can't really understand what it does) but the graph was far from right.