• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EST 08:35
CET 14:35
KST 22:35
  • 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
RSL Revival - 2025 Season Finals Preview8RSL Season 3 - Playoffs Preview0RSL Season 3 - RO16 Groups C & D Preview0RSL Season 3 - RO16 Groups A & B Preview2TL.net Map Contest #21: Winners12
Community News
Weekly Cups (Jan 5-11): Clem wins big offline, Trigger upsets0$21,000 Rongyi Cup Season 3 announced (Jan 22-Feb 7)12Weekly Cups (Dec 29-Jan 4): Protoss rolls, 2v2 returns7[BSL21] Non-Korean Championship - Starts Jan 103SC2 All-Star Invitational: Jan 17-1822
StarCraft 2
General
Weekly Cups (Jan 5-11): Clem wins big offline, Trigger upsets Weekly Cups (Dec 29-Jan 4): Protoss rolls, 2v2 returns Spontaneous hotkey change zerg Chinese SC2 server to reopen; live all-star event in Hangzhou SC2 All-Star Invitational: Jan 17-18
Tourneys
$21,000 Rongyi Cup Season 3 announced (Jan 22-Feb 7) WardiTV Winter Cup WardiTV Mondays SC2 AI Tournament 2026 OSC Season 13 World Championship
Strategy
Simple Questions Simple Answers
Custom Maps
Map Editor closed ?
External Content
Mutation # 508 Violent Night Mutation # 507 Well Trained Mutation # 506 Warp Zone Mutation # 505 Rise From Ashes
Brood War
General
I would like to say something about StarCraft Potential ASL qualifier breakthroughs? BGH Auto Balance -> http://bghmmr.eu/ BW General Discussion StarCraft & BroodWar Campaign Speedrun Quest
Tourneys
[Megathread] Daily Proleagues [BSL21] Grand Finals - Sunday 21:00 CET [BSL21] Non-Korean Championship - Starts Jan 10 SLON Grand Finals – Season 2
Strategy
Game Theory for Starcraft Simple Questions, Simple Answers Current Meta [G] How to get started on ladder as a new Z player
Other Games
General Games
Awesome Games Done Quick 2026! Mechabellum Beyond All Reason Stormgate/Frost Giant Megathread General RTS Discussion Thread
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
Vanilla Mini Mafia Mafia Game Mode Feedback/Ideas
Community
General
US Politics Mega-thread Russo-Ukrainian War Thread European Politico-economics QA Mega-thread Things Aren’t Peaceful in Palestine Trading/Investing Thread
Fan Clubs
White-Ra Fan Club
Media & Entertainment
Anime Discussion Thread
Sports
2024 - 2026 Football Thread
World Cup 2022
Tech Support
Computer Build, Upgrade & Buying Resource Thread
TL Community
The Automated Ban List TL+ Announced
Blogs
My 2025 Magic: The Gathering…
DARKING
Physical Exercise (HIIT) Bef…
TrAiDoS
Life Update and thoughts.
FuDDx
How do archons sleep?
8882
James Bond movies ranking - pa…
Topin
Customize Sidebar...

Website Feedback

Closed Threads



Active: 2134 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 States14900 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
RongYI Cup
11:00
Qualifier 2
WardiTV1038
OGKoka 293
Rex145
BRAT_OK 128
3DClanTV 50
LiquipediaDiscussion
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
Lowko398
OGKoka 274
Rex 145
BRAT_OK 124
StarCraft: Brood War
Rain 3870
Hyuk 1762
Horang2 1078
EffOrt 949
ZerO 741
Larva 724
Snow 656
Mini 484
BeSt 481
actioN 471
[ Show more ]
ggaemo 369
Light 332
firebathero 213
Soma 146
Barracks 134
Pusan 125
Rush 114
Zeus 92
Mind 91
Sharp 88
JYJ 70
Leta 62
sorry 61
Sea.KH 58
Aegong 45
910 43
Movie 31
Free 31
Mong 30
HiyA 28
JulyZerg 26
soO 25
zelot 22
Yoon 20
Terrorterran 14
Noble 12
Bale 10
GoRush 9
Sacsri 7
Icarus 5
Dota 2
qojqva748
ODPixel235
XcaliburYe126
canceldota65
Counter-Strike
x6flipin823
markeloff4
Super Smash Bros
Westballz28
Other Games
singsing2014
Gorgc1890
B2W.Neo1387
Pyrionflax350
crisheroes306
hiko285
Sick124
Fuzer 24
ZerO(Twitch)13
Organizations
Other Games
gamesdonequick4733
StarCraft: Brood War
UltimateBattle 1415
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 14 non-featured ]
StarCraft 2
• StrangeGG 55
• naamasc226
• AfreecaTV YouTube
• intothetv
• Kozan
• IndyKCrew
• LaughNgamezSOOP
• Migwel
• sooper7s
StarCraft: Brood War
• BSLYoutube
• STPLYoutube
• ZZZeroYoutube
League of Legends
• TFBlade1048
• Stunt804
Upcoming Events
Wardi Open
25m
Monday Night Weeklies
3h 55m
WardiTV Invitational
22h 25m
WardiTV Invitational
1d 22h
The PondCast
2 days
OSC
2 days
OSC
3 days
All Star Teams
4 days
INnoVation vs soO
sOs vs Scarlett
uThermal 2v2 Circuit
4 days
All Star Teams
5 days
MMA vs DongRaeGu
Rogue vs Oliveira
[ Show More ]
Sparkling Tuna Cup
5 days
OSC
5 days
Replay Cast
6 days
Wardi Open
6 days
Liquipedia Results

Completed

Proleague 2026-01-11
Big Gabe Cup #3
NA Kuram Kup

Ongoing

C-Race Season 1
IPSL Winter 2025-26
BSL 21 Non-Korean Championship
CSL 2025 WINTER (S19)
OSC Championship Season 13
Underdog Cup #3
eXTREMESLAND 2025
SL Budapest Major 2025
ESL Impact League Season 8
BLAST Rivals Fall 2025
IEM Chengdu 2025
PGL Masters Bucharest 2025

Upcoming

Escore Tournament S1: W4
Acropolis #4
IPSL Spring 2026
Bellum Gens Elite Stara Zagora 2026
HSC XXVIII
Rongyi Cup S3
Thunderfire SC2 All-star 2025
Nations Cup 2026
BLAST Open Spring 2026
ESL Pro League Season 23
ESL Pro League Season 23
PGL Cluj-Napoca 2026
IEM Kraków 2026
BLAST Bounty Winter 2026
BLAST Bounty Winter Qual
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.