Welcome to the North American Subaru Impreza Owners Club Friday April 18, 2014
Home Forums WikiNASIOC Products Store Modifications Upgrade Garage
NASIOC
Here you can view your subscribed threads, work with private messages and edit your profile and preferences Home Registration is free! Visit the NASIOC Store NASIOC Rules Search Find other members Frequently Asked Questions Calendar Archive NASIOC Upgrade Garage Logout
Go Back   NASIOC > NASIOC Miscellaneous > Off-Topic

Welcome to NASIOC - The world's largest online community for Subaru enthusiasts!
Welcome to the NASIOC.com Subaru forum.

You are currently viewing our forum as a guest, which gives you limited access to view most discussions and access our other features. By joining our community, free of charge, you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is free, fast and simple, so please join our community today!

If you have any problems with the registration process or your account login, please contact us.
* Registered users of the site do not see these ads.
Reply
 
Thread Tools Display Modes
Old 06-23-2013, 07:26 PM   #1
MPRZIV
Scooby Newbie
 
Member#: 49306
Join Date: Nov 2003
Chapter/Region: South East
Location: Boca Raton
OMGHi2U matlab help!

I got it!
* Registered users of the site do not see these ads.

Last edited by MPRZIV; 06-24-2013 at 09:40 AM.
MPRZIV is offline   Reply With Quote
Old 06-23-2013, 08:09 PM   #2
burnera
Scooby Newbie
 
Member#: 56232
Join Date: Feb 2004
Chapter/Region: RMIC
Location: omaha
Vehicle:
89 325I
i don't know

Default

Killing yourself will feel better.
burnera is offline   Reply With Quote
Old 06-23-2013, 08:10 PM   #3
RastaMon
Scooby Newbie
 
Member#: 106431
Join Date: Jan 2006
Location: Weazel Plaza, Apt 101
Default

Have you tried using a mobile meth lab, so you can move around easier?
RastaMon is offline   Reply With Quote
Old 06-23-2013, 08:22 PM   #4
CatfaceType-R
Scooby Guru
 
Member#: 81102
Join Date: Feb 2005
Chapter/Region: MWSOC
Location: Brushyoteefs@dentists.cats
Default

If you ever go to the Bahamas without me, I'll cut yo froat.
CatfaceType-R is offline   Reply With Quote
Old 06-23-2013, 08:50 PM   #5
Zarno
Scooby Newbie
 
Member#: 171231
Join Date: Feb 2008
Location: Chicago, IL
Vehicle:
04 WRX
white

Default

Edit: I can read.

PM me the MATLAB program and Excel file, or an equivalent dummy, and I'll try to figure it out.
Zarno is online now   Reply With Quote
Old 06-23-2013, 09:01 PM   #6
f4phantomii
Scooby Specialist
 
Member#: 58504
Join Date: Mar 2004
Chapter/Region: South East
Location: Ready to try OpenECU.org!!!
Vehicle:
2004 STi w/o wing
Aspen White / Silver

Default

Sounds like you have it in debug mode where it steps through line by line.

What version of Matlab?
f4phantomii is offline   Reply With Quote
Old 06-23-2013, 09:08 PM   #7
MPRZIV
Scooby Newbie
 
Member#: 49306
Join Date: Nov 2003
Chapter/Region: South East
Location: Boca Raton
Default

Quote:
Originally Posted by f4phantomii View Post
Sounds like you have it in debug mode where it steps through line by line.

What version of Matlab?
This is quite possible.

R2013a
MPRZIV is offline   Reply With Quote
Old 06-23-2013, 09:52 PM   #8
Capt Crunch
Scooby Guru
 
Member#: 10852
Join Date: Oct 2001
Chapter/Region: MAIC
Location: Cleveland / UMD College Park
Vehicle:
Then : JDM Ver 7 STi
Now : E46 M3 / MKVI GTI

Default

I effing hate MATLAB. Sorry I have nothing to contribute.
Capt Crunch is offline   Reply With Quote
Old 06-23-2013, 09:53 PM   #9
MPRZIV
Scooby Newbie
 
Member#: 49306
Join Date: Nov 2003
Chapter/Region: South East
Location: Boca Raton
Default

Quote:
Originally Posted by Capt Crunch View Post
I effing hate MATLAB. Sorry I have nothing to contribute.
It's all good, you were one of the folks I had in mind who might have been a matlab whiz. Thanks for checking in
MPRZIV is offline   Reply With Quote
Old 06-23-2013, 10:11 PM   #10
sconniescoob
Scooby Newbie
 
Member#: 161488
Join Date: Oct 2007
Chapter/Region: MWSOC
Vehicle:
2002 WRX Wagon, PSM
UP/DP/CB, PnP TD04

Default

Quote:
Originally Posted by MPRZIV View Post
I'm working on a project, pricing options. I have option data in an excel spreadsheet, I also have a matlab program to price options. The problem is I cannot for the life of me figure out how to get matlab to calculate all of the options (all rows) in one swoop. Right now the program only works if I go row by row executing each one. This is fine and dandy, but I have a few hundred thousand rows of data.

Anyone that wants to help, send me a pm I can email you the program as well as a small portion of my spreadsheet.

I'm sure I'm doing something basic incorrectly, I'm just not as familiar with matlab as I should be.

If you can get it to execute for all the rows on my small spreadsheet, so I can then follow the process with my larger data set I will gladly paypal you enough for a 12-pack of beer for your troubles.
It has been a few years for me, and hard to know without looking at your code to see what you're trying to do....but given the multitude of non-standard arithmetic operators (from a linear algebra standpoint) start there. You may be missing a '.' somewhere, etc. Go line by line and execute to see where it is breaking.

Edit: Or maybe you need to loop across your rows?

Last edited by sconniescoob; 06-23-2013 at 10:24 PM.
sconniescoob is offline   Reply With Quote
Old 06-24-2013, 12:46 AM   #11
philswrx04
Scooby Newbie
 
Member#: 76847
Join Date: Dec 2004
Chapter/Region: South East
Location: Greensboro,GA Auburn,AL
Vehicle:
2011 STi

Default

According to a professor a few years ago "it is not a glorified calculator." The whole class. Yes,yes it is.
philswrx04 is offline   Reply With Quote
Old 06-24-2013, 01:28 AM   #12
MPRZIV
Scooby Newbie
 
Member#: 49306
Join Date: Nov 2003
Chapter/Region: South East
Location: Boca Raton
Default

12345

Last edited by MPRZIV; 06-24-2013 at 09:41 AM.
MPRZIV is offline   Reply With Quote
Old 06-24-2013, 07:30 AM   #13
Bryan T
Scooby Newbie
 
Member#: 17948
Join Date: Apr 2002
Chapter/Region: SCIC
Default

If your excel file only has one row, does it work? Do you get the matrix dimension error when you add a second row?
Bryan T is offline   Reply With Quote
Old 06-24-2013, 08:34 AM   #14
UkNuck
Scooby Guru
 
Member#: 21808
Join Date: Jul 2002
Chapter/Region: E. Canada
Location: National Capital Region
Vehicle:
02 GroceryGettAr
Nonemore Black

Default

So what are you having trouble with exactly? loading the xlsx file into a matlab matrix? iterating over the rows of the matrix?

Matlab has a xlsread function that you can use directly, or you can export as csv and use dlmread
UkNuck is offline   Reply With Quote
Old 06-24-2013, 09:16 AM   #15
sconniescoob
Scooby Newbie
 
Member#: 161488
Join Date: Oct 2007
Chapter/Region: MWSOC
Vehicle:
2002 WRX Wagon, PSM
UP/DP/CB, PnP TD04

Default

Quote:
Originally Posted by MPRZIV View Post

I load the spreadsheet and the program, however when I run it to price all of the options in one shot, I get a matrix dimension error.
Not going to download your code, but what line is specifically giving you the error? What code is executing? What are the dimensions of each array and vector in the calculation? I'm betting you've got something that doesn't agree.
sconniescoob is offline   Reply With Quote
Old 06-24-2013, 09:22 AM   #16
Zarno
Scooby Newbie
 
Member#: 171231
Join Date: Feb 2008
Location: Chicago, IL
Vehicle:
04 WRX
white

Default

I sent a PM, not sure if it went through.
Zarno is online now   Reply With Quote
Old 06-24-2013, 09:40 AM   #17
MPRZIV
Scooby Newbie
 
Member#: 49306
Join Date: Nov 2003
Chapter/Region: South East
Location: Boca Raton
Default

Got it to work out guys, had to add a couple of lines to the program to get it to do what I was trying to accomplish.
MPRZIV is offline   Reply With Quote
Old 06-24-2013, 09:42 AM   #18
Matt K
NASIOC Supporter
 
Member#: 45204
Join Date: Oct 2003
Chapter/Region: NESIC
Location: you are so complex
Vehicle:
16 you don't
respond to danger

Default

did you have to transpose or otherwise transform the imported table? I seem to screw up the import fairly frequently, and then need to reshape the imported file to get things to work right. But I am FAR from a matlab "whiz"
Matt K is offline   Reply With Quote
Old 06-24-2013, 09:45 AM   #19
MPRZIV
Scooby Newbie
 
Member#: 49306
Join Date: Nov 2003
Chapter/Region: South East
Location: Boca Raton
Default

Quote:
Originally Posted by Matt K View Post
did you have to transpose or otherwise transform the imported table? I seem to screw up the import fairly frequently, and then need to reshape the imported file to get things to work right. But I am FAR from a matlab "whiz"
I was using a program that was written to do something slightly different. Essentially it used 3 dimensional matrices, while my data was only 2 dimensional...so I was getting matrix mismatch errors. I needed to add a couple of lines to the program so that the program was expecting 2d matrices.
MPRZIV is offline   Reply With Quote
Old 06-24-2013, 10:42 AM   #20
MPRZIV
Scooby Newbie
 
Member#: 49306
Join Date: Nov 2003
Chapter/Region: South East
Location: Boca Raton
Default

Quote:
Originally Posted by honguqia View Post
I wish I could move to another planet.

Ok spambot.
MPRZIV is offline   Reply With Quote
Old 06-24-2013, 02:47 PM   #21
masskillingspree
Scooby Newbie
 
Member#: 176730
Join Date: Apr 2008
Chapter/Region: TXIC
Location: The Land of Sugar
Default

masskillingspree is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -4. The time now is 02:17 AM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Powered by Searchlight © 2014 Axivo Inc.
Copyright ©1999 - 2014, North American Subaru Impreza Owners Club, Inc.