saving . . . saved
0
Problem with input command in scilab for reading mulitiple data
Title
Question

Respected Sir/ Madam I am presently working with input command to read multiple data in scilab 6.0.0. It is behaving in inconsistent way. The problem I am facing is the input command is promoting me enter data twice or trice. I am posting the code as well. Please help me in this regard. Your help will be priceless. Yours sincerely T.V.Chandra Shekar

clc;
clear;
close;
str = input("Enter a space-separated list of numbers: ", "string");
v = evstr(strsplit(str, " "))
disp(sum(v), "The sum:");
str = input("Enter a space-separated list of numbers: ", "string");


Scilab 20-12-17, 6:45 a.m. chandrashekar

Answers:

0

In the given code, you have two input commands which will prompt you to enter the data twice.

14-02-18, 12:09 p.m. shamika


Log-in to answer to this question.