Yes thanks, I've been trying to do this using fprintf.
With the example here: http://www.mathworks.com/help/techdoc/ref/fprintf.html
B = [8.8 7.7 ; ...
8800 7700];
fprintf('X is %4.2f meters or %8.3f mm\n', 9.9, 9900, B)
MATLAB displays:
X is 9.90 meters or 9900.000 mm
X is...
I am using the diary function to store simulation results into a txt file, e.g.
diary('TextLog.txt')
however I expect to have around 50,000 rows of data and so not all my data will be stored. Is there anything I can do to specify the size of the file? Am I right in thinking the file will...
I realize this is most likely an extremely basic question but I can't seem to find the answer...
I am wondering if it's possible to convert MS Word documents (with some MathType equations) into LaTeX (and then into pdf files)? I have never used LaTex before and would appreciate some basic...
I want to plot a bar plot using matlab.
For example:
x = [0.4 0.5 0.7 0.2 0.1 0.8]
bar(x)
ylim([0 1])
now I want the x-axis to intercept the y-axis at 0.5 so that any bars >0.5 lie above the x-axis and any bars <0.5 are below.
Is this possible?
Thanks.
I am trying to display a 3D density plot for my data [x,y,z] and have tried 'scatter3' however as some data points are the same it does not represent the density very well. There is a cool function called scattercloud on the file exchange, but this is only for [x,y] data. I would appreciate...
I have a multi-lined coloured plot in which I need some lines represented by dashed lines ('linestyle', ':') and I also need my plot to be quite a high resolution (dpi) for publication reasons (print -r600 -dtiff myfile.tif). So this works fine but when I open the tiff file with high resolution...
I want to copy and paste a very large equation from Mathematica into MathType in Word however MathType is saying my equation is too large. I need to do this for supplementary info for a publication. Any ideas?
Hi, just one more question... I want to adjust the line width to make it more clear. From what I've read online it suggests the code would look something like this...
plot(parameter,stablepoints2,'*', 'LineWidth', 2)
Is this right? I've tried lots of different line width points but it...
I would like to generate a plot displaying the parameter t on the x axis, varying from 0 to 0.95 and the corresponding values of e1. My code below does what I want (I think) but is plotting all the different points on different graphs (all 950 of them!). How can I get it to plot on the same...