Incorrect number of inputs or outputs for function linspace

2 visualizaciones (últimos 30 días)
Tanveer Islam
Tanveer Islam el 5 de Jun. de 2023
Comentada: Torsten el 5 de Jun. de 2023
  8 comentarios
Torsten
Torsten el 5 de Jun. de 2023
You should follow Walter's advice.

Iniciar sesión para comentar.

Respuestas (1)

chicken vector
chicken vector el 5 de Jun. de 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.

Categorías

Más información sobre Logical en Help Center y File Exchange.

Etiquetas

Productos


Versión

R2023a

Community Treasure Hunt

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

Start Hunting!

Translated by