Source Code Online Home Categories Top Code New Code Submit Code
Search
Code Directory
 ASP
 ASP.NET
 C/C++
 CFML
 CGI/PERL
 Delphi
 Development
 Flash
 HTML
 Java
 JavaScript
 Pascal
 PHP
 Python
 SQL
 Tools
 Visual Basic & VB.NET
 XML
New Code
MDB (Access) to DBF Converter 2.20
Voice Broadcasting Autodialer Software 3.4
Faxmind Server 5.3.9.1221
CDBFlite 1.35
PHP Groupon Clone Script 1.0.4
XLS to CSV Converter 1.20
dbForge SQL Complete 4.8
Human Resources/Personnel Management 2
Silverlight .NET Video Capture SDK 1.6
VISCOM TWAIN Scanner SDK ActiveX 5.22
VISCOM Free PowerPoint Viewer ActiveX 1.93
Human Resources Interview 2
dbForge SQL Complete Express 4.8
AutoIt 3.3.12.0
DBF to MDB (Access) Converter 2.50
Top Code
Stanford Conference And Research Forum 2007
JLog/JScriptLog - Prolog in Java* rc
BookShop Management 0.1
Billing System 1.0.1
Leave Application Management System 2.0.1
Hotel Management - Full Board Version 5.29
Snake game C 1.1
Human Resources Timesheet Monitoring 2
Hotel Management FB Restaurant Version 5.25
Command School Student Management System 109
WPML Multilingual CMS 2.0.4.1
School Management Script 1.0.4
Quiz App Starterkit - Universal iOS 1.0
Ping Pong Game Code Script 1.1
RED SNAKE GAME 1.1
Top Rated
WTK MLM Software 1.6.5
SoundCloud Clone 3.0
Netflix Clone 3.0
Hulu Clone 3.0
DTM Data Generator for JSON 1.00.01
OpenWire Studio Beta2
SignalLab VC++ 5.0.3
PlotLab VC++ 5.0.3
InstrumentLab VC++ 5.0.3
BasicVideo VC++ 5.0.3
Contest Software - Agriya v2.0b2
AudioLab VC++ 5.0.3
SignalLab .NET 6.0
PlotLab .NET 6.0
IntelligenceLab .NET 6.0
MSPA 1.0
File ID: 83517




MSPA 1.0
Download MSPA 1.0http://www.mathworks.comReport Error Link
License: Shareware
File Size: 10.0 KB
Downloads: 1
Submit Rating:
MSPA 1.0 Description
Description: The MATLAB function mspa is a mex interface function to the C function spa.c developed by National Renewable Energy Laboratory (NREL) for accurately computing the position of the sun on the sky.

The algorithm on which the reference implementation spa.c is based is described in the report "Solar position algorithm for solar radiation application" by Ibrahim Reda and Afshin Andreas, National Renewable Energy Laboratory (NREL) Technical report NREL/TP-560-34302, Revised January 2008.

The report is available from
http://rredc.nrel.gov/solar/codesandalgorithms/spa/
There is also a link from which the reference implementation spa.c and a corresponding spa.h file can be downloaded.

Once the zip-file in this submission is unpacked and the files spa.c and spa.h downloaded to the same directory, the mex interface function can be compiled with mex mspa.c spa.c

The calling syntax of mspa is
res = mspa( arg )
where arg is a column vector with 17 rows containing the arguments to the function spa.c, and res is a column vector containing the results of the function spa. The ordering of individual parameters in the argument follows the one described in the report, look at the file mspa_tester.m for details.

A valid argument arg can also hold multiple columns, i.e. it can be a 17 x n matrix where n > 1. If so, the result is also a matrix with equally many columns and each column of the result holds the result of the function spa evaluated for the corresponding column of the argument matrix.

License: Shareware

Related: Syntax, Column, Vector, arguments, Calling, mspac, Submission, Zipfile, Function

O/S:BSD, Linux, Solaris, Mac OS X

File Size: 10.0 KB

Downloads: 1



User Review for MSPA
- required fields
     

Please enter text on the image