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)
Show older comments
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)
0 Comments
Answers (0)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!