Incorrect number of inputs or outputs for function linspace

5 vues (au cours des 30 derniers jours)
Tanveer Islam
Tanveer Islam le 5 Juin 2023
Commenté : Torsten le 5 Juin 2023
  8 commentaires
Tanveer Islam
Tanveer Islam le 5 Juin 2023
Doesnt work :/
Torsten
Torsten le 5 Juin 2023
You should follow Walter's advice.

Connectez-vous pour commenter.

Réponses (1)

chicken vector
chicken vector le 5 Juin 2023
Even if it is a matter of personal taste, for unit steps I usually prefer to do:
z1 = 1 : 100;
Nontheless, this should also work:
z2 = linspace(1, 100);
isequal(z1, z2)
ans = logical
1
Are you sure didn't create a function called linspace?
Have you tried to reset the path and clear the Workspace?
Try to restart Matlab and run it again.

Catégories

En savoir plus sur Entering Commands dans Help Center et File Exchange

Tags

Produits


Version

R2023a

Community Treasure Hunt

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

Start Hunting!

Translated by