windows 10 matlab interactive input needs condensing on output. How to do?

My code is:
prompt='a='; a=input(prompt)
prompt='b='; b=input(prompt)
prompt='c='; c=input(prompt)
prompt='d='; d=input(prompt)
Output is:
a=-3
a =
-3
b=0
b =
0
Desired output:
a=-3
b=0
c=0
d=2
Can I do this?
MM

Answers (1)

This did not work at first but after a second restart I got the output I wanted.
INPUT:
prompt='a='; a=input(prompt);
prompt='b='; b=input(prompt);
prompt='c='; c=input(prompt);
prompt='d='; d=input(prompt);
OUTPUT:
a=-3
b=0
c=0
d=2
CASE CLOSED ...

Categories

Find more on MATLAB in Help Center and File Exchange

Asked:

on 16 Jan 2019

Answered:

on 16 Jan 2019

Community Treasure Hunt

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

Start Hunting!