hi, i'm using m file in cell mode to solve f(x)=sin (x), where x = 0.8 and i'm getting "??? Subscript indices must either be real positive integers or logicals. " error how it can be solved
No products are associated with this question.
Is this what you're trying to do?
%% Don't run this part A = magic(4);
%% Run this part by itself x = 0.8; f = sin(x)
%% Not this part A = rand(4);
What you do is: Place your cursor in the middle section. Then press Ctrl + Enter.
Please watch this video:
Play games and win prizes!Learn more