2b) Use the input function to get the variable, e.g. a=input('enter text to display here\n') (the \n is so that the input will go on the next line).
Then you'd be able to call a(1) and a(2) to get the two numbers they entered and work on that from there.
To check if they're prime or not, maybe try doing a loop for all the numbers that are below it up to the number and testing if there are any that divide fully, you might want to check up the mod function for that (just type "help mod" in the command window). Once you've got all of that nvm just call the function you wrote in a, but use a loop to check all the values in that interval, so "for i=a(1):a(2)" e.t.c. I'm not sure how they're getting you to print them so not sure why you'd need strcmp or num2str.
3 - I guess see the previous lab
4 - It'd be easier to set it up as a funciton handle, then just call that function, e.g. tay=@(x) 'equation here', so that you can just go tay(2) later on. The error threshold bit is getting at how far off the actual value you are. So at the end of each loop you'd readjust the error you have, and have it in a while loop , 'while error>precision'., so yeah compare what you have to the inbuilt sine function each loop.
Hey all!
I've really been struggling hardcore with the computer labs for computing next week and was wondering if anyone could possibly help? I'e spent about 5 hours on it and have only been able to figure out question 1 and 2a

Any help whatsoever would be massively appreciated!! I'm at the point of throwing my laptop out the window and becoming a stripper D:
Just don't give up yet! I think doing computing in first semester would be a bit harder since sometimes you might not have covered the maths that you were using yet to have any idea of what you're actually doing. There's also getting used to matlab, which is a pain in the ass starting out. You get used to it after a while, it all comes with practice really.