- #1
member 428835
Hi PF!
I typically code in MATLAB. Here, if I run the following program
everything works. But now let's say I wanted to change line 5 to z = x - y. In MATLAB this is simple: I can simply change line 5 and rerun section 2. Is there a way to do this in Python and C++, or do I have to rerun the entire program?
Thanks for your help!
I typically code in MATLAB. Here, if I run the following program
Code:
%% Section 1
x = 5;
y = 2;
%% Section 2
z = x + y;
everything works. But now let's say I wanted to change line 5 to z = x - y. In MATLAB this is simple: I can simply change line 5 and rerun section 2. Is there a way to do this in Python and C++, or do I have to rerun the entire program?
Thanks for your help!