• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EST 00:02
CET 06:02
KST 14:02
  • 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 (Dec 29-Jan 4): Protoss rolls, 2v2 returns2[BSL21] Non-Korean Championship - Starts Jan 103SC2 All-Star Invitational: Jan 17-1822Weekly Cups (Dec 22-28): Classic & MaxPax win, Percival surprises3Weekly Cups (Dec 15-21): Classic wins big, MaxPax & Clem take weeklies3
StarCraft 2
General
Weekly Cups (Dec 29-Jan 4): Protoss rolls, 2v2 returns SC2 All-Star Invitational: Jan 17-18 Weekly Cups (Dec 22-28): Classic & MaxPax win, Percival surprises Chinese SC2 server to reopen; live all-star event in Hangzhou Starcraft 2 Zerg Coach
Tourneys
OSC Season 13 World Championship uThermal 2v2 Circuit WardiTV Mondays $5,000+ WardiTV 2025 Championship $100 Prize Pool - Winter Warp Gate Masters Showdow
Strategy
Simple Questions Simple Answers
Custom Maps
Map Editor closed ?
External Content
Mutation # 507 Well Trained Mutation # 506 Warp Zone Mutation # 505 Rise From Ashes Mutation # 504 Retribution
Brood War
General
I would like to say something about StarCraft BGH Auto Balance -> http://bghmmr.eu/ Data analysis on 70 million replays Empty tournaments section on Liquipedia A cwal.gg Extension - Easily keep track of anyone
Tourneys
[BSL21] Grand Finals - Sunday 21:00 CET [BSL21] Non-Korean Championship - Starts Jan 10 [Megathread] Daily Proleagues SLON Grand Finals – Season 2
Strategy
Game Theory for Starcraft Current Meta Simple Questions, Simple Answers [G] How to get started on ladder as a new Z player
Other Games
General Games
Nintendo Switch Thread Awesome Games Done Quick 2026! Should offensive tower rushing be viable in RTS games? General RTS Discussion Thread Beyond All Reason
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 Survivor II: The Amazon Sengoku Mafia
Community
General
US Politics Mega-thread Russo-Ukrainian War Thread Trading/Investing Thread The Big Programming Thread Canadian Politics Mega-thread
Fan Clubs
White-Ra Fan Club
Media & Entertainment
Anime Discussion Thread [Manga] One Piece
Sports
2024 - 2026 Football Thread Formula 1 Discussion
World Cup 2022
Tech Support
Computer Build, Upgrade & Buying Resource Thread
TL Community
The Automated Ban List TL+ Announced
Blogs
Psychological Factors That D…
TrAiDoS
James Bond movies ranking - pa…
Topin
StarCraft improvement
iopq
GOAT of Goats list
BisuDagger
Customize Sidebar...

Website Feedback

Closed Threads



Active: 1130 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
PiGosaur Cup
01:00
#63
Liquipedia
Patches Events
20:00
Patch Clash Invitational #1
Liquipedia
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
WinterStarcraft279
RuFF_SC2 277
Ketroc 65
SortOf 36
StarCraft: Brood War
Shuttle 117
Leta 102
ZergMaN 66
Noble 16
Hm[arnc] 12
Bale 11
Icarus 7
yabsab 6
Sea 1
Dota 2
NeuroSwarm161
League of Legends
C9.Mang01015
JimRising 812
Cuddl3bear3
Counter-Strike
minikerr71
Super Smash Bros
hungrybox645
Mew2King26
Organizations
Other Games
gamesdonequick37171
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 13 non-featured ]
StarCraft 2
• AfreecaTV YouTube
• intothetv
• Kozan
• IndyKCrew
• LaughNgamezSOOP
• Migwel
• sooper7s
StarCraft: Brood War
• BSLYoutube
• STPLYoutube
• ZZZeroYoutube
League of Legends
• Lourlo927
• Stunt292
Other Games
• Shiphtur2177
Upcoming Events
OSC
6h 58m
Creator vs NightMare
SKillous vs SHIN
Gerald vs YoungYakov
Cure vs ReBellioN
Classic vs Percival
SOOP
22h 58m
OSC
1d 6h
OSC
2 days
SOOP
3 days
The PondCast
4 days
Sparkling Tuna Cup
5 days
IPSL
5 days
DragOn vs Sziky
Replay Cast
6 days
Wardi Open
6 days
[ Show More ]
Monday Night Weeklies
6 days
Liquipedia Results

Completed

BSL Season 21
WardiTV 2025
META Madness #9

Ongoing

C-Race Season 1
IPSL Winter 2025-26
OSC Championship Season 13
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: W3
BSL 21 Non-Korean Championship
CSL 2025 WINTER (S19)
Acropolis #4
IPSL Spring 2026
Bellum Gens Elite Stara Zagora 2026
HSC XXVIII
Thunderfire SC2 All-star 2025
Big Gabe Cup #3
Nations Cup 2026
Underdog Cup #3
NA Kuram Kup
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.