f

#### Change the text of a 'Static Text'

Hello,

I work now at a GUI in matlab. And I have the following code (function) for a Button Callback:

function Button_Callback(hObject, eventdata, handles)
set(handles.Status,'String','Busy!');
....
%.. some code that requires several seconds
....
set(handles.Status,'String','Idle');

handles.Status is the handle for a StaticText control.

What I want to do is to change the Text(Label) for the static text at the beginning (in "BUSY") and when everything is done to change it to "IDLE".

My problem is that the Label/Text is changed only at the end of the function. So I start the function, nothing happens and only at the end of the function the StaticText displays "IDLE" but during it is no "BUSY" visible.

Thanks,
Paul

 0
paul_tutzu (22)
10/11/2009 12:49:03 PM
comp.soft-sys.matlab 211266 articles. 25 followers. lunamoonmoon (257) is leader.

1 Replies
1120 Views

Similar Articles

[PageSpeed] 5

On Oct 11, 8:49=A0am, "Paul " <paul_tu...@yahoo.com> wrote:
> Hello,
>
> I work now at a GUI in matlab. And I have the following code (function) f=
or a Button Callback:
>
> function Button_Callback(hObject, eventdata, handles)
> set(handles.Status,'String','Busy!');
> ...
> %.. some code that requires several seconds
> ...
> set(handles.Status,'String','Idle');
>
> handles.Status is the handle for a StaticText control.
>
> What I want to do is to change the Text(Label) for the static text at the=
beginning (in "BUSY") and when everything is done to change it to "IDLE".
>
> My problem is that the Label/Text is changed only at the end of the funct=
ion. So I start the function, nothing happens and only at the end of the fu=
nction the StaticText displays "IDLE" but during it is no "BUSY" visible.
>
> Thanks,
> Paul

---------------------------------------------------------------------------=
-------------------
Common problem.  What happens is that it immediately goes into some
computationally intensive stuff before the message to update your
label gets processed.  The way around this is to call "drawnow"
immediately after you call the set() function to force a refresh
immediately.

 0
imageanalyst (7621)
10/11/2009 2:29:30 PM

Similar Artilces:

Change text color of uicontrol whose 'Enable' property is 'off'
I would like to change the text color of a uicontrol whose 'Enable' property is set to 'off' Is there a way to do this? "Nate Jensen" wrote in message <j6spf2$pqn$1@newscl01ah.mathworks.com>... > I would like to change the text color of a uicontrol whose 'Enable' property is set to 'off' > > Is there a way to do this? Does being not-enabled specifically prevent this? Are you asking for an automatic method, like whenever you set something's enable to "off" it automatically recolors it too? And are you sure you dont just want to set "enable" to "disabled" (I've never found a good use for enable=off) f=findobj(gcf,'type','uicontrol','enable','off') set(f,'color',[1 0 0]) "matt dash" wrote in message <j6v8km$r3q$1@newscl01ah.mathworks.com>... > Does being not-enabled specifically prevent this? Are you asking for an automatic method, like whenever you set something's enable to "off" it automatically recolors it too? And are you sure you dont just want to set "enable" to "disabled" (I've never found a good use for enable=off) > > f=findobj(gcf,'type','uicontrol','enable','off') > set(f,'color',[1 0 0]) Does it? I did not know that. Is there a workaround? I'm not sure exactly what you mean by 'automatic'. I don't wa...

'^=' and '~='?
Hello, What is the difference between '^=' and '~='? Thanks, Duckhye ...

How to extract words containing 'ab' & 'cd' in a text file?
Can anyone do it? ARMY1987- what say? On May 30, 10:00 am, Umesh <fraternitydispo...@gmail.com> wrote: > Can anyone do it? ARMY1987- what say? Please do not post homework. Show the code. thanks >>>>> "U" == Umesh <fraternitydisposal@gmail.com> writes: U> Can anyone do it? ARMY1987- what say? If you have to ask, it's obvious that not anyone can do it, but as I can do it, I know someone can. Perhaps you should attempt it and see what you come up with. Charlton -- Charlton Wilbur cwilbur@chromatico.net "Umesh" <fraternitydisposal@gmail.com> ha scritto nel messaggio news:1180501217.621345.186920@r19g2000prf.googlegroups.com... > Can anyone do it? ARMY1987- what say? > What? Why am *I* supposed to do that? After having opened the files, etc., etc... while (read a word) if (the word contains "ab" && the word contains "cd") write the word; close the files, etc., etc... Look up for the %s format for fscanf(), and for strstr(). This should do it... int main(void) { FILE *open; char word[64] open = fopen("file.txt", "r"); if(!open) return -1; while(fscanf(open, "%s", word) != EOF) { if((strstr(word, "ab") != NULL) || (strstr(word, "cd") != NULL)) { printf("gotcha [%s] !\n", word); } } fclose(open); } On Fri, 01 Jun 2007 ...

'''''''''''''The Running Update/Append Queries Using VBA code Ordeal''''''''''''''
Hello fellow programmers, I am trying to run an append/update query from code, a command button on a form initiates the queries. the format i am using is; _____________________________________________________ SELECT "criteria" FROM "criteria" WHERE "criteria" UPDATE/APPEND "field selections" RecordSource "qryExample" = above text strings" _______________________________________________________________________ When i am running a SELECT query in this manner it works fine with no problems, and accepts the values of specified linked form fields. This never works when doing an APPEND/UPDATE query. It can never find the values of linked form fields, Access always asks for the parameter value of the field(s) in question, or Access comes up with an error 3323 - No recordset. I am sure there are other people that have had this problem. What is the difference between Select queries and append/update queries? the append/update queries never seem to be able to find values in linked form fields. Can anyone shed any light on this or point to a knowledgebase Item, or even recommend a book focusing on this subject, I will go and buy it now. I have been for up 2 nights trying to acomplish this and now considering suicide, please help. Thanks In advance, Aaron. I know of two ways you can accomplish this. 1. You can create the SQL script for you append or update query and run the script with DoCmd.RunSQL. 2. You can create a...

'Matlab Code' to 'Embedded Matlab fun code'
Dear friends, I have a Matlab code to process a pure analog signal 'u'. Now I want to implement it in Simulink and I want to use it in 'Embedded Matlab fun block' so i need to transform 'Matlab code' to 'Embedded Matlab fun code' to perform the task. The Matlab code is as follows: %%%%%%%%%%%%%%%%%%%%% u_abs = abs(u); major_th = 1.5e-1; minor_th = 1.8e-2; major_peak_value = []; minor_peak_value = []; pos = 1; pos_max = 1; while ~isempty(pos) [m pos_max(end+1)] = max( u_abs( pos : pos + 10) ); pos_max(end) = pos_max(end) + pos - 1; if m > major_th major_peak_value(end+1) = m; else minor_peak_value(end+1) = m; end % exit the peak pos = find(u_abs(pos:end) < minor_th, 1 , 'first') + pos-1; % Find the beginning of the next peak pos = find(u_abs(pos:end) > minor_th, 1 , 'first') + pos-1; end pos_max(2) = []; plot(u); hold on; plot(pos_max,u(pos_max),'ro'); %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% I think i don't need this plot command as I will see the result in the scope directly. Any suggestion will be very useful. Thanking you! Prashant "Prashant Sandhi" wrote in message <jafvj8$soq$1@newscl01ah.mathworks.com>... > Dear friends, > > I have a Matlab code to process a pure analog signal 'u'. Now I want to implement it in Simu...

error: expected '=', ',', ';', 'asm' or '__attrib
Hi I'm trying to compile an ADC Driver & come acrosss the following error. I've no experience writing drivers before, and hence have no clue how to fix it. Hope someone out there has encountered the problem & suggesst a fix for the same. The Error is I get is : qadc.c: At top level: qadc.c:97: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'qadc_read' make: *** [qadc.o] Error 1 [root@localhost qadc]# ########################################################################### ADC Driver Code ########################################################################### #define MODULE #define __KERNEL__ #include <linux/config.h> #include <linux/module.h> #include <linux/kernel.h> /* printk */ #include <linux/fs.h> / #include <linux/errno.h> /* error codes */ #include <linux/types.h> /* size_t */ #include <linux/proc_fs.h> /* proc file system */ #include <linux/fcntl.h> #include <asm/system.h> /* cli, flags */ #include <asm/uaccess.h> /* copy from/to user */ /*Registers to get qadc access*/ volatile unsigned short * qadcmcr = (unsigned short *)0x40190000; volatile unsigned short * qacr0 = (unsigned short *)0x4019000a; volatile unsigned short * qacr1 = (unsigned short *)0x4019000c; volatile unsigned short * qacr2 = (unsigned short *)0x4019000e; volatile unsigned short * qasr0 = (unsigned short *)0x40190010; volatile unsigned short * qasr1...

replacement for '{' and '}' ?
I am still playing around with what kind of syntax I would like to mark up my documents. Are there equivalent long substitutes for { and } when they are not used to describe arguments to functions? Something like \begin{group} and \end{group}. In other words, if I could force myself to write, say, \begin{group} \it ... \end{group} instead of {\it ... }, then I believe I could identify from the markup context what is an argument that belongs to a just invoked macro and what is text. {Of course, in this context, \textit{...} would be better.} No more ambiguity whether a in \myfunction{a} is an argument or just text. Is there a way to make latex barf when it sees an ordinary '{' in text, rather than \begin{group}, but not barf when I want it (to denote macro arguments)? Regards, /iaw On Aug 16, 6:01=A0pm, "ivo...@gmail.com" <ivo...@gmail.com> wrote: > Is there a way to make latex barf when it sees an ordinary '{' in > text, rather than \begin{group}, but not barf when I want it (to > denote macro arguments)? What do you mean exactly? I don't understand. Do you have in mind your- to-be-new-syntax or just regular latex? Cheers, Tomek ivowel@gmail.com wrote: > I am still playing around with what kind of syntax I would like to > mark up my documents. > > Are there equivalent long substitutes for { and } when they are not > used to describe arguments to functions? Something like \begin{group} > and \end{gr...

'[OFF]' as in 'offensive'???
Hi, given that 'off-topicness' is indicated as '[OT]' and taking a look at those postings that started the threads indicated as '[OFF]' (which may both be seen as being somewhat offensive) may lead to the conclusion that '[OFF]' stands for offensiveness. I don't think that this is the intended meaning so what actually *does* '[OFF]' mean? I never came across that abbreviation before (although I have been around on the USENET for quite some time) but maybe it is worth knowing? Josef 'Jupp' Schugt NOTE: mails >100 KiB are ignored -- German edition of comp.lang.ruby FAQ - http://oss.erdfunkstelle.de/ruby/ Aurox Linux - http://qurl.net/7q | http://qurl.net/7r - Firefox Thunderbird - http://qurl.net/7s | http://qurl.net/7t - Liferea Enigmail - http://qurl.net/7u | http://qurl.net/7v - GnuPG [Josef 'Jupp' Schugt <jupp@gmx.de>, 2004-12-10 23.20 CET] > I don't think that this is the intended meaning so what actually *does* > '[OFF]' mean? Off-topic. ...

Re: '^=' and '~='?
Duckhye, According to the doc ( http://xrl.us/befwjx ) they, and one other set of characters, and the mnemonic 'NE' all represent 'NOT EQUAL'. Art ------- On Wed, 11 Feb 2009 16:52:40 -0600, Duck-Hye Yang <dyang@CHAPINHALL.ORG> wrote: >Hello, >What is the difference between '^=' and '~='? > >Thanks, >Duckhye ...

'\rightarrow' in text problem
I'm using the following code, however I want to include a '\rightarrow'. If I include this in the string I get an error because the latex interpreter doesn't work. How can I keep the 'p*' in latex but include a '\rightarrow' too? text('Interpreter','latex',... 'String','${p*}$',... 'Position',[0,0.347],... 'FontSize',12) Thanks, J. "J G" wrote in message <iodufk$n7d$1@fred.mathworks.com>... > I'm using the following code, however I want to include a '\rightarrow'. If I include this in the string I get an error because the latex interpreter doesn't work. How can I keep the 'p*' in latex but include a '\rightarrow' too? > > text('Interpreter','latex',... > 'String','${p*}$',... > 'Position',[0,0.347],... > 'FontSize',12) > > Thanks, J. Hi J, I'm not sure I understand your problem exactly, does this work for you? text(x,y,'$p* \rightarrow$','Interpreter','latex',... 'FontSize',12) because it works for me. Is this not what you want? Wayne "Wayne King" <wmkingty@gmail.com> wrote in message <ioebvb$e2f$1@fred.mathworks.com>... > "J G" wrote in message <iodufk$n7d$1@fred.mathworks.com>... > > I'm using the following code, however I want to include a '\rightarrow'. If ...

Like '' & '' & ''
Having this description column in a table "Cookies, peanut butter sandwich, regular" When using this WHERE clause: WHERE (((Food_Data.Description) Like "*Butter*" & "*Peanut*")); I dont get any results, however when using it this way round WHERE (((Food_Data.Description) Like "*Peanut*" & "*Butter*")); I get the row as expected. I assume that the query looks for them in order. Is there a way i can get around this and make the query search for both keywords no matter which order i ype them in. Thanks Dave [posted and mailed] SkunkDave (dave_casserly@totalise.co.uk) writes: > Having this description column in a table > > "Cookies, peanut butter sandwich, regular" > > > When using this WHERE clause: > > WHERE (((Food_Data.Description) Like "*Butter*" & "*Peanut*")); > > I dont get any results, however when using it this way round > > WHERE (((Food_Data.Description) Like "*Peanut*" & "*Butter*")); > > I get the row as expected. > > I assume that the query looks for them in order. The query looks for a string that matches the pattern "*Peanut**Butter*", so obviously it's not going to match "Butter Peanut". As suggested by Harald Albrech this works: WHERE (Food_Data.Description Like "*Butter*" or Food_Data..Description Like "*Peanut...

Failed opening required 'PEAR.php' (include_path='F:\www\include') in F:\Program Files\PHP\PEAR\Text\CAPTCHA.php on line 22
Hi, Guys=EF=BC=8Cwhen I run my site ,I got some errors: Warning: require_once(PEAR.php) [function.require-once]: failed to open stream: No such file or directory in F:\Program Files\PHP\PEAR \Text\CAPTCHA.php on line 22 Fatal error: require_once() [function.require]: Failed opening required 'PEAR.php' (include_path=3D'F:\www\include') in F:\Program Files \PHP\PEAR\Text\CAPTCHA.php on line 22 It appears that it cann't find the pear.php ,but i checked my dir,and this file was there,and also I have my php.ini file checked,the include_path=3Dinclude_path=3D".;F:\Program Files\PHP\pear;F:\www \include" ,it looks all right,was there anything I have missed in the config file?Or something wrong ? Wish somebody can help me out. Thanks, Mikay >Warning: require_once(PEAR.php) [function.require-once]: failed to >open stream: No such file or directory in F:\Program Files\PHP\PEAR >\Text\CAPTCHA.php on line 22 >Fatal error: require_once() [function.require]: Failed opening >required 'PEAR.php' (include_path='F:\www\include') in F:\Program Files >\PHP\PEAR\Text\CAPTCHA.php on line 22 So where is the pear.php file? >It appears that it cann't find the pear.php ,but i checked my dir,and >this file was there,and also I have my php.ini file checked,the >include_path=include_path=".;F:\Program Files\PHP\pear;F:\www >\include" ,it looks all right,was there anything I have missed in the >config...

Static text box in GUI won't refresh after string is changed unless mouse is moving
Hello, We're building a Matlab GUI for interacting with a Simulink model that is running in the background. The idea is to execute the Simulink model from the GUI, use uicontrols to modify certain parameters and display model results using both axes and text boxes, while the Simulink model is running in the background. To obtain the results from the Simulink model we are using event listeners. In the GUI file there is a localEventListener callback function that provides updated results at every timestep. Within this function, we update the data for the lines that are plotted in the axes and also update the strings displayed in static text boxes. For reference, here is an idea of how the localEventListener function looks like: function localEventListener(block, eventdata) .... % get the application data hf = findall(0,'Tag','figure1'); handles = guidata(hf); .... % Get the data currently being displayed on the axis xdata = get(handles.ad.lineHandles,'XData'); ydata = get(handles.ad.lineHandles,'YData'); .... % Get the simulation data newdata(1) = block.InputPort(1).Data(1); newdata(2) = block.InputPort(1).Data(2); .... newXData = [xdata newdata(1)]; newYData = [ydata newdata(2)]; .... % Display the new data set set(handles.ad.lineHandles,'XData',newXData,'YData',newYData); .... % Update the max value of the dataset maxVal=max(newYData) set(handles.edit1,'String', num2str(maxVal)); The problem we are facing is that...

Return value of 'each', 'current', 'next', 'end'
These array functions: 'each', 'current', 'next', 'end' They return a reference or a value. let's say I want to modify the last value of an array without iterating through all of them. I would do: <? end($array) ; current($array)="new value" ; ?> is that posible?? Thanks. Hermann.Richter@gmail.com wrote: > These array functions: 'each', 'current', 'next', 'end' > > They return a reference or a value. They return values. > let's say I want to modify the last value of an array without iterating > through all of them. > > I would do: > > <? > end($array) ; > current($array)="new value" ; > ?> > > is that posible?? Try end($array);$array[key($array)] = "new value"; Chung Leong wrote: > Hermann.Richter@gmail.com wrote: > > These array functions: 'each', 'current', 'next', 'end' > > > > They return a reference or a value. > > They return values. > > > let's say I want to modify the last value of an array without iterating > > through all of them. > > > > I would do: > > > > <? > > end($array) ; > > current($array)="new value" ; > > ?> > > > > is that posible?? > > Try > > end($array); > $array[key($array)] = "new value"; $array[(sizeof($array...

How to display a 'displacement field' or 'displacement vector' in Matlab?
Hi All, I am doing a non-rigid image registration project, and just came across a question that how to display a 'displacement field' or 'displacement vector' in Matlab? I found some similar question at: http://www.mathworks.com.au/matlabcentral/answers/8030-displacement-vector without a good solution. Basically, we have got two two images (2D or 3D) in same size. And by using the registration we can get a 'displacement field' which will transform the coordinates of one image to another. Examples of the graph of the 'displacement field' is here in 2D: http://i56.tinypic.com/13z2wlj.png [IMG]http://i56.tinypic.com/13z2wlj.png[/IMG] and in 3D: http://www.dir-lab.com/Templates/ReferenceData.html I am not asking a complete set of Matlab codes or implementation. But could you guys give me any ideas where should I start or maybe some existing codes I can borrow to develop my own. Thanks very much! Aaronne. Just by another quick search, it seems here is a good solution: http://www.mathworks.com/matlabcentral/fx_files/27047/2/content/doc/html/BsplineDoc.html Any other better ideas? Cheers, Aaronne. If you already have the displacement field and want to plot it, take a look at QUIVER command. Bruno "Bruno Luong" <b.luong@fogale.findmycountry> wrote in message <j356hm$36u$1@newscl01ah.mathworks.com>... > If you already have the displacement field and want to plot it, take a look at QUIVER command...

calling '!' or 'system' in matlab different than same functions from shell
Hi everyone, When I am in the shell (tcsh) on my Mac (outside Matlab), I am able to use the command line utility ncdump to read netcdf format files (http://www.unidata.ucar.edu/software/netcdf/): ncdump -h testfile.nc However, in Matlab, the same command preceded by the '!' (or using 'system') generates an error: >> !ncdump -h test.nc dyld: Library not loaded: /opt/local/lib/libnetcdf.7.dylib Referenced from: /opt/local/bin/ncdump Reason: Incompatible library version: ncdump requires version 10.0.0 or later, but libnetcdf.7.dylib provides version 9.0.0 Trace/BPT trap ncdump -h test.nc: Trace/breakpoint trap I'm unable to figure out why the command preceded by '!' in Matlab does not invoke the same libraries as the command in the shell. Following a previous listserve thread, I've changed the matlab startup path so it should search through the same directories as the shell, but that doesn't help. I'm running Matlab R2012a (7.14.0.739) on Mac OS 10.7.3. Thanks for any suggestions, Andrew ...

Text 'distorts' when renaming a file
Using KDE3.3.2 SuSE 9.2. When I rename a file the text goes strange http://img.photobucket.com/albums/v186/skynet99/3711f6d8.jpg I had this problem with the KDE that comes with SuSE 9.2 also. No other graphics problems elswhere. Buggs Bunny wrote: > Using KDE3.3.2 SuSE 9.2. > > When I rename a file the text goes strange > http://img.photobucket.com/albums/v186/skynet99/3711f6d8.jpg > > I had this problem with the KDE that comes with SuSE 9.2 also. > No other graphics problems elswhere. Try sending a little pic taken with ksnapshot set to region instead of a blurry photo and we may be able to see what you are talking about . If that is a screen clip and the blur is the problem then I would throw away the whole system. -- regards, andrew ...

'icfb' versus 'seultra'/'sedsm'

Change Matlab search path in 'Matlab's engine" environment under Mac OS
Hi! Im interfacing Matlab from a C Application. Example: Engine *ep = engOpen("\0"); engEvalString(ep, "path(path,'/some/path/to/m-file')"); engEvalString(ep, "SOME_FUNCTION_IN_A_M_FILE"); I cannot use the path function prior to call a '.m' outside of the current search paths. Either sending 'cd' doesn't work. Does anybody know how to call a custom '.m' outside the default search paths? ...

Re: '^=' and '~='? #8
32 libname erap 'T:\9SOW\AHRQ_E Rap\Data\E-RAP Data\December 2008'; NOTE: Libref ERAP was successfully assigned as follows: Engine: V9 Physical Name: T:\9SOW\AHRQ_E Rap\Data\E-RAP Data\December 2008 33 options nodate nonumber formdlim='-'; 34 /* Program: E-RAP Load XML to SAS with map v2.sas*/ 35 /************************************************************************* 36 Update path and file name below. 37 **************************************************************************/ 38 %let data_path = T:\9SOW\AHRQ_E Rap\Data\E-RAP Data\December 2008\Raw XML Data; 39 %let input_file = 035151_12232008.xml; 40 **************************************************************************; 41 42 filename xml_lib "&data_path.\&input_file."; 43 filename SXLEMAP "&data_path.\xml_map_v2.map"; 44 libname xml_lib xml xmlmap=SXLEMAP access=READONLY; NOTE: Libref XML_LIB was successfully assigned as follows: Engine: XML Physical Name: XML_LIB 45 libname erap "&data_path"; NOTE: Libref ERAP was successfully assigned as follows: Engine: V9 Physical Name: T:\9SOW\AHRQ_E Rap\Data\E-RAP Data\December 2008\Raw XML Data 46 * Read XML file into SAS data set; 47 data erap.Sabino; 48 set xml_lib.E_rap_episode_record; 49 run; ERROR: There is an illegal character in the entity name. encountered during XMLInput pa...

'If' or 'Switch' or any ideas
Hello, I am trying to do something that didn't look hard at first, but ended up being a pain in the %$#. Here is my problem. I have three arrays. A={'cc', 'aa', 'gg'} B={'dd', 'ee', 'ff'} C={'bb', 'cc', 'dd', 'ff', 'aa', 'ee'} What I want to do is to see if the items from 'A' and 'B' are found in 'C'. And if so, I need to know which items are. Then, I want to assign a specific value to the items that are present in both arrays, something like if one item or more is found in 'C', assign the value '1', and if one item or more from 'B' is found in 'C', assign the value '2'. So in the end, I would like to have something like that: C={0 1 2 2 1 2}, since 'bb' was not found, 'cc' was found in 'A', 'dd' was found 'B', 'ff' was found 'B', 'aa' was found in 'A', and 'ee' was found in 'B'. I thought about using 'switch', but I don't know how I could 'test' for multiple items at the same time. Any ideas ? Thank you very much in advance for your precious insights, "JS " <jean-sebastien.provost@umontreal.ca> wrote in message news:iu0scc$hra\$1@newscl01ah.mathworks.com... > Hello, > > I am trying to do something that didn't look hard at first, but ended up > being a pain i...

Re: '^=' and '~='? #5
Sorry, I posted under the wrong subject. My friend asked me to post this, she got an error message in processing the XML file. I don't have much experience in working with XML file. Any help is appreciated! On Thu, Feb 12, 2009 at 10:29 AM, Akshaya Nathilvar < akshaya.nathilvar@gmail.com> wrote: > 32 libname erap 'T:\9SOW\AHRQ_E Rap\Data\E-RAP Data\December 2008'; > NOTE: Libref ERAP was successfully assigned as follows: > Engine: V9 > Physical Name: T:\9SOW\AHRQ_E Rap\Data\E-RAP Data\December 2008 > 33 options nodate nonumber formdlim='-'; > 34 /* Program: E-RAP Load XML to SAS with map v2.sas*/ > 35 > /************************************************************************* > 36 Update path and file name below. > 37 > **************************************************************************/ > 38 %let data_path = T:\9SOW\AHRQ_E Rap\Data\E-RAP Data\December > 2008\Raw XML Data; > 39 %let input_file = 035151_12232008.xml; > 40 > **************************************************************************; > 41 > 42 filename xml_lib "&data_path.\&input_file."; > 43 filename SXLEMAP "&data_path.\xml_map_v2.map"; > 44 libname xml_lib xml xmlmap=SXLEMAP access=READONLY; > NOTE: Libref XML_LIB was successfully assigned as follows: > Engine: XML > Physical Name: XML_LIB &g...

Re: '^=' and '~='? #2
No difference that I know of ... SAS has all sorts of things you can use as operators. LT,< LE,<= ne, ^=, ~=, <> in some contexts at least eq, = <<< these actually DO have a difference or two, particularly as relates to assignment I don't recall where the full list is, but http://support.sas.com/onlinedoc/913/getDoc/en/lrdict.hlp/a000202951.htm#a000290128has the list of them usable in WHERE statements (which, IIRC, is slightly greater than that of normal code, as it allows for SQL syntax in ways the rest of SAS does not). -Joe On Wed, Feb 11, 2009 at 4:52 PM, Duck-Hye Yang <dyang@chapinhall.org> wrote: > Hello, > What is the difference between '^=' and '~='? > > Thanks, > Duckhye > ...

'image' and 'imagesc'
Why is it, that 'image' and 'imagesc' change the y - direction of my data? Or an even more important question, how do I prevent them from doing so? This is the command I use: imagesc(x_vec,y_vec,rez_fld); with: x_vec = 3:0.5:7.5 y_vec = 1:-0.5:-1 rez_fld = size(x_vec) x size(y_vec) greetz, kai Kai: <SNIP wants it upside down... > Why is it, that 'image' and 'imagesc' change the y - > direction of my data... because: that's how you typically look at pics - top/left to bottom/right % now, img=load('clown'); imagesc(img.X); axis image; % -or- % axis ij; disp('change y'); pause; axis xy; % -or- % set(gca,'ydir','normal'); % then disp('get it all right...') pause; imagesc(flipud(img.X)); axis image; axis xy; % for more information help axis; us ...

Web resources about - Change the text of a 'Static Text' - comp.soft-sys.matlab

Resources last updated: 3/31/2016 3:13:23 AM