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
AnyGantt JS Gantt Charts 8.1.0
PHP Scripts Mall Pvt Ltd 1.0.2
Bytescout PDF To HTML SDK 8.7.0.2980
JavaScript Framework Shield UI 1.7.34
Fortune Car Rental Script 3.4
Fortune Stackoverflow Clone 3.4
VintaSoft Imaging .NET SDK 8.6
wolfSSL 3.12.2
Bytescout BarCode Generator SDK 4.62.0.964
ThomasNet Clone Script 2.0
Easy Button & Menu Maker 5.0
Entrepreneur News Portal 1.6
Fortune Quibids Clone 3.4
Database Workbench Pro 5.3.4
Extensibility Studio 2.0
Top Code
fastLogin 1.III
Face Detection & Recognition System 1.0
Chess Master 1.0
Nonlinear F-16 Fighter Model 1.0
Calendar Toolbox (calendar.inc) 1.0
Real Time Battle 1.1
College Management System Script 1.0.4
TIC TAC TOE AI GAME Script 1.1
My Free Fantasy League 1.0
Senna One-Page Html5 Template 1.0
efax 0.9
Circle on image 1.0
Restaurant Table Booking System 2.0
Simple Menu Code 1.1
Travel Booking script 1.0.4
Top Rated
Output Messenger - company chat software 1.7.6
Indiegogo Clone 3.0
PHP Image Resize Script 1.0
Jango Clone Script 1.0
Best Spotify Clone 1.0
Get Random Record Based on Weight 1.0.0
Travel Portal Script 9.29
Magento Product Designer 1.0
OFOS - Just Eat Clone Script 1.0
PrestaShop Upload Images Module 1.2.1
Trading Software 1.2.4
Readymade MLM Products 2.01
ADO.NET Provider for ExactTarget 1.0
Solid File System OS edition 5.1
Classified Ad Lister 1.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: 3
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: 3



User Review for MSPA
- required fields
     

Please enter text on the image