Yahoo Answers is shutting down on May 4th, 2021 (Eastern Time) and beginning April 20th, 2021 (Eastern Time) the Yahoo Answers website will be in read-only mode. There will be no changes to other Yahoo properties or services, or your Yahoo account. You can find more information about the Yahoo Answers shutdown and how to download your data on this help page.

Anonymous
Anonymous asked in Computers & InternetProgramming & Design · 1 decade ago

help with matlab!!!!!!?

Please help with MATLAB!!!!!!?

y(t) = -3t^2 + 5 if t>= 0

y(t) = 3t^2 + 5 if t<0.

Write Matlab code using VECTORIZATION, as opposed to loops and branches, to find the values of t between -9 and 9 in steps of 0.5

2 Answers

Relevance
  • 4 years ago

    As pronounced above, that's a programming-like environoment which may make an excellent style of calculations. Matlab is often used for controllers, documents aquisition, and that i can only anticipate plenty greater. It pertains to electronics with the aid of those applications. as an occasion a controller can administration digital areas of, say an plane for automobile pilot. a gadget like matlab could want for use to administration the digital areas that administration the plane, and additionally handle the calculations for some embedded fashions of the plane physics, so as that the controller can understand the thank you to regulate the plane with out crashing. comparable examples may be in robotics, automobiles, and in reality something that makes use of sensors that have comments from this sensor.

  • 1 decade ago

    t=[-9:0.5:9]

    y=-sign(t).*t.^2+5

    should work but i can't test it.

Still have questions? Get your answers by asking now.