I think my code has right, but still see warning

sfprint('Initial Objective Function Value: %d\n\n',subs(f,[X,Y], [x(1),y(1)]));
if (norm(J) < e)
sfprint('Minimum succesfully obtained...\n\n');
end
sfprint('Number of Iterations for Convergence: %d\n\n', i);
sfprint('Point of Minima: [%d,%d]\n\n', x(i), y(i));
sfprint('Objective Function Minimum Value Post-Optimization: %d\n\n', subs(f,[X,Y], [x(i),y(i)]));
disp(T);

4 Comments

All you have shown are some sfprint calls. (I can only assume that is sfprint from the stateflow toolbox.) But what warning do you get? How can we possibly guess what you think is a problem?
yes, recently i undertand that sfprint just indicate of toolbox,
but im still confused abot this type of warning
Perhaps you meant to use fprintf instead of sfprint?
Could you please give more information regarding the script ans the use case of the sfprintf function. You could provide details like 'what is that you want to do using sfprintf function', 'executable simple version of your code', etc.

Answers (0)

This question is closed.

Products

Release

R2015b

Tags

Asked:

on 22 Mar 2020

Closed:

on 20 Aug 2021

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!