I have an array like this:
{1×2 cell}
{1×2 cell}
{1×2 cell}
{1×2 cell}
{1×2 cell}
{1×2 cell}
{1×2 cell}
{1×2 cell}
{1×2 cell}
{1×2 cell}
But I want to turn it into a 10X2 array.
The way to do it is
[cellfun(@(x) x{1},array,'UniformOutput',false) cellfun(@(x) x{2},array,'UniformOutput',false)];
the script tag should look like <script type="text/javascript">
also it is preferable to use the dom to insert content into the page, not document.write.
in the head:later on in the body:PHP:<script type="text/javascript">onload = function(){
document.getElementById("lastModified").innerHTML = "Page last changed " + document.lastModified.split(" ")[0];
}</script>good read: http://www.quirksmode.org/js/lastmod.htmlHTML:<span id="lastModified"></span>