error variable a - basic

2 views (last 30 days)
Barbara Fiorani
Barbara Fiorani on 30 Sep 2020
Commented: Barbara Fiorani on 30 Sep 2020
Why it gives me error when I type >> a= instead of giving me the following result >> a =
1
Before doing this, I had already type the following >>a=1

Accepted Answer

Ameer Hamza
Ameer Hamza on 30 Sep 2020
Edited: Ameer Hamza on 30 Sep 2020
Don't type
a =
Just type
a
in command window.
For example,
>> a = 1;
>> a
a =
1

More Answers (1)

madhan ravi
madhan ravi on 30 Sep 2020
You don’t have to type >>
  1 Comment
Barbara Fiorani
Barbara Fiorani on 30 Sep 2020
Hi,
I didn't type it on my command window, just typed it here in the question.

Sign in to comment.

Categories

Find more on Get Started with MATLAB in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!