Professional Documents
Culture Documents
PRODUCTLIFCYCLRPORT
INIGHTINTOTHINTRNTOFTHING
KewordorPhrae
PTCMathcadHackhortcutthatwillmake
ourlifeeaier:PartII
LukeWetrook Tweet Curtir 21
PulihedonFeruar19,2015
Welcometotheecondintallmentofmtwo-partlogonlittle-knownhortcutinPTC
Mathcad.Latweek,Icoveredomehortcutthatarecertainlueful,ut,ifImhonet,
maeaitontheoringide.utImreallexcitedaoutthiweek.Iveavedtheet
forlat,Ithink.Oka,Iwonttarranlonger(ouknow,IdontthinkIveeveractuall
uedthewordtarreforefirttimeforeverthing).Letdigin!
Ctrl+MInertMatrix
Thimanoteanewhortcutforomeofou,epeciallifouarefamiliarwithPTCMathcad15andolder.
InthelegacPTCMathcadverion,itwamoredifficulttoinertamatrix.YoueitherhadtogototheMatrix
ToolarorpreCtrl+M,whichwouldopenadialogueoxinwhichouwouldenterthedimenionofour
matrix.ComparethattoPTCMathcadPrime,whereoucaneitheruetheMatrice/Taleta,orjutpre
theleftquareracket[tocreatea11matrixandthenjutinertrowandcolumnaougo.PTC
MathcadPrimemakematrixediting/manipulationmucheaier.ThimaketheCtrl+Mhortcutalmot
ueleinPrimeoroIthought.Thetroulewithuing[tocreateamatrixithatitcannotretroactivel
turnanumerintoamatrix.WhatImeanithatifIenteranumerorvarialeorfunction,utthenrealize
thatitactuallneedtogoinideamatrix,preing[willnotencloethatvalueinmatrixracketecaue
thatithehortcutothtoinitializeamatrixandalotowritevectorucript.uthereiwhereCtrl+Mi
agamechanger.Forthelongettime,Ithoughtthatretroactivelencloingavalueinmatrixracketwa
impoile,utthendicoveredthatifIprepacetocopethevarialeornumerorexpreionthatI
wanttoencloeinamatrix,IcanthenpreCtrl+Mtodoo!
Ctrl+hift+UcalingOperatora.k.a.ImplicitMultiplicationOperator
IfItpe4kginPTCMathcadPrime,Iwillgetthefollowing:
Noticethatopencircleinetween4andkg?ecauevariale,unit,and
contantcannottartwithnumer,PTCMathcadknowthatwhenItpeletter
afteranumer,Imutetringtocalewhatevervariale,unit,orcontantIhave
tpedthatnumer,oitautomaticallinertamultiplicationoperatorthationlviilewhentheregion
iactivecalledthecalingoperatororImplicitMultiplicationoperator.Youcan,ofcoure,explicitlinert
theMultiplicationoperator,aelow:
uttome,thateemtoclutterexpreionoftentime.Iperonallprefer,moreoften
http://blogs.ptc.com/2015/02/19/ptcmathcadhacksshortcutsthatwillmakeyourlifeeasierpartii/ 1/7
23/04/2017 PTCMathcadHacksShortcutsthatwillmakeyourlifeeasier:PartII|ProductLifecycleReport
uttome,thateemtoclutterexpreionoftentime.Iperonallprefer,moreoften
thannot,implicitmultiplication;itlookcleanertome.utPTCMathcaddoent
automaticallinertthiinviileoperatoretweenvarialeecaueitdoentknowwhereonevariale
endandthenextegin.Whattodo?AmIforcedtojutuethenormalmultiplicationoperator?Ithoughto
eforewritingthilog,utitturnoutthatIcanjuttpeCtrl+hift+UtoinertthecalingOperator.Of
coure,thiinotaeaajuttping4kgoreven4*kg,utifourelikemeandouwanttoavoid,
wherepoileandprudent,theclutterofthemultiplicationoperator,Ctrl+hift+Ucanreallcomeinhand.
F5/F9CalculateingleRegion
Youmahaveknownaoutthionealread,utittookmeawhileecauetherenouttonintheUIfor
calculatingaingleregion.Ofcoure,thereauttonforrecalculatingtheentireworkheet,alongwiththe
accompaningkeoardhortcutCtrl+F5.utwhatifIdontneedtorecalculateeverthing,jutoneregion?
AllIhavetodoiclickontheregionIwanttocalculateandpreF5orF9,whichwillthenrecalculatethat
region,awellaanrelatedregion(i.e.anregionthatdependonthecalculationinthatparticular
region).
Ctrl+JConvertWordtoProgrammingKeword
Thiioneofmfavoriteecaueitremovetheneedtomemorizemanothernon-intuitivekeoard
hortcutinprogramming.WhenuingtheProgrammingfunctionalitofPTCMathcad,thereareman
keword(e.g.if,for,while,return),utoucantimpltpethem;oumuteitherinertthemfromthe
Rionormemorizetheuniquekeoardhortcutforeachkeword.Notideal.utCtrl+Javeoufromall
ofthatunneceartroule.impltpethekewordouwantandpreCtrl+Jregardleofwhichkeword,
andthetpedwordwilleconvertedintotheappropriateProgrammingkeword.ItalotlikeuingCtrl+Gto
turnaLatinletterintoaGreekletter.
Ctrl+QCcleThroughLael
AmajorenhancementofPTCMathcadPrimeincompariontolegacPTCMathcaditheailittolael
mathematicalelementavariale,unit,function,contant,etc.Iwontgetintotheenefithere,utit
aprettigdeal.However,itcaneahaletohavetoueourmouetonavigatetotheLaelmenuever
timeouwanttoapplalaeltoomething.PreingCtrl+Qhelpthiallowingoutocclethroughlael
tpe.Thicandefinitelavetime,inceoudonthavetoueourmoue,utitintthemotconvenient
hortcuteither,inceoumahavetopreCtrl+Qmultipletimetoarriveatthelaelouwant.utthat
ringmetomlathortcutfortodalog.CanIgetadrumroll,pleae?
Ctrl+UApplUnitLael
Thiimall-timefavoritehortcut(iitweirdthatIhavefavorite?)fortworeaon:(1)Idicoveredthi
hortcut(ouwontfinditinanofthedocumentation,atleatnotthatIveeen),and(2)Ithinkitthemot
uefulhortcutofanthatwevetalkedaoutofar.Thiilikemagictome,madeallthemoremteriou
thefactthatitnotdocumentedanwhere.ImnotevenurehowIdicoveredit.Honetl,IthinkIjut
thought,Wouldntitecooliftherewereahortcuttolaelomethingaaunit?Itcouldeomethinglike
Ctrl+U.AndthenItriedit,and,loandehold!itworked.Naturall,thatleadtothequetion,arethere
hortcutforallofthelaeltpe?AllIcanaithatifthereare,Ihaveettofindthem.
Onceagain,Ihopethoewerehelpfulforouall.Andifoutumleuponanotherecrethortcut,pleae
letuknow!
TroutourfreeforlifeverionPTCMathcadxpreandtetoutthehortcuttoda.
QuickLink
PTCMathcadxpre
Freeforlifeverion
http://blogs.ptc.com/2015/02/19/ptcmathcadhacksshortcutsthatwillmakeyourlifeeasierpartii/ 2/7
23/04/2017 PTCMathcadHacksShortcutsthatwillmakeyourlifeeasier:PartII|ProductLifecycleReport
PTCMathcadFeature
90econdvideo
Reource
Training,livedemo,freeworkheet
harethiarticleon
earlierpot laterpot
ThientrwapotedinMathcad,TheInidecoop,Tip&Trickandtaggedmultiplicationoperator,PTC
Mathcad,PTCMathcadPrime.ookmarkthepermalink.
Raikoa:
Feruar23,2015at4:50am
Greatarticle,andfinallonethatconvincewithfactandnotwithmarketingpin.
Repl
tuartruffa:
April1,2015at11:41am
TotallAgreewithourcontrol-JcommentdefinitelfallintotheReallUeful(*)categorand
makeenteringprogramomucheaier.
Aformatrice,Ilikethenewmethodofcreatingandextendingmatrice.Itmakeitcognitiveleaier
toentermallmatriceaargumentaitkeepthefingeronthekeoard,whichmeanthatiti
morelikelthatnetedarraargumentwillappealtouer(well,oneatleatuer!).
WhatireallneededtomakearraReallUefulare:
Properworkheet-levelnetedarraindexing(eg,A[1,2,3aoppoedtoA[1[2[3orA[1[2,3),
ThemptArrathiwouldimplifmanofmworkheetallowingmetoinitializeanarrato
emptandaddrow/columntoitwithouthavingtohandlethepecialcaeofthefirtrowtomake
uequenttack/augmentoperationconformale.
ProperMulti-DimenionalArra(MDA)upport,egtheailittocreate3Darra,extractlice,join
MDA,applfunctiontoMDA(eg,calarexpanionoftandardfunctionorapplicationof
aggregatefunctiontooneormoredimenion.Thiwouldgiveconideralmoreflexiilitwhen
workingonmulti-dimenionaldataet(eg,temperatureina3Dgrid).Iwrotemownlirarto
provideomeoftheefeature(Itnot*that*difficulttodo)utIfounditirritatinghavingtowritethe
indiceafunctionargument(avector)ratherthanuingtheuperiorucriptmethod(WhiltImat
it,Idaloliketenorupercriptnotationandthefunctionalactiveucriptnamingconvention(eg,
Jn(x)ratherthanJ(n,x)).
-
http://blogs.ptc.com/2015/02/19/ptcmathcadhacksshortcutsthatwillmakeyourlifeeasierpartii/ 3/7
23/04/2017 PTCMathcadHacksShortcutsthatwillmakeyourlifeeasier:PartII|ProductLifecycleReport
-
Imnoturewhattheenefitof(Prime)Laelveru(Mathcad)Mathtlei,though.IueMath
tlealottohelpditinguihtpeofvariale,withonetleformatrice,functionname
epeciallvariantformoronethatconflictwithauilt-infunctionname{Imtoolaz,andfartoo
muchofamathematicianratherthanprogrammer,toeotheredwith
xtremelLongFunctionNameThatHoldGreatignificanceAndConcealAMriadOfutletie
(AMotignificantAndRevealingArgumentDecription)
whenIcanjuttpef(x)andhavemvariantappearinoldlue}.
ImakeevengreaterueofTexttlejutaouteverworkheetIwriteuethem.
KindRegard,
tuart
(*)Ye,IreadThomatheTanknginetorietomchildren.
Repl
AndreaRinglera:
Decemer30,2015at7:02pm
Uefulinformation.WhereiPartI?
Repl
1. LukeWetrooka:
Januar4,2016at10:24am
Gladouenjoedthepot,Andrea!YoucanfindPartIhere.
Repl
Enteryourcommenthere...
PTCProductlog
PTCCreo
PTCIntegrit
PTCMathcad
erviceLeader
http://blogs.ptc.com/2015/02/19/ptcmathcadhacksshortcutsthatwillmakeyourlifeeasierpartii/ 4/7
23/04/2017 PTCMathcadHacksShortcutsthatwillmakeyourlifeeasier:PartII|ProductLifecycleReport
taConnected
ucrietoeNew
our@email.com
Alltorie
PTCMathcadtorie
ConnectwithPTCMathcad
Relatedtorie
Our3FavoriteUeCaeforPTCMathcadGatewa
HowMathIHelpingOneManPuhtheoundarieofAcouticMuic
TheTopFiveMotPopularlogin2015
IGot99Lightul,utMDecorationAintDone
PTCMathcad15.0M040inowavailale
UpcomingPTCMathcadPrimeDemontration
What3Word
@PTC_MathcadonTwitter
venifoutriedour30-datrialinear'pat,oucandoitagainwithPTCMathcadPrime4.0.
#Mathoftwaretwitter.com/i/we/tatu/81daago
Calculatingthequarerootofmfearoflood.#ngineeringMath#logptc.co/2khN30aRWY
http://t.co/CvNYZxGjw1daago
PTCMathcadPrime4.0inowavailale!ptc.co/oNYh309DIZ1http://t.co/8LVCrR6u1daago
Follow@PTC_Mathcad
Archive
Januar2016
Decemer2015
Novemer2015
Octoer2015
eptemer2015
Augut2015
Jul2015
June2015
Ma2015
April2015
March2015
Feruar2015
http://blogs.ptc.com/2015/02/19/ptcmathcadhacksshortcutsthatwillmakeyourlifeeasierpartii/ 5/7
23/04/2017 PTCMathcadHacksShortcutsthatwillmakeyourlifeeasier:PartII|ProductLifecycleReport
Feruar2015
Januar2015
Decemer2014
Novemer2014
Octoer2014
eptemer2014
Augut2014
Jul2014
June2014
Ma2014
April2014
March2014
Feruar2014
Januar2014
Decemer2013
Novemer2013
Octoer2013
eptemer2013
Augut2013
Jul2013
June2013
Ma2013
April2013
March2013
Feruar2013
Januar2013
Decemer2012
Novemer2012
Octoer2012
eptemer2012
Augut2012
Jul2012
June2012
Ma2012
April2012
March2012
Feruar2012
Januar2012
Decemer2011
Novemer2011
Octoer2011
eptemer2011
Augut2011
Jul2011
June2011
Ma2011
April2011
March2011
Feruar2011
Januar2011
Decemer2010
Novemer2010
Octoer2010
eptemer2010
Augut2010
Jul2010
http://blogs.ptc.com/2015/02/19/ptcmathcadhacksshortcutsthatwillmakeyourlifeeasierpartii/ 6/7
23/04/2017 PTCMathcadHacksShortcutsthatwillmakeyourlifeeasier:PartII|ProductLifecycleReport
Jul2010
June2010
Ma2010
April2010
March2010
Feruar2010
Januar2010
June2009
Copright2015PTCInc.
PoweredWordPre.comVIP
http://blogs.ptc.com/2015/02/19/ptcmathcadhacksshortcutsthatwillmakeyourlifeeasierpartii/ 7/7