« first day (823 days earlier)   

1:15 AM
@MarkMcClure so you are a Wolfram Cloud beta tester. Cool.. What are the first impressions?
 
 
8 hours later…
9:31 AM
any one knows if there is a way to do 'do not print/export this cell' option? I wanted to ask this in main board, but thought to check here first. Basically, I want export a notebook to PDF, but some cells, I do not want them exported. Currently what I do, is go select all the cells, and check Cell->CellProperties->Open so they are closed, then export, then uncheck them again if I need to see them and make more changes. This is very tedious.
...it will be better to select the cell, and mark it once 'do not print/export' but keep it open for editing as needed. This way, it is done once and one does not have to keep opening and closing cells manually.
 
9:43 AM
Hi everybody,
I have a question regarding arrays. I have created a matrix say time (1x130) from which I want to import elements into an array say time_t. How should I achieve this.?
 
What is the usage of the front-end shortcut CTRL+E?
It seems pressing CTRL+E and CTRL+F is equivalent to pressing CTRL+F directly´╝č
 
10:01 AM
@pheiztu CTRL+E = 'find', CTRL+F= 'Enter Selection'
 
@Pawan There are many ways. How do you want to specify what elements from your original list you want to put in time_t?
 
@Nasser Thanks, I just find out that CTRL+E and then F3 is very useful.
 
 
3 hours later…
1:15 PM
Hi everyone. I am struggling again with Mathematica Syntax. I have some coordinates and I want to find the distance to the trench.
Map[GeoDistance,
Transpose[{Table[coordinates[[1]], {Length[trench]}], trench}]]
basically does the right thing - but I have one set of curly braces too much
{GeoDistance[{{-73.15, -36.7667}, {-75.356, -41.2187}}],
GeoDistance[{{-73.15, -36.7667}, {-75.3696, -41.291}}], ... }
I get answers like this, but GeoDistance takes two arguments rather than a list of two.
 
 
1 hour later…
2:37 PM
@Pickett
I would like to add all the elements from a matrix into an array so that I can access each element as time_t[1,2]... and perform operations on them to get a new array.
Can you specify one of the ways for e.g.. a 2 matrices say time= {0,1,2...130} and mean={1.2,4.5,...}, whose elements need to be transferred into 2 arrays say time_t and mean_t
so that I can perform operations on the mean_t and time_t arrays to get new arrays(values) say time_t1 and mean_t1
 
3:08 PM
@Pawan We have a communication problem I think, because we're used to different terminology. In Mathematica an array is a list, and a matrix (in some languages a two dimensional array) is a list of lists. What you call a matrix (time={1,2,3,4}) I would just call a list. A matrix could be time={{1,2},{3,4}}. I don't know what you mean when you say you want to transfer a matrix into an array. If you have a matrix m={{1,2},{3,4}} you can already access its members the way you describe.
Consider m[[1,2]] for example. That will give you second column on the first row. If you want to create a copy of a matrix, just do m2=m. If you want to perform operations on the elements and then put the result in a new variable you can just do m3 = Map[Norm,m2] which will take the 2-norm of each row and then return a list of those values. Or m3=2 m will duplicate each value, for example.
 
4:07 PM
I am sorry, the matrix which I mentioned is a column matrix, so that may be the confusion.
 
4:24 PM
@Nasser I think you can specify it in the stylesheet. The same style can have different definition under different screen environment.
 
@Pawan Well, I understood that from your example so that wasn't exactly the problem, but rather the way that you seemed to distinguish between a column matrix and an array when arrays aren't a data structure in Mathematica. An array is a list. A matrix is a list. So what do you mean when you say you want to transfer a matrix into an array? It's like saying "I want to transfer a list into a list" - that's why I can't understand you.
 
5:23 PM
@Silvia thanks, but I am not sure I understand what I need to do. What you can specify it in the stylesheet means and what to change in the UI. what I want, is select any normal input cell, and tell M, somehow, to mark this cell is non-printable, and non-exportable. (non-print is not important, as I only export to pdf any way). If you think this is useful and know how to do it, I can post a question on main site and you could answer it?
 
6:15 PM
@Nasser I mean you can use the option CellOpen -> False on, say, Input/Printout style. So before exporting, you can convert the screen environment to Printout first.
Like this:
Cell[StyleData["Input","Printout"],
        CellOpen -> False
    ]
btw if you want to select ALL input cells, you can use Alt + left click on any one input cell.
 
@Silvia ok, thanks. I am actually only interested in export. I added printing as an extra. I am not following you with the example. Ok, lets make it simple: I have a notebook with 3 cells. I want only the first cell and the last cell to show in the PDF file. Currently, before I export to pdf, I select second cell and close it. Then export notebook to pdf. Then select the second cell, and open it.
 
@Nasser Is you 2nd cell the same style as the 1st and 3rd one?
 
@Silvia yes. All input cells.
Some cells I want to show up in pdf, some no.
 
@Nasser Ah.. I see...
 
I want to avoid having to open/close cells each time.
I also like them to all be open all the time so I can see the code.
 
6:22 PM
Then I think you'll have to mark the 2nd cell while composing it.
Maybe give it a celltag, and write a script to automatically close/open cells with this tag.
But the adding mark part has to be done manually.
Actually, with a proper mark, you can copy the whole notebook, then delete the cells with the specified mark, then print the duplicate notebook.
 
@Silvia marking the cell manually once, not to export, is not a problem, I can do this. I just want to avoid having to select all cells I do not want to export, close them, then open it. Using cell tag+command sound good idea. Your second idea of copying the whole note etc.. sounds too much work. I really think M should better support this from the UI with new cell property
 
Actually I think copy and delete is a bit simpler than close/open cells.
@Nasser I think you can make a custom print button :)
 
@Silvia I have to copy the notebook data to new open notebook, then have to save it with new name, then have to tell it to delete all cells tagged X, then export to pdf, then close the new notebook, then go rename the PDF file to what I want to match the orginal notebook name. etc... too much manual work.
 
You don't have to copy it manully.
Use NotebookGet to get the expression of the current nb, and manipulate the expression programmly
When you have done, use NotebookPut to generate the duplicate nb.
 
@Silvia I am not interested in printing actually, just exporting. Ok, will look at celltage idea, good idea, thanks.
 
6:33 PM
You're welcome :)
 
 
4 hours later…
10:58 PM
hi
 

« first day (823 days earlier)