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
DTM Data Generator for JSON 1.00.01
ApPHP WebsiteCleaner 1.0.2
Faxmind Server 5.1.1.0829
DecryptSQL 3.7.0
Fax Server Pro 9.0.0827
dbForge Fusion for Oracle 3.6
Code Line Counter Pro - Delphi Version 6.0
QPack Free Requirements Management Tool 7.0
dbForge Fusion for SQL Server 1.8
dbForge Fusion for MySQL 6.2
Cart2Cart: CRE Loaded to WooCommerce Migration 1.x
Hex Comparison 5.11740
Code Line Counter Pro - COBOL Version 6.0
7 Steps To Appointment Calendar In ASP.NET MVC5 1.0
Online Car Rental Management Software Solution Alpha
Top Code
BPEstate Real-Estate Marketplace Script 2.0
PHP Mafia RP 003
Learning PID Tuning III: Performance Index Optimization 1.0
Mini File Host 1.5
RenotifyMe 1.0
Inout Social Tiles Satandard
Efficiency Network Analyser 1.1
WCDMA FDD Simulink Models 1.1
Motion Detection in a video 1.0
GSM Traffic Channel Simulator 1.1
Slot machine in 3d Script 1.1
Simulink Model for Digital Modulation Techniques 1.0
Gmsk modulation 1.0
Mimesis 2.0
Candlestick Quantification 1.0
Top Rated
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
VideoLab .NET 6.0
SignalLab .NET 6.0
PlotLab .NET 6.0
IntelligenceLab .NET 6.0
InstrumentLab .NET 6.0
BasicVideo.NET 6.0
LogicLab VCL 7.0
Visual Live Binding for Delphi 7.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