• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EST 08:55
CET 14:55
KST 22:55
  • Home
  • Forum
  • Calendar
  • Streams
  • Liquipedia
  • Features
  • Store
  • EPT
  • TL+
  • StarCraft 2
  • Brood War
  • Smash
  • Heroes
  • Counter-Strike
  • Overwatch
  • Liquibet
  • Fantasy StarCraft
  • TLPD
  • StarCraft 2
  • Brood War
  • Blogs
Forum Sidebar
Events/Features
News
Featured News
TL.net Map Contest #21: Winners11Intel X Team Liquid Seoul event: Showmatches and Meet the Pros10[ASL20] Finals Preview: Arrival13TL.net Map Contest #21: Voting12[ASL20] Ro4 Preview: Descent11
Community News
[TLMC] Fall/Winter 2025 Ladder Map Rotation4Weekly Cups (Nov 3-9): Clem Conquers in Canada4SC: Evo Complete - Ranked Ladder OPEN ALPHA8StarCraft, SC2, HotS, WC3, Returning to Blizzcon!45$5,000+ WardiTV 2025 Championship7
StarCraft 2
General
[TLMC] Fall/Winter 2025 Ladder Map Rotation Mech is the composition that needs teleportation t Weekly Cups (Nov 3-9): Clem Conquers in Canada Craziest Micro Moments Of All Time? SC: Evo Complete - Ranked Ladder OPEN ALPHA
Tourneys
Constellation Cup - Main Event - Stellar Fest Tenacious Turtle Tussle Sparkling Tuna Cup - Weekly Open Tournament $5,000+ WardiTV 2025 Championship Merivale 8 Open - LAN - Stellar Fest
Strategy
Custom Maps
Map Editor closed ?
External Content
Mutation # 499 Chilling Adaptation Mutation # 498 Wheel of Misfortune|Cradle of Death Mutation # 497 Battle Haredened Mutation # 496 Endless Infection
Brood War
General
BW General Discussion FlaSh on: Biggest Problem With SnOw's Playstyle Terran 1:35 12 Gas Optimization BGH Auto Balance -> http://bghmmr.eu/ [ASL20] Ask the mapmakers — Drop your questions
Tourneys
[BSL21] RO32 Group D - Sunday 21:00 CET [BSL21] RO32 Group C - Saturday 21:00 CET [ASL20] Grand Finals [Megathread] Daily Proleagues
Strategy
Current Meta PvZ map balance How to stay on top of macro? Soma's 9 hatch build from ASL Game 2
Other Games
General Games
Nintendo Switch Thread Stormgate/Frost Giant Megathread Should offensive tower rushing be viable in RTS games? Path of Exile Dawn of War IV
Dota 2
Official 'what is Dota anymore' discussion
League of Legends
Heroes of the Storm
Simple Questions, Simple Answers Heroes of the Storm 2.0
Hearthstone
Deck construction bug Heroes of StarCraft mini-set
TL Mafia
TL Mafia Community Thread SPIRED by.ASL Mafia {211640}
Community
General
US Politics Mega-thread Russo-Ukrainian War Thread Things Aren’t Peaceful in Palestine Canadian Politics Mega-thread The Games Industry And ATVI
Fan Clubs
White-Ra Fan Club The herO Fan Club!
Media & Entertainment
[Manga] One Piece Anime Discussion Thread Movie Discussion! Korean Music Discussion Series you have seen recently...
Sports
2024 - 2026 Football Thread Formula 1 Discussion NBA General Discussion MLB/Baseball 2023 TeamLiquid Health and Fitness Initiative For 2023
World Cup 2022
Tech Support
SC2 Client Relocalization [Change SC2 Language] Linksys AE2500 USB WIFI keeps disconnecting Computer Build, Upgrade & Buying Resource Thread
TL Community
The Automated Ban List
Blogs
Dyadica Gospel – a Pulp No…
Hildegard
Coffee x Performance in Espo…
TrAiDoS
Saturation point
Uldridge
DnB/metal remix FFO Mick Go…
ImbaTosS
Reality "theory" prov…
perfectspheres
Customize Sidebar...

Website Feedback

Closed Threads



Active: 1346 users

MATLAB thread - Page 3

Forum Index > General Forum
Post a Reply
Prev 1 2 3 4 Next All
AoN.DimSum
Profile Blog Joined September 2008
United States2983 Posts
September 27 2008 20:31 GMT
#41
i pmed u the info
by my idol krokkis : "U better hope Finland wont have WCG next year and that I wont gain shitloads of skill, cause then I will wash ur mouth with soap, little man."
clazziquai
Profile Blog Joined October 2007
6685 Posts
Last Edited: 2008-10-26 23:04:18
October 26 2008 23:04 GMT
#42
Guys I have a question with functions. I have absolutely no idea how to do this one.

"Perhaps the most famous equation in physics is:
E=mc^2" which relates energy E to mass m. The speed of light in a vacuum = c. Which is 2.9979*10^8 m/s

and it asks me to create a function called energy to find the energy corresponding to a given masss in kg. your result will be in joules since 1 kg m^2/s^2 = 1 joule

#1 Sea.Really Fan / #1 Nesh Fan / Terran Forever~
brjdrb
Profile Blog Joined November 2007
United States577 Posts
October 26 2008 23:10 GMT
#43
i've used it b4, but i'm not that good at it. i can only do the basics
Stork's biggest fan
GrayArea
Profile Blog Joined December 2007
United States872 Posts
October 26 2008 23:17 GMT
#44
I use matlab in physiology class. It's meh.
Kang Min Fighting!
Raithed
Profile Blog Joined May 2007
China7078 Posts
October 26 2008 23:19 GMT
#45
On September 27 2008 17:39 clazziquai wrote:
LOL

damn...

so far it's not that bad. I fell asleep in one of the lectures that had to do with the project due so I need to review it.
So I have no idea haha

I'm on Matrices and vectors btw...

so this was your reason in making a thread in general as opposed to blog. you want someone to teach you how.
prOxi.swAMi
Profile Blog Joined November 2004
Australia3091 Posts
October 26 2008 23:21 GMT
#46
Why you'd introduce students to computing using matlab I have no idea. Pascal is the best learner's language ever.
Oh no
Meta
Profile Blog Joined June 2003
United States6225 Posts
October 26 2008 23:23 GMT
#47

%%%%%%%%%%%%
function energy = holycrap(mass)
c = 2.9979*10^8
energy = mass*c^2
%%%%%%%%%%%%


then you just type
holycrap(mass) and it calculates it based on what mass you put in
good vibes only
KlaCkoN
Profile Blog Joined May 2007
Sweden1661 Posts
Last Edited: 2008-10-26 23:31:38
October 26 2008 23:25 GMT
#48
function Energy(m)
implicit none
double precision Energy, m, c

c=2.9979d8
Energy=m*c^2

return
end


Fortran syntacs but if I remember correctly MATLAB is similar when it comes to stuff like this. Just make a text file with this and I think it should work, at least it's somewhere to start. Maybe the variable declaration is unnecessary?
What this means is that when you in you program write Energy(m) this function will be called with whatever value the variable m currently has. The function will then be executed and calculate m*c^2 and give the resulting value to the variable Energy, meaning Energy(m) takes on the value of m*c^2.

Looking at other posted functions it seems like matlab syntax was indeed a bit different, use the others :p THe reasoning behind them is the same though
"Voice or no voice the people can always be brought to the bidding of their leaders ... All you have to do is tell them they are being attacked and denounce the pacifists for lack of patriotism and exposing the country to danger."
KOFgokuon
Profile Blog Joined August 2004
United States14899 Posts
October 26 2008 23:27 GMT
#49
lol it really doesn't get any easier than that
clazziquai
Profile Blog Joined October 2007
6685 Posts
October 26 2008 23:27 GMT
#50
On October 27 2008 08:19 Raithed wrote:
Show nested quote +
On September 27 2008 17:39 clazziquai wrote:
LOL

damn...

so far it's not that bad. I fell asleep in one of the lectures that had to do with the project due so I need to review it.
So I have no idea haha

I'm on Matrices and vectors btw...

so this was your reason in making a thread in general as opposed to blog. you want someone to teach you how.


you, my friend, are wrong. i may have fallen asleep, but did everything by MYSELF on the project which i got a 100 for.

sorry ntnt
#1 Sea.Really Fan / #1 Nesh Fan / Terran Forever~
jgad
Profile Blog Joined March 2008
Canada899 Posts
Last Edited: 2008-10-26 23:29:31
October 26 2008 23:27 GMT
#51
On October 27 2008 08:04 clazziquai wrote:
Guys I have a question with functions. I have absolutely no idea how to do this one.

"Perhaps the most famous equation in physics is:
E=mc^2" which relates energy E to mass m. The speed of light in a vacuum = c. Which is 2.9979*10^8 m/s

and it asks me to create a function called energy to find the energy corresponding to a given masss in kg. your result will be in joules since 1 kg m^2/s^2 = 1 joule



function definitions in matlab are straightforward. For this you'd do something like

+ Show Spoiler +

function [eofm] = energy(m)
%define a function, "eofm" is an output, "energy" is the name of the function, and "m" is a variable taken into the function to do stuff with inside

c = 299792458;
% define 'c', speed of light

eofm = m*c^;
% do the calculation and set the output 'eofm' equal to it.


lots of functions, it seems ^^
콩까지마
KlaCkoN
Profile Blog Joined May 2007
Sweden1661 Posts
October 26 2008 23:28 GMT
#52
On October 27 2008 08:21 prOxi.swAMi wrote:
Why you'd introduce students to computing using matlab I have no idea. Pascal is the best learner's language ever.


Never used pascal, but matlab is reaaaly user friendly in my opinion. You can do quite fun stuff quite quickly. Not exactly quick code though, so I don't understand what kind of guys that are using it proffesionally?
"Voice or no voice the people can always be brought to the bidding of their leaders ... All you have to do is tell them they are being attacked and denounce the pacifists for lack of patriotism and exposing the country to danger."
jgad
Profile Blog Joined March 2008
Canada899 Posts
October 26 2008 23:35 GMT
#53
On October 27 2008 08:28 KlaCkoN wrote:
Show nested quote +
On October 27 2008 08:21 prOxi.swAMi wrote:
Why you'd introduce students to computing using matlab I have no idea. Pascal is the best learner's language ever.


Never used pascal, but matlab is reaaaly user friendly in my opinion. You can do quite fun stuff quite quickly. Not exactly quick code though, so I don't understand what kind of guys that are using it proffesionally?


I work in physics research and it's the sort of thing a lot of people have around. The guys who are doing number intensive stuff like quantum chemical computations, they tend to write their own code in C++ for obvious performance reasons. Lots of other people, though, who simply have to do big analysis on large data sets, use it quite a bit. For things up to a few million data points, give or take an order of magnitude depending on what you're working on, it's quick and simple and handy. I've used it to do simple backprojection calculations on CAT scan data, to analyse materials and prototype testing data, to collate and mass-crunch big data sets. The applications are endless.
콩까지마
KlaCkoN
Profile Blog Joined May 2007
Sweden1661 Posts
Last Edited: 2008-10-26 23:51:45
October 26 2008 23:50 GMT
#54
On October 27 2008 08:35 jgad wrote:
Show nested quote +
On October 27 2008 08:28 KlaCkoN wrote:
On October 27 2008 08:21 prOxi.swAMi wrote:
Why you'd introduce students to computing using matlab I have no idea. Pascal is the best learner's language ever.


Never used pascal, but matlab is reaaaly user friendly in my opinion. You can do quite fun stuff quite quickly. Not exactly quick code though, so I don't understand what kind of guys that are using it proffesionally?


I work in physics research and it's the sort of thing a lot of people have around. The guys who are doing number intensive stuff like quantum chemical computations, they tend to write their own code in C++ for obvious performance reasons. Lots of other people, though, who simply have to do big analysis on large data sets, use it quite a bit. For things up to a few million data points, give or take an order of magnitude depending on what you're working on, it's quick and simple and handy. I've used it to do simple backprojection calculations on CAT scan data, to analyse materials and prototype testing data, to collate and mass-crunch big data sets. The applications are endless.


Alright thanks
My experience is obviously quite limited. (To a 3 month q.chem project :p) (So a few million data points seem like an awfully small number )
Never used C++ either but it is on par with fortran and python and such then? when it comes to speed.
"Voice or no voice the people can always be brought to the bidding of their leaders ... All you have to do is tell them they are being attacked and denounce the pacifists for lack of patriotism and exposing the country to danger."
dongfeng
Profile Blog Joined May 2008
731 Posts
October 26 2008 23:56 GMT
#55
help function

thunk
Profile Blog Joined March 2008
United States6233 Posts
October 26 2008 23:59 GMT
#56
You definitely have to learn how to use all the comptuer programs because that's where the education that's useful for work is. You can't really do much (in terms of a job) without being able to use the industry level tools, and learning the computer software is definitely an important part.

It's like trying to play Starcraft without knowing any of the builds.
Every time Jung Myung Hoon builds a vulture, two probes die. || My post count was a palindrome and I was never posting again.
DrainX
Profile Blog Joined December 2006
Sweden3187 Posts
Last Edited: 2008-10-27 00:01:16
October 26 2008 23:59 GMT
#57
Matlab is nice but I hate how their arrays start with 1 instead of 0 ;_;

I did a project in Matlab two years ago where we modeled how pollution would spread in the air using fluid motion partial differential equations.
imDerek
Profile Blog Joined August 2007
United States1944 Posts
October 27 2008 00:06 GMT
#58
using it on my EE labs
Least favorite progamers: Leta, Zero, Mind, Shine, free, really <-- newly added
clazziquai
Profile Blog Joined October 2007
6685 Posts
October 27 2008 00:11 GMT
#59
On October 27 2008 09:06 imDerek wrote:
using it on my EE labs


Electrical Engineering?
#1 Sea.Really Fan / #1 Nesh Fan / Terran Forever~
fight_or_flight
Profile Blog Joined June 2007
United States3988 Posts
October 27 2008 00:11 GMT
#60
Matlab is an amazing peice of software. So is Mathematica.

Where I work, we are going to be using Simulink, which is an addon to matlab, to start work on software-defined radios. A software defined-radio is, in its purest form, a D/A converter connected to an antenna. Then you can have a single device that acts as a cellphone, wifi, GPS, or any other type of radio you want.

Simulink models dynamic systems, such as communications systems or control systems. It can take models, or chunks matlab embedded or C code, and you can create an entire radio out of it. It can then compile that entire model onto an FPGA or DSP chip.

Matlab is THE software package used for DSP applications.
Do you really want chat rooms?
Prev 1 2 3 4 Next All
Please log in or register to reply.
Live Events Refresh
Kung Fu Cup
12:00
2025 Monthly #3: Day 1
Reynor vs GuMihoLIVE!
ByuN vs ShoWTimE
RotterdaM523
TKL 182
Rex146
IntoTheiNu 103
SteadfastSC88
Liquipedia
OSC
11:30
Mid Season Playoffs
Cure vs SpiritLIVE!
Krystianer vs Percival
WardiTV446
Liquipedia
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
RotterdaM 523
Reynor 227
TKL 182
Rex 146
SteadfastSC 88
StarCraft: Brood War
Calm 4495
Rain 2923
Bisu 2701
Hyuk 2015
Horang2 1304
Flash 797
Soma 464
Backho 369
Stork 340
Rush 261
[ Show more ]
Pusan 197
Last 133
Soulkey 115
JulyZerg 104
Barracks 79
hero 58
sSak 33
zelot 31
Aegong 28
sas.Sziky 24
Killer 23
Terrorterran 11
Noble 9
Hm[arnc] 7
Dota 2
Gorgc2155
qojqva1591
Dendi1136
XcaliburYe181
BananaSlamJamma86
Counter-Strike
olofmeister911
allub158
Super Smash Bros
Mew2King127
Other Games
B2W.Neo990
hiko295
DeMusliM285
Pyrionflax260
Sick170
Fuzer 164
Hui .86
QueenE46
Organizations
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 15 non-featured ]
StarCraft 2
• Adnapsc2 9
• AfreecaTV YouTube
• intothetv
• Kozan
• IndyKCrew
• LaughNgamezSOOP
• Migwel
• sooper7s
StarCraft: Brood War
• BSLYoutube
• STPLYoutube
• ZZZeroYoutube
Dota 2
• C_a_k_e 1641
• WagamamaTV400
League of Legends
• Nemesis1689
• TFBlade702
Upcoming Events
Tenacious Turtle Tussle
9h 6m
The PondCast
20h 6m
RSL Revival
20h 6m
Solar vs Zoun
MaxPax vs Bunny
Kung Fu Cup
22h 6m
WardiTV Korean Royale
22h 6m
PiGosaur Monday
1d 11h
RSL Revival
1d 20h
Classic vs Creator
Cure vs TriGGeR
Kung Fu Cup
1d 22h
CranKy Ducklings
2 days
RSL Revival
2 days
herO vs Gerald
ByuN vs SHIN
[ Show More ]
Kung Fu Cup
2 days
IPSL
3 days
ZZZero vs rasowy
Napoleon vs KameZerg
BSL 21
3 days
Tarson vs Julia
Doodle vs OldBoy
eOnzErG vs WolFix
StRyKeR vs Aeternum
Sparkling Tuna Cup
3 days
RSL Revival
3 days
Reynor vs sOs
Maru vs Ryung
Kung Fu Cup
3 days
WardiTV Korean Royale
3 days
BSL 21
4 days
JDConan vs Semih
Dragon vs Dienmax
Tech vs NewOcean
TerrOr vs Artosis
IPSL
4 days
Dewalt vs WolFix
eOnzErG vs Bonyth
Wardi Open
4 days
Monday Night Weeklies
5 days
WardiTV Korean Royale
5 days
The PondCast
6 days
Liquipedia Results

Completed

Proleague 2025-11-07
Stellar Fest: Constellation Cup
Eternal Conflict S1

Ongoing

C-Race Season 1
IPSL Winter 2025-26
KCM Race Survival 2025 Season 4
SOOP Univ League 2025
YSL S2
BSL Season 21
BLAST Rivals Fall 2025
IEM Chengdu 2025
PGL Masters Bucharest 2025
Thunderpick World Champ.
CS Asia Championships 2025
ESL Pro League S22
StarSeries Fall 2025
FISSURE Playground #2
BLAST Open Fall 2025
BLAST Open Fall Qual

Upcoming

SLON Tour Season 2
BSL 21 Non-Korean Championship
Acropolis #4
IPSL Spring 2026
HSC XXVIII
RSL Offline Finals
WardiTV 2025
RSL Revival: Season 3
META Madness #9
BLAST Bounty Winter 2026
BLAST Bounty Winter 2026: Closed Qualifier
eXTREMESLAND 2025
ESL Impact League Season 8
SL Budapest Major 2025
TLPD

1. ByuN
2. TY
3. Dark
4. Solar
5. Stats
6. Nerchio
7. sOs
8. soO
9. INnoVation
10. Elazer
1. Rain
2. Flash
3. EffOrt
4. Last
5. Bisu
6. Soulkey
7. Mini
8. Sharp
Sidebar Settings...

Advertising | Privacy Policy | Terms Of Use | Contact Us

Original banner artwork: Jim Warren
The contents of this webpage are copyright © 2025 TLnet. All Rights Reserved.