how to input in matlab

5 visualizaciones (últimos 30 días)
Shuhrah
Shuhrah el 30 de En. de 2014
Respondida: Image Analyst el 30 de En. de 2014
ask the user for three numbers in the form of a vector,[a b c].then tell the user the number of real-valued roots there are for the equation y=a*x^2+b*x+c having the user's values for a,b,c.

Respuestas (2)

Youssef  Khmou
Youssef Khmou el 30 de En. de 2014
Editada: Youssef Khmou el 30 de En. de 2014
you can use input instead of fscanf, and enter scalar, vector or matrix :
a=input(' Player 1: ');

Image Analyst
Image Analyst el 30 de En. de 2014
See the example for inputdlg() in the help for that function.

Categorías

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

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by