• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EST 04:12
CET 10:12
KST 18:12
  • 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 Season 3 - RO16 Groups A & B Preview2TL.net Map Contest #21: Winners11Intel X Team Liquid Seoul event: Showmatches and Meet the Pros10[ASL20] Finals Preview: Arrival13TL.net Map Contest #21: Voting12
Community News
[TLMC] Fall/Winter 2025 Ladder Map Rotation10Weekly 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
RSL Season 3 - RO16 Groups A & B Preview Mech is the composition that needs teleportation t [TLMC] Fall/Winter 2025 Ladder Map Rotation Weekly Cups (Nov 3-9): Clem Conquers in Canada Craziest Micro Moments Of All Time?
Tourneys
RSL Revival: Season 3 Constellation Cup - Main Event - Stellar Fest Tenacious Turtle Tussle Master Swan Open (Global Bronze-Master 2) Sparkling Tuna Cup - Weekly Open Tournament
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
FlaSh on: Biggest Problem With SnOw's Playstyle What happened to TvZ on Retro? Brood War web app to calculate unit interactions [ASL20] Ask the mapmakers — Drop your questions BW General Discussion
Tourneys
[Megathread] Daily Proleagues Small VOD Thread 2.0 [BSL21] RO32 Group D - Sunday 21:00 CET [BSL21] RO32 Group C - Saturday 21:00 CET
Strategy
Current Meta Simple Questions, Simple Answers PvZ map balance How to stay on top of macro?
Other Games
General Games
Beyond All Reason Nintendo Switch Thread Should offensive tower rushing be viable in RTS games? Clair Obscur - Expedition 33 Stormgate/Frost Giant Megathread
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
Things Aren’t Peaceful in Palestine Artificial Intelligence Thread Russo-Ukrainian War Thread US Politics Mega-thread Canadian Politics Mega-thread
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: 1895 users

MATLAB thread

Forum Index > General Forum
Post a Reply
Normal
clazziquai
Profile Blog Joined October 2007
6685 Posts
September 27 2008 08:28 GMT
#1
Hey guys I'm currently taking engineering and we all have to take this Intro to Computers class which basically you learn this program called MATLAB, Matrix Laboratory.

So I was wondering if around here also uses it!
And perhaps, are there any experts?

=)

Well discuss!
#1 Sea.Really Fan / #1 Nesh Fan / Terran Forever~
indecision
Profile Blog Joined November 2004
Germany818 Posts
September 27 2008 08:31 GMT
#2
erhh,
we used it in numerical mathematics last year. Don't know too much about it, though
cba
Profile Blog Joined December 2007
Australia94 Posts
September 27 2008 08:37 GMT
#3
i have to learn it this year as part of math. at first it was annoying and confusing, but now i really came to appreciate what matlab can do. in fact i find it fun when im writing my own functions and they magically work. then i actually got to use it to help me do some of my non-matlab homework. pretty neat.
CDRdude
Profile Blog Joined May 2007
United States5625 Posts
September 27 2008 08:37 GMT
#4
I took an engineering class that was programming in matlab. It was easy, and I got a good grade. Now I don't rember any of it at all.
Force staff is the best item in the game.
clazziquai
Profile Blog Joined October 2007
6685 Posts
September 27 2008 08:39 GMT
#5
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...
#1 Sea.Really Fan / #1 Nesh Fan / Terran Forever~
jhNz
Profile Blog Joined September 2006
Germany2762 Posts
Last Edited: 2008-09-27 08:43:37
September 27 2008 08:42 GMT
#6
i had a lecture about it at university. but i don't know much about it anymore just because there's no real need to use it for me. so i guess i could still do some basic stuff, but for more advanced things i'd really need to read my scripts about it again

btw there is a really good freeware alternative program for matlab called scilab. i used that at university for excerices at home. the syntax is the same and i never found out where the difference in the amount of functionality is. so if you wanna try it just go to http://www.scilab.org/ .
http://twitter.com/jhNz
Bozali
Profile Joined January 2008
Sweden155 Posts
September 27 2008 08:55 GMT
#7
Been using it for 3 different courses, it's not that hard if you now Linear Algebra and maths previous to it. And maybe some fundamental programing with for-loops etc.
MasterOfChaos
Profile Blog Joined April 2007
Germany2896 Posts
September 27 2008 09:04 GMT
#8
Computer algebra systems like mathematica and maple are really usefull too. I use them to solve Integrals and Diff-Equations. There is at least one free CAS available called Maxima.
LiquipediaOne eye to kill. Two eyes to live.
Klive5ive
Profile Blog Joined January 2008
United Kingdom6056 Posts
Last Edited: 2008-09-27 09:07:56
September 27 2008 09:06 GMT
#9
Matlab is alright.
I had to learn to use it for my Electronics Degree and it is annoying to use for complex sums.

On the plus side if you've done just a bit of programming you can pick it up very fast and it becomes useful later on for checking other work (as cba pointed out).

There are other programs on the market that you might be interested in.
If you can get hold of a copy of Mathematica *somehow* I would, it's a far superior piece of software: http://www.wolfram.com/products/mathematica/index.html
Don't hate the player - Hate the game
uppTagg
Profile Blog Joined May 2007
Sweden473 Posts
September 27 2008 09:07 GMT
#10
On September 27 2008 17:37 CDRdude wrote:
I took an engineering class that was programming in matlab. It was easy, and I got a good grade. Now I don't rember any of it at all.


Same here :O
men du... Tagga!
Boblion
Profile Blog Joined May 2007
France8043 Posts
Last Edited: 2008-09-27 09:17:58
September 27 2008 09:09 GMT
#11
On September 27 2008 17:37 CDRdude wrote:
I took an engineering math class that was programming in matlab. It was easy hard, and I got a good grade because the father of a friend made for us the Matlab program for the semester project . Now like before I don't remember any of it at all because my teachers were quite bad and they failed to explain how it works. The funny thing is that i googled the questions of our "project" and i found the solutions of all the non MATLAB related questions. 16/20 coeff 6 GG semester



fuck all those elitists brb watching streams of elite players.
ZpuX
Profile Blog Joined December 2002
Sweden1230 Posts
September 27 2008 09:17 GMT
#12
had to learn matlab in numerical methods as well. The lectures doesen't give you much, it's alot better to have a friend who did programming before help you out with the basic for/if/while functions, and then just sit down with a problem and try to solve it, using some internet site where you can search for textreading functions etc. Also, programming is alot about logic, especially with matlab, easy to self learn imo.
Really, play for fun!
kemoryan
Profile Blog Joined December 2007
Spain1506 Posts
September 27 2008 09:22 GMT
#13
I use an open source app which is basically the same as MATLAB (but free) called Octave.
It is for windows linux and mac and there's a very big community around it.

I have some knowledge of Octave since I've used it in the first year at cs career.
Freedom is a stranger
Ki_Do
Profile Blog Joined July 2008
Korea (South)981 Posts
September 27 2008 09:39 GMT
#14
yeh, i got to use this thing too...
its very simple since it doesnt require stat or end commands, you wont have a hard time using it
I've got a point, and i'm ready to kill or die for it.
Boblion
Profile Blog Joined May 2007
France8043 Posts
Last Edited: 2008-09-27 09:55:53
September 27 2008 09:55 GMT
#15
I had to use it for a program involving some weird polynoms and i think it wasn't easy. When you end up with a shitload of variables + Sequences, there are always some weird errors because of the typo or something like that. Hopefully we got helped.
fuck all those elitists brb watching streams of elite players.
iloveHieu
Profile Joined November 2007
United States1919 Posts
September 27 2008 11:06 GMT
#16
I took a couple classes on Matlab so I'm pretty familiar with it, not saying I'm expert though.

just practice a lot, you just have to spend hours on it is my advice.
Xellos <3
HnR)hT
Profile Joined October 2002
United States3468 Posts
September 27 2008 11:15 GMT
#17
I've used Matlab for Monte Carlo simulations in some stochastic models. Easy to use, but it's no substitute for being a skilled programmer
Saracen
Profile Blog Joined December 2007
United States5139 Posts
September 27 2008 11:17 GMT
#18
i have to use it for an internship project and i have no idea how it works beyond changing around variables in the script and running to print out pretty graphs
HnR)hT
Profile Joined October 2002
United States3468 Posts
September 27 2008 11:44 GMT
#19
On September 27 2008 18:04 MasterOfChaos wrote:
Computer algebra systems like mathematica and maple are really usefull too. I use them to solve Integrals and Diff-Equations. There is at least one free CAS available called Maxima.

Mathematica can't do integrals reasonably. Once I tried it for an integral whose solution was basically an arctangent; it took five minutes and gave an unreadable answer in terms of special functions.
KlaCkoN
Profile Blog Joined May 2007
Sweden1661 Posts
September 27 2008 11:52 GMT
#20
Ehm mathematica can do more or less everything if you know how to use it. Not that I do however.
MATLAB is a very nice and beginner friendly program. You can do alot of fairly advanced calculations with it. Been a while since I used it however since they forced me to switch to fortran programming for my summer project.
IMO the best thing about MATLAB is the huuuge help files, learn to master those and you can do more or less whatever you want
"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."
Day[9]
Profile Blog Joined April 2003
United States7366 Posts
September 27 2008 12:20 GMT
#21
i fucking LOVE MATLAB

that program ROCKS SO HARD.

i've used it alot in school, but (most awesomely) got to use matlab to help model and study disruption of social networks. man that was an awesome research project

fuck yeah <3 matlab
Whenever I encounter some little hitch, or some of my orbs get out of orbit, nothing pleases me so much as to make the crooked straight and crush down uneven places. www.day9.tv
Myrmidon
Profile Blog Joined December 2004
United States9452 Posts
September 27 2008 12:46 GMT
#22
Yeah I use MATLAB for some large data manipulation, analysis, and graphing features. Then also for helping me with math-related coursework in the form of doing matrix manipulations (obviously) and then solving equations, symbolic forward and inverse transforms, etc. All in all it's been very useful.
KOFgokuon
Profile Blog Joined August 2004
United States14899 Posts
September 27 2008 13:25 GMT
#23
define expert
i've had to do some linear programming and stochastic simulations with matlab for class
Mortality
Profile Blog Joined December 2005
United States4790 Posts
September 27 2008 13:29 GMT
#24
I used to use MATLAB a lot. (These days, the stuff I work on requires pencil and paper only.)

If I were to give one piece of advice... MATLAB thinks of everything as a matrix. You might look at the name of the program and go "Oh, well, duh!" If you've worked with the program for even 10 seconds, you really ought to know that already. But, the reason I bring that up is that it can be something easy to forget; even a result that is just a number gets stored as a 1-by-1 matrix. If you're not careful, this can cause problems for you, especially if you're trying to observe a system that is non-linear. (In these cases, mathematicians will often try to break down the system and study linear elements in an effort to better understand what's going on.)

To be honest, if you're doing graphing, Mathematica is a million times better, and if all you care about is solving differential equations, I'd go with Maple (which, interestingly enough, can also do proofs on its own -- the proof of the Four Color Theorem was done with Maple).

But for engineering applications and a lot of experimental physics, I like MATLAB the best.
Even though this Proleague bullshit has been completely bogus, I really, really, really do not see how Khan can lose this. I swear I will kill myself if they do. - nesix before KHAN lost to eNature
Chill
Profile Blog Joined January 2005
Calgary25988 Posts
September 27 2008 15:02 GMT
#25
I fucking hate MATLAB, the syntax was not intuitive to me at all, hence I struggled with it in university and often had to use the help just to write a simple function. It's useful if you learn it properly, but I've completely forgot everything.
Moderator
SK.Testie
Profile Blog Joined January 2007
Canada11084 Posts
September 27 2008 15:21 GMT
#26
Oh man
This thread just solved such a mystery for me
If you read this, fuck you L!
loool
Social Justice is a fools errand. May all the adherents at its church be thwarted. Of all the religions I have come across, it is by far the most detestable.
Meta
Profile Blog Joined June 2003
United States6225 Posts
September 27 2008 15:38 GMT
#27
I'm going to be doing a Lab for differential equations/linear algebra today and we're going to be using MATLAB. It's been almost 4 months since I've even touched it so we'll see how it goes.
good vibes only
micronesia
Profile Blog Joined July 2006
United States24740 Posts
September 27 2008 15:51 GMT
#28
Matlab is very powerful. I had to use it for several undergraduate math classes. The professor added to the book list a small book on mathematics for _____ (insert math course name). That, along with the help files and my equivalent programming 101 experience was enough to get me through it as long as I compared notes with other students every week.

Mathematica is very nice if somebody else builds the notebook for you, and you just plug the data from your experiment in :3 (Very nice professor)

Never used maple.
ModeratorThere are animal crackers for people and there are people crackers for animals.
AoN.DimSum
Profile Blog Joined September 2008
United States2983 Posts
September 27 2008 16:16 GMT
#29
you are from rutgers engineering right? I took that course last semester
its a really easy class
if you want practice tests which is exactly like the exam, msg me (well the practice tests which i got from a friend were the same as the real test)
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
September 27 2008 18:21 GMT
#30
On September 28 2008 01:16 AoN.DimSum wrote:
you are from rutgers engineering right? I took that course last semester
its a really easy class
if you want practice tests which is exactly like the exam, msg me (well the practice tests which i got from a friend were the same as the real test)


Yeah
But it got a lot harder man.

We have projects now...and work to submit.
At least I heard that we didn't have that lsat year? haha
#1 Sea.Really Fan / #1 Nesh Fan / Terran Forever~
AoN.DimSum
Profile Blog Joined September 2008
United States2983 Posts
September 27 2008 18:32 GMT
#31
oh that sucks, i cant help you there.
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
September 27 2008 18:42 GMT
#32
On September 28 2008 03:32 AoN.DimSum wrote:
oh that sucks, i cant help you there.


Yeah this sucks lol......=[
#1 Sea.Really Fan / #1 Nesh Fan / Terran Forever~
Chromyne
Profile Joined January 2008
Canada561 Posts
September 27 2008 19:04 GMT
#33
I took a introductory course in first year. I also used it along with Simulink for my summer job. It's really useful program for performing certain tasks, and it shouldn't be too difficult to learn.

Not sure what the actual purpose of this thread is though...
Soli Deo gloria.
Vivi57
Profile Blog Joined September 2007
United States6599 Posts
September 27 2008 19:09 GMT
#34
Never used it, but starting tuesday, I'll need to learn it for classes.
Flash hwaiting! Nal_rA forever!
IntoTheWow
Profile Blog Joined May 2004
is awesome32277 Posts
September 27 2008 19:12 GMT
#35
<- MatLab hater.
Moderator<:3-/-<
clazziquai
Profile Blog Joined October 2007
6685 Posts
September 27 2008 19:32 GMT
#36
On September 28 2008 04:12 IntoTheWow wrote:
<- MatLab hater.


So far I hate it so much.
Anyways guys can anyone help me with the "for loops"?

Because our teacher never explained us in lecture yet he expects us to do this for our project...lol

Begin by running the command:
[c2 d2] = xlsread('civil1.xls')
Task 1) Save (in the variable c) the matrix containing all of the rows, and only the first, fourth, and
fifth columns of c2
Task 2) Save (in the variable d) the matrix containing all of the rows, but only the second and
third columns of d2
Now, the first column of c contains the length of the road segment analyzed, the second column
contains the year the measurements were taken, and the third column contains the AADT
(essentially the average number of cars per day that pass through that section of road).
The first column of d contains where that section of road started, and the second column contains
where that section of road ended.
Task 3) Print a statement along the lines of "The busiest road in Yates County is the 6.32 mile
road that goes from Busch Campus to College Ave."
Of course, use the max function to find this information and then the fprintf function to display the
info. If there is a tie for the busiest road, you must print out this statement for each of the roads.
Round the length of the road to 1 decimal place.
Task 4) Repeat Task 3, but for the least busy road.


These are my commands so far.

[c2 d2] = xlsread('civil1.xls')
task 1
c = [c2(:,1) c2(:,4) c2(:,5)]
task 2
d=[d2(:,2) d2(:,3)]

for task 3 so far...
x=max(c(:,3))
y=find(c(:,3)==x)

So I basically found out that in x the maximum value is 12373 or something and I found out where these maximum values are, with y, and it is in the 12th and 19th spot.

I heard that have to use for loops for this part.
What would I do?
#1 Sea.Really Fan / #1 Nesh Fan / Terran Forever~
micronesia
Profile Blog Joined July 2006
United States24740 Posts
Last Edited: 2008-09-27 20:07:47
September 27 2008 20:06 GMT
#37
I don't care about your assignment personally but I'll explain for loops.

A for loop is used in all types of computer programming, more or less. The goal is for it to repeat a section of code over and over again a set number of times. The syntax for c++ is

for (int i=0; i<10; i++)
{
<do stuff>
}

In this case, it creates a variable i with a value of 0. It increments it by +1, and then does the stuff. Then it increments it by +1 again, and sees if i is still less than 10. If so, it does the stuff again and repeats. In this example, the stuff would be done 9 times I believe.

edit: not to be confused with a while loop:

while (x<10)
{
<do stuff>
}

In this case, the while loop will keep going until that stuff you do changes the value of x to 10 or greater.

Also a do loops is exactly like a for loop except instead of incrementing the variable at the beginning, it increments it after 'doing the stuff'. You can ignore this one if it is confusing.
ModeratorThere are animal crackers for people and there are people crackers for animals.
funkie
Profile Blog Joined November 2005
Venezuela9376 Posts
September 27 2008 20:19 GMT
#38
I have this little course of Matlab (it's in spanish) it's a simple one but it's useful if you're in a hurry.

;P.

If anybody wants, msg me~
CJ Entusman #6! · Strength is the basis of athletic ability. -Rippetoe /* http://j.mp/TL-App <- TL iPhone App 2.0! */
AoN.DimSum
Profile Blog Joined September 2008
United States2983 Posts
September 27 2008 20:25 GMT
#39
i would really suggest reading the book, but if u need lecture notes, i still have them
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
September 27 2008 20:26 GMT
#40
On September 28 2008 05:25 AoN.DimSum wrote:
i would really suggest reading the book, but if u need lecture notes, i still have them


yo bro can you give me the lecture notes when yoou guys learned for loops?
would be amazingly useful.

i don't understand why this is due tomorrow when we havent even covered this LOL
#1 Sea.Really Fan / #1 Nesh Fan / Terran Forever~
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?
fight_or_flight
Profile Blog Joined June 2007
United States3988 Posts
October 27 2008 00:16 GMT
#61
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.

I know that some physics departments still use fortran for number crunching. Especially in quantum physics, where all of your numbers are complex, which is very intensive. They combine fotran with super-fast libraries, and also parallel computing libraries.
Do you really want chat rooms?
geometryb
Profile Blog Joined November 2005
United States1249 Posts
October 27 2008 00:50 GMT
#62
very powerful program
imDerek
Profile Blog Joined August 2007
United States1944 Posts
October 27 2008 00:53 GMT
#63
On October 27 2008 09:11 clazziquai wrote:
Show nested quote +
On October 27 2008 09:06 imDerek wrote:
using it on my EE labs


Electrical Engineering?


indeed! playing around with sound files is fun
Least favorite progamers: Leta, Zero, Mind, Shine, free, really <-- newly added
jgad
Profile Blog Joined March 2008
Canada899 Posts
October 27 2008 12:56 GMT
#64
On October 27 2008 09:16 fight_or_flight wrote:
Show nested quote +
On October 27 2008 08:35 jgad wrote:
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.

I know that some physics departments still use fortran for number crunching. Especially in quantum physics, where all of your numbers are complex, which is very intensive. They combine fotran with super-fast libraries, and also parallel computing libraries.


Depends what you're doing, I think. I'm an experimentalist, so coding is not really my expertise, but Fortran is procedural - good for working with lots of complex numbers, but sometimes you really want something object oriented. Monte-Carlo simulations, for example.
콩까지마
bp1696
Profile Blog Joined February 2007
United States288 Posts
October 27 2008 14:27 GMT
#65
I'm pretty good with MATLAB, I use it everyday for analyses/programming stuff that uses a lot of computations or simulations. PM me if you need specific help with stuff. Also, www.matlabcentral.com and their file exchange thing is the best matlab site ever.
Sleep is for the fishes
BluzMan
Profile Blog Joined April 2006
Russian Federation4235 Posts
Last Edited: 2008-10-27 14:44:39
October 27 2008 14:31 GMT
#66
Matlab is a useless pile of junk. It's neither a calculator nor a programming language but takes the worst of both - complexity of use and feebleness in data manipulation.

Seriously, if you're into software with preprogrammed plot tools and numerical methods, try some C lib or LabView (which, although largely unconvential, is a fully-functional programming language).

As for the lectures, you shouldn't have much trouble with MATLAB, just get excellent grades and forget about it like I did.

EDIT: Well, as "useless pile of junk" may offend fanboys, let me put it the other way: there are jobs MATLAB does fine, but due to it being right in the middle between simple and powerful, it's like a jack-of-all-trades-master-of-nothing type of thing. The amount of tasks it does really well is abysmal.
You want 20 good men, but you need a bad pussy.
BluzMan
Profile Blog Joined April 2006
Russian Federation4235 Posts
October 27 2008 14:42 GMT
#67
On October 27 2008 21:56 jgad wrote:
Show nested quote +
On October 27 2008 09:16 fight_or_flight wrote:
On October 27 2008 08:35 jgad wrote:
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.

I know that some physics departments still use fortran for number crunching. Especially in quantum physics, where all of your numbers are complex, which is very intensive. They combine fotran with super-fast libraries, and also parallel computing libraries.


Depends what you're doing, I think. I'm an experimentalist, so coding is not really my expertise, but Fortran is procedural - good for working with lots of complex numbers, but sometimes you really want something object oriented. Monte-Carlo simulations, for example.


A lot of people embed precompiled fortran code into C++ applications, this way you can have the class structure combined with fortran's immense speed. When I did my work, I used LabView as the external GUI with all the plotting tools I needed (besides, it has native multithreading and data acquisition) calling external libraries for the actual computation.
You want 20 good men, but you need a bad pussy.
jgad
Profile Blog Joined March 2008
Canada899 Posts
October 27 2008 18:17 GMT
#68
Well, there are always many solutions - you really have to treat each problem as it comes. Matlab obviously has its uses or it wouldn't be as popular as it is. If you've got a calculation which would take 10 minutes in Matlab to process or two minutes in Fortran to process, but you can code the Matlab one in five minutes instead of in five hours, then obviously Matlab is the better choice. Bottom line performance is rarely the deciding factor in choosing your programming language - in cases where it is, yeah, often Fortran wins.
콩까지마
clazziquai
Profile Blog Joined October 2007
6685 Posts
October 27 2008 18:21 GMT
#69
What would you guys recommend is the best program to use for Computer Engineering??
#1 Sea.Really Fan / #1 Nesh Fan / Terran Forever~
GHOSTCLAW
Profile Blog Joined February 2008
United States17042 Posts
October 27 2008 18:24 GMT
#70
On October 28 2008 03:21 clazziquai wrote:
What would you guys recommend is the best program to use for Computer Engineering??



What do you want to do in computer engineering? Messing around with circuits is usually pspice, messing around with large data sets is matlab, designing circuits is a program called either microwind or magic, and if you're just planning on being an office drone that knows computer eng, use microsoft office
PhotographerLiquipedia. Drop me a pm if you've got questions/need help.
fight_or_flight
Profile Blog Joined June 2007
United States3988 Posts
Last Edited: 2008-10-27 21:33:54
October 27 2008 21:27 GMT
#71
On October 27 2008 23:31 BluzMan wrote:
Matlab is a useless pile of junk. It's neither a calculator nor a programming language but takes the worst of both - complexity of use and feebleness in data manipulation.

Seriously, if you're into software with preprogrammed plot tools and numerical methods, try some C lib or LabView (which, although largely unconvential, is a fully-functional programming language).

As for the lectures, you shouldn't have much trouble with MATLAB, just get excellent grades and forget about it like I did.

EDIT: Well, as "useless pile of junk" may offend fanboys, let me put it the other way: there are jobs MATLAB does fine, but due to it being right in the middle between simple and powerful, it's like a jack-of-all-trades-master-of-nothing type of thing. The amount of tasks it does really well is abysmal.

Matlab is actually the de facto tool for DSP. Nothing is better than matlab in this respect. As I mentioned on the previous page, my company is going to start working on software-defined radios. We will be using Simulink, which is an addon to matlab, to do the work. With it we can write matlab embedded code (or C code) and compile it onto an FPGA or DSP chip.

Then we can have an arbitrary radio (cellphone, GPS, wifi, FM radio, etc).

Also, in industry, matlab is used for certain applications. You may think to yourself that raw C is more efficient, but time is money.

However, I don't understand why you say Labview is somehow better than matlab as far as data manipulation goes. I've used Labview extensively, and I have to say its much easier to manipulate data in matlab. (in fact I have scilab installed on my computer to make sure all my calculations are correct before I put it in labview)

Labview is a great piece of software though. Currently I'm doing radiated measurements and plotting the data in Labview. Look at what I have so far:

+ Show Spoiler +
[image loading]
Do you really want chat rooms?
ParasitJonte
Profile Joined September 2004
Sweden1768 Posts
October 27 2008 22:35 GMT
#72
From what I hear, functional programming will take over scientific computation.

Discuss!
Hello=)
Spedicus
Profile Joined January 2008
Canada16 Posts
October 27 2008 23:54 GMT
#73
Can you believe it? You've already finished C. Do you think you can do MATLAB??

EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE

neinei
Profile Joined April 2010
Philippines2 Posts
April 21 2010 12:45 GMT
#74
hello guys i really need help about a matlab problem .. can anyone help me ??
please ??

i am alyza ,
a 2nd year college Electronics and Communications Engineering student
at UPHSL Phils.

please help me how to solve this in matlab .
i really dunno how . i find it hard to solve
im trying to solve it and i still cant find and solve for the right equation
for me to write the code in m-file and as well as to run it to show the figure .

could anyone help me to solve this ? i need the codes in m-file and some computations of the equations in m-file please help me . thnks .
your help is really appreciated =(

the figures are listed below:
http://i41.tinypic.com/14btdkw.jpg
i really need your help
whartondanielle5
Profile Joined February 2021
1 Post
Last Edited: 2021-02-08 14:13:44
February 08 2021 14:13 GMT
#75
--- Nuked ---
Normal
Please log in or register to reply.
Live Events Refresh
Next event in 48m
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
TKL 103
Nina 73
StarCraft: Brood War
Sea 2254
EffOrt 323
Killer 313
Rain 288
Hyun 170
Leta 150
Bale 86
Dewaltoss 63
ToSsGirL 38
JulyZerg 33
[ Show more ]
NaDa 14
Free 9
Rush 9
ivOry 7
Hm[arnc] 7
Terrorterran 1
Dota 2
XaKoH 536
League of Legends
JimRising 478
Counter-Strike
fl0m1596
shoxiejesuss440
allub123
Super Smash Bros
Mew2King62
Other Games
summit1g20776
FrodaN2009
crisheroes372
ceh9291
KnowMe101
NeuroSwarm49
Organizations
Other Games
gamesdonequick532
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 14 non-featured ]
StarCraft 2
• Berry_CruncH207
• LUISG 17
• AfreecaTV YouTube
• intothetv
• Kozan
• IndyKCrew
• LaughNgamezSOOP
• Migwel
• sooper7s
StarCraft: Brood War
• BSLYoutube
• STPLYoutube
• ZZZeroYoutube
League of Legends
• Lourlo1385
• Stunt517
Upcoming Events
RSL Revival
48m
Classic vs Creator
Cure vs TriGGeR
Kung Fu Cup
2h 48m
GuMiho vs MaNa
herO vs ShoWTimE
Classic vs TBD
WardiTV Korean Royale
2h 48m
CranKy Ducklings
1d
RSL Revival
1d
herO vs Gerald
ByuN vs SHIN
Kung Fu Cup
1d 2h
Cure vs Reynor
IPSL
1d 7h
ZZZero vs rasowy
Napoleon vs KameZerg
BSL 21
1d 10h
Tarson vs Julia
Doodle vs OldBoy
eOnzErG vs WolFix
StRyKeR vs Aeternum
Sparkling Tuna Cup
2 days
RSL Revival
2 days
Reynor vs sOs
Maru vs Ryung
[ Show More ]
Kung Fu Cup
2 days
WardiTV Korean Royale
2 days
BSL 21
2 days
JDConan vs Semih
Dragon vs Dienmax
Tech vs NewOcean
TerrOr vs Artosis
IPSL
2 days
Dewalt vs WolFix
eOnzErG vs Bonyth
Replay Cast
2 days
Wardi Open
3 days
Monday Night Weeklies
3 days
WardiTV Korean Royale
4 days
BSL: GosuLeague
4 days
The PondCast
5 days
Replay Cast
5 days
RSL Revival
6 days
BSL: GosuLeague
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
CSCL: Masked Kings S3
RSL Revival: Season 3
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
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.