Q3.9: How do I dynamically generate a filename for SAVE?
Frequently asked questions about MATLABTo do this correctly, you need to use the "functional" form of save: fname = 'foobar'; save(fname, 'variable'); In fact, it is true in general that the following two lines are equivalent: command str1 str2 str3 command('str1', 'str2', 'str3') This allows one replace any or all of the parameters with dynamically generated strings. This is also useful in commands like PRINT, LOAD, CLEAR, etc.
Related QuestionsMATLAB FAQ??? - ?????????? - ???? Ycool BlogThis allows one replace any or all of the parameters with dynamically generated strings. This is also useful in commands like PRINT, LOAD, CLEAR, etc.Related Questions
How do I save a filename with spaces in it?
REBOL Language FAQWhile most modern operating systems can store filenames with spaces, not all of them can handle much punctuation, so go easy on the punctuation in filenames or you may make your script less portable.
Related QuestionsCan you generate VRML dynamically from a CGI script?
comp.lang.vrml FAQThe following is a shell script that flies a missile against a bogie that's tooling along on a fixed course. The user enters azimuth and elevation from a form and calls the CGI script. If you don't know how to call a CGI script from a form, there's an introduction to the topic at NCSA. #!/bin/sh fly_the_missile $WWW_azimuth $WWW_elevation > missile$$.tmp turn_it_into_vrml <missile$$.tmp >missile$$.
Related QuestionsCan REBOL dynamically generate graphics for websites?
REBOL Language FAQIf you use Windows for your server, then REBOL/View can be used with server scripts (such as in CGI) to dynamically generate graphics. This is easly done by creating layouts then converting them to images: out: layout [ image %picture.jpg text "This is a picture" ] img: to-image out save/png %image.png img Note that only PNG output is currently available, but GIF output will be added in next release (because the patent has finally expired.) We also want to add JPEG output.
Related QuestionsHow do I dynamically generate a map legend in its own image?
Oracle Application Server 10G MapViewer FAQWhen issuing a map request that contains only a legend spec with no drawable map data (not specifying any basemap/themes/features), MapViewer will generate a map image that contains only the map legend. You can then get the URL of this legend image and show the legend somewhere in your web application external to the map images generated. This is more efficient than embedding a legend in every generated map.
Related QuestionsHow to dynamically generate HTML table accoding to XML data by using XSLT?
JavaChina: FAQ on XSLT by Roseanne ZhangHow to generate HTML table accoding to XML data by using XSLT? An example with format-number() and recursion.
Related QuestionsHow do I restrict by language, license or filename?
Google Code Search FAQThe lang: operator, which restricts by programming language (e.g., lang:"c++", -lang:java, or lang:^(c|c#|c\+\+)$) The license: operator, which restricts by software license (e.g., license:apache, -license:gpl, or license:bsd|mit) The package: operator, which restricts by package URL (e.g., package:"www.kernel.org" or package:\.tgz$) The file: operator, which restricts by filename (e.g., file:include/linux/$ or -file:\.
Related QuestionsCan I dynamically specify configuration values?
DenyHosts Frequently Asked QuestionsStarting with DenyHosts version 2.2, you can now specify all or part of a configuration value to use an environment variable setting. To specify a dynamically substituted value you specify the portion of the value you would like to replace using the syntax $[ ... ] where the ... maps to an environment variable name. Notes: the environment variable must be specified in UPPERCASE and will be retrieved from the local environment when DenyHosts is started.
Related QuestionsWhat filename extensions should I use?
Soupermail Frequently Asked QuestionsIf you look at the example files, you will see that I use a number of filename extentions for various files. As a general rule of thumb, filename extensions for your forms and config files are unimportant to Soupermail. However, here are some issues to consider: Config files Although Soupermail doesn't care about the filename extension for config files, you may want to prevent your server from letting people view the config files from their browser.
Related QuestionsHow do I change the case of a filename?
subversion: Subversion FAQThis problem comes up in two situations. If you're adding files on an operating system with a case-insensitive filesystem, such as Windows, you might find you accidentally add a file with the wrong case in the filename. Alternatively, you may just decide to change the case of an existing file in the repository. If you're working in a case-sensitive file system, this is no problem at all. Just move the file to the new name, e.g., svn mv file.java File.
Related QuestionsWhat's the standard filename extension for a reStructuredText file?
Docutils FAQ (Frequently Asked Questions)It's ".txt". Some people would like to use ".rest" or ".rst" or ".restx", but why bother? ReStructuredText source files are meant to be readable as plaintext, and most operating systems already associate ".txt" with text files. Using a specialized filename extension would require that users alter their OS settings, which is something that many users will not be willing or able to do.
Related QuestionsWhat is the filename encoding?
gtk-gnutella - The Graphical Unix Gnutella Clientgtk-gnutella use UTF-8 as default encoding for filenames. If your locale setting does not use UTF-8, other applications may not display these filenames correctly or may have problems accessing them in the worst case. You can change the encoding using the environment variable G_FILENAME_ENCODING. This affects most applications that use Gtk+ or GLib.
Related QuestionsWhat is a filename extension?
Help with Applying Online - Arts OpportunitiesA filename extension can be found at the end of a filename (i.e. resume.doc). The extension indicates what type of file it is (.doc indicated this file is a Microsoft Word file). On PCs, filename extensions are added automatically, although they will only be visible if you have that setting selected in the "detail view" on your PC. If you work on a Mac and are using a word processing program, you will need to manually enter a filename extension when you name and save your file.
Related QuestionsCan files have more than one filename?
University of Utah Mathematics Department FAQ: FilesPlease note the difference between move (mv) and link (ln). After a move, there is only one instance of the file, but after a link, there is still one instance, but now there are two names for the same file. Removing one of the links leaves the file intact under its other name(s). requires that the files be on the same filesystem, and creates a hard link. Editing one of them may preserve the link, or break it: see the Classic Shell Scripting citation above for details.
Related QuestionsWhy and how to zero-fill a filename?
CCC - Canadian Guide to the Uniform Preparation of Judgments...The Guide gives courts the option of zero-filling the number that corresponds to the sequence number of the neutral citation in the filename. This technique allows for easier sorting of files in the ascending or descending order of their sequence number in electronic directories. For instance, here are three judgments for which the core of citation is respectively 2002 ONCA 4, 2002 ONCA 551 and 2002 ONCA 2456.
Related QuestionsHow much landfill space do we save and how much electricity do we generate?
Frequently Asked QuestionsSending garbage to a waste-to-energy facility saves valuable landfill space. These facilities take in the equivalent of four Metrodomes full of garbage each year. And they put your garbage to work, burning it to make enough electricity to meet the needs of 111,000 homes.
Related QuestionsDoes SurfStats save a copy of the reports if I generate to screen?
Yes. When the output option is set to screen and the report has been displayed, a copy of the report has been generated and can be found in the folder \Program Files\Surfstats\Sites\SiteName\Html where SiteName is the name of the site profile.
Related QuestionsHow do I dynamically load a control from an assembly (or DLL)?
General - Windows Forms FAQsYou use System.Reflection to dynamically load a control. This sample loads the SpecControls.ColorControl from SpecControls.dll. [C#] using System.Reflection; Assembly assembly = Assembly.LoadFrom( "SpecControls.dll" ); Type t = assembly.GetType...
Related QuestionsQ3.9 - What are the Peel Sessions?
The Kiss Of Treachery: FAQ about The CureA Peel Session refers to a performance done for broadcast on the John Peel Show on BBC radio. The Cure did about a 1/2 dozen Peel Sessions before 1985. Four songs from their 1979 Peel Session were released on the Strange Fruit label in 1988. Check a discography for info. [Craig]
Related QuestionsWhat will it generate?
quietrevolutionThe QR5 will generate around 10,000 kWh per year in a good wind site of 5.9m/s average. This is equivalent to five low-energy houses’ electricity demand, or the electrical needs of a twenty man office (i.e. lights, computers, servers, printers, faxes and phones). We are currently determining the full power curve and for this to be independently audited to comply with BSEN 6140012. This will be fully released once it has been established and verified by an external source.
Related QuestionsHow do I find the filename for a datatable?
A compendium of Cloudscape frequently asked questionsThe system table SYSCONGLOMERATES references the physical files associated with the data objects in a Derby database. The filename is constructed as a hexadecimal string representation of the conglomerate number. To list the file names for all user tables in the tables in a database create the bigintToHexString function shown in the Java function FAQ and execute the following query: select TABLENAME, 'C' || bigintToHexString(CONGLOMERATENUMBER) || '.dat' from SYS.SYSCONGLOMERATES a, SYS.
Related QuestionsUsing buildgallery.php, how can I sort my images by filename or in forward date order?
SimpleViewer - FAQBy default buildgallery.php sorts images in reverse date order. To change sort options, edit buildgallery.php. In the gallery options, set sortByDate and sortInReverseOrder as required
Related QuestionsHow do I get the date into a filename?
Unix FAQSWhy do some scripts start with #! ... ? If you're looking for the answer to, say, question 3.5, and want to skip everything else, you can search ahead for the regular expression "^3.5)". While these are all legitimate questions, they seem to crop up in comp.unix.questions or comp.unix.shell on an annual basis, usually followed by plenty of replies (only some of which are correct) and then a period of griping about how the same questions keep coming up.
Related QuestionsWhat filename should I use?
Frequently Asked QuestionsFor Example: US-T-R-3-1706.ppt would indicate the 3 rd paper to be presented in session US-T-R whose WAMS paper # is 1706. The Sequence number is from the on-line Monday, Tuesday, and Wednesday schedules (see hyperlinks at left), NOT from the PDF found on the Technical Program web page.
Related QuestionsHow can I debug dynamically loaded code?
R FAQRoughly speaking, you need to start R inside the debugger, load the code, send an interrupt, and then set the required breakpoints. Next: How can I change compilation flags?, Previous: How can I debug dynamically loaded code?, Up: R Programming
Related QuestionsHow can I specify a filename to the page I am saving?
Keepoint FAQOne of the most important features of Keepoint is that while saving a page, you DO NOT need to specify a filename or a destination folder. With Keepoint you not only do not need to specify a filename, but you can save the link or page, in an One-Click operation i.e., by just clicking on Quick Save. You can, if you wish, specify Keep As, a string (word or phrase) which you would like to associate with that page for recalling it yourself.
Related QuestionsWhy is the filename not simply spycop.exe?
Spycop Spyware Detection Software - Frequently Asked Questio...Some unethical spyware companies are developing code to crash privacy protection software such as SpyCop. We will periodically change the installation directory and program filename to prevent being crashed by Spy programs that locate spy detectors based on this information.
Related QuestionsCan I remove the filename displayed below each thumbnail?
PhotoThumb TestimonialsSure. Just remove the %FName parameter in the Thumbnail Options > Advanced tab (and in the Thumbnail link tab, if neccessary). Using such parameters, you can customize all information on your web pages. Make sure that the Create a new 'original' in the target folder and Create page for each image options in the Thumbnail link tab are selected. (This is the default setting in ver. 1.1)
Related Questions