Effacer les filtres
Effacer les filtres

How do I fix these errors?

1 vue (au cours des 30 derniers jours)
Samuel
Samuel le 29 Mar 2023
Commenté : Samuel le 29 Mar 2023
Keeps telling me theres an error with the parenthesis but I am not sure why.
  1 commentaire
Samuel
Samuel le 29 Mar 2023

Connectez-vous pour commenter.

Réponses (1)

cdawg
cdawg le 29 Mar 2023
Modifié(e) : cdawg le 29 Mar 2023
So the line that has the error (Line 9) you cut off- so I can't see the entire expression. But I see "C1;" ... try "C1,". You shouldn't have semicolons separating the inputs to your function. Also, you don't have a comma after the first input: it should be fprintf('blah blah blah', C1, ...). Right now you have the comma on the inside of the quotes.
  1 commentaire
Samuel
Samuel le 29 Mar 2023
Thank you!!

Connectez-vous pour commenter.

Catégories

En savoir plus sur Matrix Indexing dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by