Info

This question is closed. Reopen it to edit or answer.

i want to code my program such that when i call the function with an input,it will create a first plot and then hold on that graph, and then as i run the program again for 2 more times it'll create similar graphs on the same first graph. Thesis work

1 view (last 30 days)
n = input('Enter a number: ');
switch n
case 10
plot(Bulk_fluid_enthalpy,bulk_fluid_temperature)
plot(Bulk_fluid_enthalpy,wall_temperature)
case 30
plot(Bulk_fluid_enthalpy,wall_temperature)
case 50
plot(Bulk_fluid_enthalpy,wall_temperature)
otherwise
disp('other value')
end
hold all
plot(Bulk_fluid_enthalpy,bulk_fluid_temperature)
plot(Bulk_fluid_enthalpy,wall_temperature)

Answers (0)

Community Treasure Hunt

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

Start Hunting!