• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EST 09:44
CET 15:44
KST 23:44
  • 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
ByuL: The Forgotten Master of ZvT29Behind the Blue - Team Liquid History Book19Clem wins HomeStory Cup 289HomeStory Cup 28 - Info & Preview13Rongyi Cup S3 - Preview & Info8
Community News
Team Liquid Map Contest - Preparation Notice0Weekly Cups (Feb 23-Mar 1): herO doubles, 2v2 bonanza1Weekly Cups (Feb 16-22): MaxPax doubles0Weekly Cups (Feb 9-15): herO doubles up2ACS replaced by "ASL Season Open" - Starts 21/0258
StarCraft 2
General
How do you think the 5.0.15 balance patch (Oct 2025) for StarCraft II has affected the game? ByuL: The Forgotten Master of ZvT Nexon's StarCraft game could be FPS, led by UMS maker Team Liquid Map Contest - Preparation Notice Weekly Cups (Feb 23-Mar 1): herO doubles, 2v2 bonanza
Tourneys
PIG STY FESTIVAL 7.0! (19 Feb - 1 Mar) RSL Season 4 announced for March-April Sparkling Tuna Cup - Weekly Open Tournament SEL Doubles (SC Evo Bimonthly) WardiTV Team League Season 10
Strategy
Custom Maps
Publishing has been re-enabled! [Feb 24th 2026] Map Editor closed ?
External Content
The PondCast: SC2 News & Results Mutation # 515 Together Forever Mutation # 514 Ulnar New Year Mutation # 513 Attrition Warfare
Brood War
General
It's March 3rd CasterMuse Youtube Recent recommended BW games Soma Explains: JD's Unrelenting Aggro vs FlaSh TvZ is the most complete match up
Tourneys
[Megathread] Daily Proleagues BWCL Season 64 Announcement The Casual Games of the Week Thread [LIVE] [S:21] ASL Season Open Day 1
Strategy
Soma's 9 hatch build from ASL Game 2 Fighting Spirit mining rates Simple Questions, Simple Answers Zealot bombing is no longer popular?
Other Games
General Games
Nintendo Switch Thread Battle Aces/David Kim RTS Megathread Diablo 2 thread Path of Exile Online Quake Live Config Editor Tool
Dota 2
The Story of Wings Gaming 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
Mafia Game Mode Feedback/Ideas Vanilla Mini Mafia TL Mafia Community Thread
Community
General
Things Aren’t Peaceful in Palestine US Politics Mega-thread Russo-Ukrainian War Thread UK Politics Mega-thread NASA and the Private Sector
Fan Clubs
The IdrA Fan Club
Media & Entertainment
[Req][Books] Good Fantasy/SciFi books [Manga] One Piece Anime Discussion Thread
Sports
2024 - 2026 Football Thread Formula 1 Discussion TL MMA Pick'em Pool 2013
World Cup 2022
Tech Support
Laptop capable of using Photoshop Lightroom?
TL Community
The Automated Ban List
Blogs
Just Watchers: Why Some Only…
TrAiDoS
Unintentional protectionism…
Uldridge
ASL S21 English Commentary…
namkraft
Life Update and thoughts.
FuDDx
How do archons sleep?
8882
Customize Sidebar...

Website Feedback

Closed Threads



Active: 2583 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 States14907 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
Next event in 10h 16m
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
BRAT_OK 103
StarCraft: Brood War
Sea 48460
Britney 38424
Bisu 5521
Hyuk 1563
firebathero 836
actioN 681
Mini 394
Soma 253
Shuttle 220
Rush 207
[ Show more ]
PianO 180
Soulkey 155
ZerO 150
Mong 96
Dewaltoss 94
Backho 70
ToSsGirL 64
Sea.KH 64
JulyZerg 58
[sc1f]eonzerg 39
Free 28
GoRush 25
sSak 23
zelot 21
scan(afreeca) 20
910 19
ajuk12(nOOB) 15
Nal_rA 14
Rock 12
SilentControl 11
soO 10
Terrorterran 5
Dota 2
qojqva1708
XcaliburYe115
Counter-Strike
fl0m2286
olofmeister1757
x6flipin304
Heroes of the Storm
crisheroes360
Other Games
singsing2359
Gorgc2315
Liquid`RaSZi1262
B2W.Neo1033
hiko494
Lowko293
Hui .229
Fuzer 199
ArmadaUGS121
Mew2King60
oskar56
ZerO(Twitch)15
Organizations
Counter-Strike
PGL80
StarCraft: Brood War
lovetv 20
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 16 non-featured ]
StarCraft 2
• StrangeGG 30
• AfreecaTV YouTube
• intothetv
• Kozan
• IndyKCrew
• LaughNgamezSOOP
• LUISG 0
• Migwel
• sooper7s
StarCraft: Brood War
• blackmanpl 24
• FirePhoenix3
• Michael_bg 3
• BSLYoutube
• STPLYoutube
• ZZZeroYoutube
League of Legends
• TFBlade718
Upcoming Events
PiGosaur Cup
10h 16m
Replay Cast
18h 16m
Replay Cast
1d 9h
The PondCast
1d 19h
KCM Race Survival
1d 19h
WardiTV Winter Champion…
1d 21h
Replay Cast
2 days
Ultimate Battle
2 days
Light vs ZerO
WardiTV Winter Champion…
2 days
Classic vs Nicoract
herO vs YoungYakov
ByuN vs Gerald
Clem vs Krystianer
Replay Cast
3 days
[ Show More ]
CranKy Ducklings
3 days
WardiTV Winter Champion…
3 days
MaxPax vs Spirit
Bunny vs Rogue
Cure vs SHIN
Solar vs Zoun
Replay Cast
4 days
Sparkling Tuna Cup
4 days
WardiTV Winter Champion…
4 days
Replay Cast
5 days
Replay Cast
5 days
Monday Night Weeklies
6 days
Replay Cast
6 days
Liquipedia Results

Completed

Proleague 2026-03-02
PiG Sty Festival 7.0
Underdog Cup #3

Ongoing

KCM Race Survival 2026 Season 1
Jeongseon Sooper Cup
Spring Cup 2026
WardiTV Winter 2026
Nations Cup 2026
ESL Pro League S23 Stage 1&2
PGL Cluj-Napoca 2026
IEM Kraków 2026
BLAST Bounty Winter 2026
BLAST Bounty Winter Qual
eXTREMESLAND 2025

Upcoming

ASL Season 21: Qualifier #1
ASL Season 21: Qualifier #2
ASL Season 21
Acropolis #4 - TS6
Acropolis #4
IPSL Spring 2026
CSLAN 4
HSC XXIX
uThermal 2v2 2026 Main Event
Bellum Gens Elite Stara Zagora 2026
RSL Revival: Season 4
NationLESS Cup
Asian Champions League 2026
IEM Atlanta 2026
PGL Astana 2026
BLAST Rivals Spring 2026
CCT Season 3 Global Finals
IEM Rio 2026
PGL Bucharest 2026
Stake Ranked Episode 1
BLAST Open Spring 2026
ESL Pro League S23 Finals
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 © 2026 TLnet. All Rights Reserved.