Login

Welcome, Guest. Please login or register.

April 28, 2025, 05:30:21 pm

Author Topic: ENG1060 Computing  (Read 42589 times)  Share 

0 Members and 1 Guest are viewing this topic.

sajib_mostofa

  • Victorian
  • Forum Leader
  • ****
  • Posts: 829
  • Respect: +6
Re: ENG1060 Computing
« Reply #45 on: April 07, 2011, 09:08:25 pm »
0
Whenever I come to do these labs, I just cant seem to apply what I've learnt to the tasks that we have do. It's just not become a problem in todays lab but my last few labs. I'm trying my hardest to prepare for these labs by trying to attempt them at home, attending the PASS sessions etc but I just feel so helpless. I'm almost worried that I might fail this unit because I remember from the first lecture we had, those who don't do well in the labs generally don't do well in the exam either. What's making me feel even more worse is that the majority are scoring like 7-10's every time yet somehow I feel like the only one in trouble.

xZero

  • Victorian
  • Forum Leader
  • ****
  • Posts: 898
  • Respect: +68
Re: ENG1060 Computing
« Reply #46 on: April 07, 2011, 09:11:59 pm »
0
Yeh the task is pretty damn hard this week, apparently it gets harder :( If you need help with the labs feel free to pm me and I'll give you some hints on what to do
2009: Chinese SLA
2010: English, Maths method[45,A+ A+ A+], Specialist maths[44,A+,A,A+], Physics[40,A,A+,A+], Psychology Atar:94.75
2011-2015: Bachelor of Aerospace Engineering/Science @ Monash

Methods/Spesh/Physics tuition

m@tty

  • Victorian
  • ATAR Notes Legend
  • *******
  • Posts: 4324
  • Respect: +33
  • School: Heatherton Christian College
  • School Grad Year: 2010
Re: ENG1060 Computing
« Reply #47 on: April 07, 2011, 09:16:41 pm »
0
You could post here and we can all help each other out.
2009/2010: Mathematical Methods(non-CAS) ; Business Management | English ; Literature - Physics ; Chemistry - Specialist Mathematics ; MUEP Maths

96.85

2011-2015: Bachelor of Aerospace Engineering and Bachelor of Science, Monash University

2015-____: To infinity and beyond.

sajib_mostofa

  • Victorian
  • Forum Leader
  • ****
  • Posts: 829
  • Respect: +6
Re: ENG1060 Computing
« Reply #48 on: April 07, 2011, 09:19:50 pm »
0
Thanks guys, I might just do that from now on

moekamo

  • Victorian
  • Forum Obsessive
  • ***
  • Posts: 275
  • Respect: +4
Re: ENG1060 Computing
« Reply #49 on: April 07, 2011, 09:22:26 pm »
0
library test next week means ... we have no preparation to do :D :D
2nd Year BSc/BEng @ Monash

sajib_mostofa

  • Victorian
  • Forum Leader
  • ****
  • Posts: 829
  • Respect: +6
Re: ENG1060 Computing
« Reply #50 on: April 07, 2011, 09:32:44 pm »
0
Can anyone explain to me how 'for loops' work for Q1 lab 4?

xZero

  • Victorian
  • Forum Leader
  • ****
  • Posts: 898
  • Respect: +68
Re: ENG1060 Computing
« Reply #51 on: April 07, 2011, 09:45:46 pm »
0
what i did for q1 was

for x = 1:length(data) - for x = 1 to the number of elements in data,

     if data(x) < 0, new_data(x) = 0 - if the x element (1st, 2nd, 3rd etc) in the data is less than 0, the x element in new data = 0

     elseif mod(ceil(data(x))) , 2) == 1, new_data(x) = floor(data(x)) - mod(ceil(data(x)) , 2) == 1 is just saying that if i round the element within the data up and its odd, then round it down since it's the closest even integer

     elseif mod(ceil(data(x))), 2) == 0, new_data(x) = ceil(data(x)) - same thing as above except we round it up

     end
end

so the for loop is saying: for every element (1,2,3 to the max number of elements) in this vector, if something matches, do this, else if ... do this .... etc.
2009: Chinese SLA
2010: English, Maths method[45,A+ A+ A+], Specialist maths[44,A+,A,A+], Physics[40,A,A+,A+], Psychology Atar:94.75
2011-2015: Bachelor of Aerospace Engineering/Science @ Monash

Methods/Spesh/Physics tuition

m@tty

  • Victorian
  • ATAR Notes Legend
  • *******
  • Posts: 4324
  • Respect: +33
  • School: Heatherton Christian College
  • School Grad Year: 2010
Re: ENG1060 Computing
« Reply #52 on: April 07, 2011, 09:53:40 pm »
0
A for loop basically says run the following section of code for these predetemined values.

ie.

for x = [1 2 3]
.
.
.
end

means run the code for x equals 1, 2 and three..

Anywho, how you utilise this in lab 4 is(how I used it at least.. there are other methods):

you take the length of the input vector to determine how many values need to be processed

then you say

for N=1:length(data)

end

and run the code element-by-element.

EDIT: My way's essentially the same as xZero's xD - and the part I've explained is completely the same haha
2009/2010: Mathematical Methods(non-CAS) ; Business Management | English ; Literature - Physics ; Chemistry - Specialist Mathematics ; MUEP Maths

96.85

2011-2015: Bachelor of Aerospace Engineering and Bachelor of Science, Monash University

2015-____: To infinity and beyond.

sajib_mostofa

  • Victorian
  • Forum Leader
  • ****
  • Posts: 829
  • Respect: +6
Re: ENG1060 Computing
« Reply #53 on: April 07, 2011, 09:56:13 pm »
0
Thank you both. Made much more sense now.

Mao

  • CH41RMN
  • Honorary Moderator
  • Great Wonder of ATAR Notes
  • *******
  • Posts: 9181
  • Respect: +390
  • School: Kambrya College
  • School Grad Year: 2008
Re: ENG1060 Computing
« Reply #54 on: April 07, 2011, 10:30:16 pm »
0
@sajib, it doesn't seem like you are having trouble with the course material, just mainly inexperience with programming. The best way to learn programming is by experimenting. 'studying' for ENG1060 is pointless when you can't match theory to a piece of code.

If you are learning a new command or function, don't try to answer the lab question immediately. Put in a few dummy variables (like an array with x=[1,2,3,4]) and see what the function does. You will then get a feel for how computer logic manipulate data and be able to put together your own code.

The above process should be used even when you become a fluent programmer. Debugging is very very important (especially when you need to write large chunks of codes for the assignment).
Editor for ATARNotes Chemistry study guides.

VCE 2008 | Monash BSc (Chem., Appl. Math.) 2009-2011 | UoM BScHon (Chem.) 2012 | UoM PhD (Chem.) 2013-2015

taiga

  • Honorary Moderator
  • ATAR Notes Legend
  • *******
  • Posts: 4085
  • Respect: +588
Re: ENG1060 Computing
« Reply #55 on: April 07, 2011, 10:31:52 pm »
0
Btw have you had a shot at those weekly lab optional homework things?
vce: english, methods, spesh, chemistry, physics, geography.

ex admin/mod/partner

2010: Melbourne High School (VCE)
2011 - 2016: Monash University BComm/BEng (Hons)


If you guys have any concerns/suggestions for making ATARNotes a better place, don't hesitate to PM me.

darkphoenix

  • Victorian
  • Part of the furniture
  • *****
  • Posts: 1564
  • Respect: +3
Re: ENG1060 Computing
« Reply #56 on: April 07, 2011, 10:34:37 pm »
0
library test next week means ... we have no preparation to do :D :D

FK YEAHHH!

How did you get 0 sajib? I know a few of my friends got caught cheating and got 0..

But don't worry I'm in exactly the same situation as you..:(
2009: Accounting
2010: English | Methods (CAS) | Specialist Maths | Chemistry | Chinese SL
2011: Bachelor of Commerce/Engineering @ Monash

sajib_mostofa

  • Victorian
  • Forum Leader
  • ****
  • Posts: 829
  • Respect: +6
Re: ENG1060 Computing
« Reply #57 on: April 07, 2011, 10:55:16 pm »
0
Btw have you had a shot at those weekly lab optional homework things?

I havent quite had a look at them but are they useful?

sajib_mostofa

  • Victorian
  • Forum Leader
  • ****
  • Posts: 829
  • Respect: +6
Re: ENG1060 Computing
« Reply #58 on: April 07, 2011, 10:57:53 pm »
0
library test next week means ... we have no preparation to do :D :D

FK YEAHHH!

How did you get 0 sajib? I know a few of my friends got caught cheating and got 0..

But don't worry I'm in exactly the same situation as you..:(

haha well at least its good to know I'm not the only one having trouble. As for getting 0, the only simple explanation I can give you is that I simply didnt know how to approach the tasks. As Mao said, learning theory is one thing but making and using your code is something different altogether.

JinXi

  • Victorian
  • Forum Leader
  • ****
  • Posts: 818
  • Respect: +90
  • School: Camberwell High School
  • School Grad Year: 2010
Re: ENG1060 Computing
« Reply #59 on: April 08, 2011, 12:24:24 am »
0
library test next week means ... we have no preparation to do :D :D

Knowing myself, chances are that i'll lose marks for this type of test than in an actual lab ....
Monash B.Aero Eng/Sci Discontinued in Sem2 2012 [2011-2015]

"I will always choose a lazy person to do a difficult job… because, he will find an easy way to do it." ~ Bill Gates
^ SNORLAX, I chooosee You!!!