MATLAB: How to publish numbers on a line instead of bottom
The "Matlabs" publish function generates html with all my code, comments and numbers. However, I would like the numbers to be displayed in the place where I specify the plot command (for example, in iPython), and not at the bottom like Matlab (R 2010b). I looked through "Edit Posts" but could not find a suitable setting.
Here is an example where I expect the numbers to be plotted before the next dataset is defined, however Matlab (R 2010b) displays them all at the bottom.
data1 = 1:10 figure plot(data1) data2 = 5:15 figure plot(data2) data3 = 1:30 figure plot(data3) data4 = 5:50 figure plot(data4)
source to share
Place each build command in its own cell (defined by string %%
), for example:
%% data1 = 1:10 figure plot(data1) %% data2 = 5:15 figure plot(data2) %% data3 = 1:30 figure plot(data3) %% data4 = 5:50 figure plot(data4)
When the script is published, the cells are processed one by one and the output is merged in one place. You can include headers for each cell following the characters %%
.
source to share