hello...when an error occurs i have to run the code again and enter all my input datas again...i want you to help me please to re-enter just the incorrect data not all again

1 view (last 30 days)
hello...my code has at least 500 inputs...my problem is when i enter wrong input such as empty input(enter without entry) error occurs and i have to re-enter datas again...please help me to re-enter just the incorrect data not all datas again... abstract:when an error occurs i have to run the code again and input all my input datas again...i want you to help me please to re-enter just the incorrect data not all again thanks
  5 Comments

Sign in to comment.

Answers (1)

per isakson
per isakson on 1 Nov 2014
This is not the most elegant approach, but it is easy to grasp and it works
Try
>> area = my_main_function
area =
12
where
function area = my_main_function
S = my_answers();
area = S.length * S.width;
end
and
function sas = my_answers()
sas.length = 3;
sas.width = 4;
sas.goodname = 'Cannot think of one';
% and another 497 lines
end

Categories

Find more on Data Import and Analysis in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!