whatsold en R2012a

***************************

12 functions « has been removed » :

delaunay3: DELAUNAY3 has been removed. Use DELAUNAY instead.

dsearch: DSEARCH has been removed. Use DelaunayTri/nearestNeighbor instead.

griddata3: GRIDDATA3 has been removed. Use GRIDDATA instead.

tsearch: TSEARCH has been removed. Use DelaunayTri/pointLocation instead.

imfeature: IMFEATURE has been removed. Use REGIONPROPS instead.

isbw: ISBW has been removed.

isgray: ISGRAY has been removed.

isind: ISIND has been removed.

isrgb: ISRGB has been removed.

uintlut: UINTLUT has been removed. Use INTLUT instead.

imview: IMVIEW has been removed. Use IMTOOL instead.

ipttable: IPTTABLE has been removed. Use UITABLE instead.

***************************

6 functions « deprecated » :

audiorecorder: audiorecorder Properties (Deprecated):

mexdebug: MEXDEBUG has been deprecated, use DBMEX instead.

movefile: NOTE 5: ‘writable’ is being deprecated, but still supported for backwards

path2rc: PATH2RC is deprecated and has been renamed to SAVEPATH. PATH2RC still

helpwin: of multi-page help text. Note: this calling sequence is deprecated and

actxserver: The following syntaxes are deprecated and will not become obsolete. They

***************************

12 functions « is obsolete » :

sshow: (This function is obsolete. Use MAKESHOW and PLAYSHOW instead.)

isglobal: ISGLOBAL is obsolete and will be discontinued in a future

uigetfile: NOTE: THIS SYNTAX IS OBSOLETE AND WILL BE IGNORED
uigetfile: NOTE: THIS SYNTAX IS OBSOLETE AND WILL BE IGNORED.

uiputfile: NOTE: THIS SYNTAX IS OBSOLETE AND WILL BE IGNORED.
uiputfile: NOTE: THIS SYNTAX IS OBSOLETE AND WILL BE IGNORED.

wizard: WIZARD is obsolete and may be removed from future versions.

cremez: CREMEZ is obsolete. CREMEZ still works but may be removed in the future.

freqzplot: FREQZPLOT is obsolete. FREQZPLOT still works but may be

remez: REMEZ is obsolete. REMEZ still works but may be removed in the future.

remezord: REMEZORD is obsolete. REMEZORD still works but may be removed in the

specplot: SPECPLOT is obsolete. SPECPLOT still works but may be removed in the

spectrum: NOTE: The function form of SPECTRUM is obsolete. It still works but may

***************************

40 functions « will be removed in a future release »
:

audiorecorder: which will be removed in a future release:

avifile: AVIFILE will be removed in a future release. Use VIDEOWRITER instead.

mmreader: MMREADER will be removed in a future release. Use VIDEOREADER instead.

avifinfo: AVIFINFO will be removed in a future release. Use VIDEOREADER

aviinfo: AVIINFO will be removed in a future release. Use VIDEOREADER instead.

aviread: AVIREAD will be removed in a future release. Use VIDEOREADER instead.

wavplay: WAVPLAY will be removed in a future release. Use AUDIOPLAYER instead.

wavrecord: WAVRECORD will be removed in a future release. Use AUDIORECORDER

codetoolsswitchyard: This function will be removed in a future release.

maxNumCompThreads: maxNumCompThreads will be removed in a future release. Please remove

docsearch: DOCSEARCH will be removed in a future release.

helpbrowser: HELPBROWSER will be removed in a future release. Use DOC instead.

helpdesk: HELPDESK will be removed in a future release. Use DOC instead.

helpwin: HELPWIN will be removed in a future release. Use DOC instead.

info: INFO will be removed in a future release. Use DOC instead.

support: SUPPORT will be removed in a future release.

whatsnew: WHATSNEW will be removed in a future release.

exifread: will be removed in a future release. Please use IMFINFO instead.

str2rng: STR2RNG will be removed in a future release.

wk1const: WK1CONST will be removed in a future release.

wk1finfo: WK1FINFO will be removed in a future release.

wk1read: WK1READ will be removed in a future release.

wk1wrec: WK1WREC will be removed in a future release.

wk1write: WK1WRITE will be removed in a future release.

nargchk: NARGCHK will be removed in a future release. Use NARGINCHK instead.

nargoutchk: NARGOUTCHK will be removed in a future release.

mimofr: MIMOFR will be removed in a future release. Please discontinue

interp1: Some features of INTERP1 will be removed in a future release.

interp2: Some features of INTERP2 will be removed in a future release.

interp3: Some features of INTERP3 will be removed in a future release.

interpn: Some features of INTERPN will be removed in a future release.

cholinc: CHOLINC will be removed in a future release. Use ICHOL instead.
cholinc: CHOLINC(X,’inf’) will be removed in a future release.

luinc: LUINC will be removed in a future release. Use ILU instead.

findstr: FINDSTR will be removed in a future release. Use STRFIND instead.

isstr: ISSTR will be removed in a future release. Use ISCHAR instead.

setstr: SETSTR will be removed in a future release. Use CHAR instead.

str2mat: STR2MAT will be removed in a future release. Use CHAR instead.

strmatch: STRMATCH will be removed in a future release. Use STRNCMP instead.

strvcat: STRVCAT will be removed in a future release. Use CHAR instead.

***************************

73 functions « undocumented » :

functionhintsfunc: This undocumented function may be removed in a future release.

makemcode: This undocumented function may change in a future release.

xlate_demos: undocumented function which will be removed in future releases.

capturescreen: undocumented helper function which may be removed in a future release of MATLAB

hgfeval: This undocumented helper function is for internal use.

primitivevertexpicker: This function is undocumented and may change in a future release.

isdfgate: This is an undocumented function and may be removed in a future release.

doclink: This function is undocumented and reserved for internal use. It may be

online_concatenator: This function is undocumented and reserved for internal use. It may be

parfor_M_check: This function is undocumented and reserved for internal use. It may be

parfor_endpoint_check: This function is undocumented and reserved for internal use. It may be

parfor_range_check: This function is undocumented and reserved for internal use. It may be

parfor_sliced_fcnhdl_check: This function is undocumented and reserved for internal use. It may be

adddatadlg: This undocumented function may be removed in a future release.

addsubplot: This undocumented function may be removed in a future release.

enableplottoolbuttons: This undocumented function may be removed in a future release.

getfigurefordesktopclient: This undocumented function may be removed in a future release.

getplottool: This undocumented function may be removed in a future release.

javaAddLsnrsToFigure: This undocumented function may be removed in a future release.

javaGetHandles: This undocumented function may be removed in a future release.

makedisplaynames: This undocumented function may be removed in a future release.

setupplotbrowser: This undocumented function may be removed in a future release.

hgconvertunits: This function is undocumented and will change in a future release

contours: This undocumented function may be removed in a future release.

makebars: This undocumented function may be removed in a future release.

parseplotapi: This undocumented function may be removed in a future release

usev6plotapi: This undocumented function may be removed in a future release

activateuimode: This function is undocumented and will change in a future release

adduimode: This function is undocumented and will change in a future release

awtcreate: This function is undocumented and will change in a future release

awtinvoke: This function is undocumented and will change in a future release

desktopmenufcn: This function is undocumented and will change in a future release

editmenufcn: This function is undocumented and will change in a future release

fignamer: This function is undocumented and will change in a future release

filemenufcn: This function is undocumented and will change in a future release

getptr: This function is undocumented and will change in a future release

getuimode: This function is undocumented and will change in a future release

hasuimode: This function is undocumented and will change in a future release

helpmenufcn: This function is undocumented and will change in a future release

insertmenufcn: This function is undocumented and will change in a future release

isactiveuimode: This function is undocumented and will change in a future release

javacomponent: This function is undocumented and will change in a future release

makemenu: This function is undocumented and will change in a future release

overobj: This function is undocumented and will change in a future release

remapfig: This function is undocumented and will change in a future release

setptr: This function is undocumented and will change in a future release

tabdlg: This function is undocumented and will change in a future release

tipoftheday: This function is undocumented and will change in a future release

toolsmenufcn: This function is undocumented and will change in a future release

uiclearmode: This function is undocumented and will change in a future release

uicontainer: This function is undocumented and will change in a future release

uiflowcontainer: This function is undocumented and will change in a future release

uigetmodemanager: This function is undocumented and will change in a future release

uigettool: This function is undocumented and will change in a future release

uigridcontainer: This function is undocumented and will change in a future release

uiload: This function is undocumented and will change in a future release

uimode: This function is undocumented and will change in a future release

uirestore: This function is undocumented and will change in a future release

uisuspend: This function is undocumented and will change in a future release

uitab: This function is undocumented and will change in a future release

uitabgroup: This function is undocumented and will change in a future release

uitoolfactory: This function is undocumented and will change in a future release

uitree: This function is undocumented and will change in a future release

uitreenode: This function is undocumented and will change in a future release

uiundo: This function is undocumented and will change in a future release

viewmenufcn: This function is undocumented and will change in a future release

winmenu: This function is undocumented and will change in a future release

iptgate: This is an undocumented function and may be removed in a future release.

imuitoolsgate: This is an undocumented function and may be removed in a future release.

utctrlCheckLogNames: This function is undocumented and will change in a future release.

imageplotfunc: This is an undocumented function and may be removed in a future release.

completefreqresp: This is an undocumented function.

psdfreqvec: This undocumented function may be removed in a future release.

***************************

6 functions « Internal use only » :

indentmcode: This file is for internal use only and is subject to change without

mdbfileonpath: This file is for internal use only and is subject to change without

is2D: Internal use only. This function may be removed in a future release.

resetplotview: Internal use only. This function may be removed in a future release.

getTranslatedString: This function is for internal use only. It may be removed in a future

getTranslatedStringcell: This function is for internal use only. It may be removed in a future

J’avais fait pareil pour comparer la R2012b avec la R2011a dans un précédent ticket le 3 février 2011:

http://blog.developpez.com/matlab4geek/c2793/r2011a/what-is-old-new-in-r2011a/

Ça permet d’un coup d’œil de voir les changements entre les releases MATLAB et d’anticiper les potentiels problèmes de compatibilité.

Ordre de l’alphabet

En utilisant ce trick:

Soustraire la chaine de caractère au nombre 96 :

'a'-96

ou en la soustrayant à la chaine de caractère contenant l’accent grave (touche AltGr + 7 sur les claviers français) :

'a'-'`'

et ça marche avec les mots :

>> ‘matlab’-96

ans =

13 1 20 12 1 2

si vous avez des majuscules dans le mot , utilisez lower:

s = ‘MATLAB’
output = lower(s)-96

Pourquoi 96?

faites :

char(0:100)

pour faire apparaître les caractères de 0 à 100 .

vous voyez que la lettre ‘a’ apparaît en 97ème position, ce qui est confirmé par :

>> char(97)

ans =

a

voilà c’était le tips and trick du jour!

bsxfun et detrend

Déjà que se passe t’il si on fait A-mean(A)

Error using –
Matrix dimensions must agree.

… normal .

Avec deux for-loops:

A =[1 2 ; 3 4]
meansis =mean(A)
for ii= 1:2
for jj = 1:2
Result(ii,jj) =A(ii,jj)-meanis(jj);
end
end

et sans boucle for , voilà 2 solutions qui claquent!

Avec bsxfun :

Result = bsxfun(@minus,A,mean(A))

plus d’infos sur la doc de bsxfun: ici

ou avec detrend :

Result = detrend(A,’constant’)

Info qu’on trouve dans la doc : y = detrend(x,’constant’) removes the mean value from vector x or, if x is a matrix, from each column of the matrix.

Voilà c’était le tip and trick du jour.

  • A noter dans vos agendas :

Du 21 au 23 août 2012,Yair Altman fait un training à Genève en Suisse. Voici l’agenda :

• Aug 21 – Matlab performance tuning
• Aug 22 – Advanced Matlab GUI
• Aug 23 – Using Java in Matlab (inc. extra advanced GUI)

Vous pouvez vous inscrire en écrivant à altmany(at)gmail.com

Démarrer la R2011b sous Ubuntu 12.04

Le 3 mai 2011 je donnais la ligne de commande pour démarrer la R2011a sous Ubuntu 11.04 :
MATLAB sous ubuntu 11.04

pour la R2011b sous Ubuntu 12.04 voici la commande

sudo ln -s /lib/x86_64-linux-gnu/libc-2.15.so /lib64/libc.so.6

A noter que même en R2012a cette distribution n’est pas officillement supportée:
System Requirements – Release 2012a

polyval et num2str

Imginons que vous ayez un vecteur ayant des nombres compris entre 0 et 9 :

>> vec  = [3 4 8 0 9 1]

pour le transformer en nombre 348091 une solution très rapide est d’utiliser polyval:

>> number = polyval(vec,10)

ce qui donne :
number =

348091

Et vous l’aurez compris que pour revenir au vecteur on va utiliser num2str:

vec2 = num2str(number)-'0'

Là il y a un méga trick avec la soustraction du ‘0’!

Cleve Moler récompensé

J’ai été très heureux d’apprendre que Cleve Moler :

clevve moler

le cofondateur de TMW et donc le papa de MATLAB ait été récompensé cette année : 2012 Computer Pioneer Award Recipient.

pioneer

Une autre bonne surprise c’est la création de son nouveau blog : Cleve’s Corner . J’ai adoré lire son article sur les matrices de Fibonacci . J’ai dévoré son investigation , et franchement je me suis dit mais quelle analyse exceptionnelle ! un grand Monsieur.