fprintf prints Multiple Lines

4 vues (au cours des 30 derniers jours)
Sachini Perera
Sachini Perera le 6 Oct 2021
Commenté : Kshitij Chhabra le 11 Oct 2021
fprintf('b) Determine the steady state errors:\n\t\t with step input = %.3f,\n\t\t with ramp input = %.3f,\n\t\t with parabola input = %.3f\n', es, er, ep)
  4 commentaires
Walter Roberson
Walter Roberson le 6 Oct 2021
check size(es), size(er), size(ep) and figure out which one is non-scalar. Then backtrack in your code to figure out why it is nonscalar.
Kshitij Chhabra
Kshitij Chhabra le 11 Oct 2021
Hi Sachini,
As mentioned by Walter, it seems that you have non scalar values for your variables. Can you please share the portion of code where you are computing the same so that we can get more idea about your problem?

Connectez-vous pour commenter.

Réponses (0)

Catégories

En savoir plus sur Workspace Variables and MAT-Files dans Help Center et File Exchange

Produits


Version

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by