1. Welcome to Tacoma World!

    You are currently viewing as a guest! To get full-access, you need to register for a FREE account.

    As a registered member, you’ll be able to:
    • Participate in all Tacoma discussion topics
    • Communicate privately with other Tacoma owners from around the world
    • Post your own photos in our Members Gallery
    • Access all special features of the site

Long shot, but are there any MATLAB gurus here?

Discussion in 'Off-Topic Discussion' started by MrGrimm, Mar 27, 2019.

  1. Mar 27, 2019 at 2:02 PM
    #1
    MrGrimm

    MrGrimm [OP] Mall Crawler

    Joined:
    Oct 19, 2009
    Member:
    #24568
    Messages:
    2,849
    Gender:
    Male
    First Name:
    Dean
    Wisconsin
    Vehicle:
    2006 Toyota Tacoma 4WD w/TRD Sport Package
    See build page
    Is there anybody proficient at MATLAB here that can answer a quick question?
     
  2. Mar 27, 2019 at 2:05 PM
    #2
    MrGrimm

    MrGrimm [OP] Mall Crawler

    Joined:
    Oct 19, 2009
    Member:
    #24568
    Messages:
    2,849
    Gender:
    Male
    First Name:
    Dean
    Wisconsin
    Vehicle:
    2006 Toyota Tacoma 4WD w/TRD Sport Package
    See build page
    I am attempting to get the last part of this done.
    Image-1.jpg

    I have attempted the following code and a few others but havent gotten a return of the values (which should be [4,7,7])

    myValues = myMatrix( :,3) & myMatrix( :,3) > 3;

    which returns the indices but not the values.

    myValues = myMatrix( :,3) > 3

    returns a logical array but thats not what I am looking for
     
    Last edited: Mar 27, 2019
  3. Mar 28, 2019 at 11:36 AM
    #3
    96carboard

    96carboard Well-Known Member

    Joined:
    Sep 14, 2018
    Member:
    #266237
    Messages:
    1,600
    Your chance of even finding anyone here who has HEARD of matlab is negligible.

    FWIW: You found one, but it violates my ethics to do your homework for you, so :brianr:
     
  4. Mar 28, 2019 at 5:29 PM
    #4
    rtzx9r

    rtzx9r Well-Known Member

    Joined:
    Jan 5, 2016
    Member:
    #174071
    Messages:
    1,757
    Gender:
    Male
    First Name:
    Bueller
    Vehicle:
    2016 TRD Sport
    LS1 swap with nitros.
    OP must be in engineering college, as I don’t think matlab is used in the real works anywhere.
     
  5. Mar 28, 2019 at 5:31 PM
    #5
    Fearthisbeard

    Fearthisbeard Well-Known Member

    Joined:
    Jun 1, 2018
    Member:
    #255205
    Messages:
    587
    Gender:
    Male
    First Name:
    Josh
    Gilbert AZ
    Vehicle:
    Taco
    Yeah, It is used at my work by a few guys, but overall not by many.
     
  6. Mar 29, 2019 at 4:52 AM
    #6
    morri89

    morri89 Well-Known Member

    Joined:
    Dec 5, 2015
    Member:
    #171498
    Messages:
    2,909
    Gender:
    Male
    First Name:
    Brendan
    Hopedale MA
    Vehicle:
    2020 Rubicon
    There are actually a very lot of people that use MATLAB in the 'real world'.

    OP, while I don't know MATLAB, you may want to post the questions on MATLAB Answers. https://www.mathworks.com/matlabcentral/answers/ . It's monitored by the people who design the software and they are pretty insightful.
     
  7. Mar 29, 2019 at 7:54 PM
    #7
    MrGrimm

    MrGrimm [OP] Mall Crawler

    Joined:
    Oct 19, 2009
    Member:
    #24568
    Messages:
    2,849
    Gender:
    Male
    First Name:
    Dean
    Wisconsin
    Vehicle:
    2006 Toyota Tacoma 4WD w/TRD Sport Package
    See build page
    I got it to work using

    myValues = myMatrix(find(myMatrix( :,3) > 3),3);

    Most of the time I don’t have problems with programming (I have prior experience with java). I’m older than most as a civil engineering student but I am understanding most of the MatLab programming better than the rest of my class.
     
    96carboard likes this.
  8. Mar 29, 2019 at 8:04 PM
    #8
    crashnburn80

    crashnburn80 Vehicle Design Engineer

    Joined:
    Jun 6, 2015
    Member:
    #156893
    Messages:
    14,593
    Gender:
    Male
    Kirkland, WA
    Vehicle:
    2003 DCSB TRD OR
    Go Hawks!
    NASA uses MATLAB. I’d say that’s pretty real world.
     
    morri89 likes this.
  9. Apr 23, 2019 at 6:39 PM
    #9
    TacoRated

    TacoRated Do the chickens have large talons?

    Joined:
    Apr 18, 2016
    Member:
    #184657
    Messages:
    601
    Gender:
    Male
    Colorado
    Vehicle:
    2016 DCSB TRD OR
    High speed, special purpose duct-tape noise cancellation LCAs. Redline Tuning hood struts Hefty Fabworks Rock Sliders Trifold Bed Cover TRD Pro Grille
    Sorry just saw this. A month too late. I haven’t touched it since I started using numpy.
     

Products Discussed in

To Top