So I was working on this code for school and it all works great, no problem with that…
However, I was wondering if there was a way to display my final values in a proper table with titles and all?
For now all I have is a display function listing the titles and below a matrix containing all my values, so basically i just want to join the two in a clean way.
clear all clc close all i=1; R=5; #Blade radius tSR=7; #Tip speed ratio lC=1; #lift coefficient B=3; #Number of blades aSP=[36.6,18.5,10.6,6.4,3.8,2,0.7,-0.2,-1,-1.6]; #Section pitch angle (in degrees) for r =0.5:0.5:5; rTable(i)=r; #r for reference ratio(i)=r/R; #r/R ratio lSR(i)=tSR*ratio(i); #Local speed ratio aRW(i)=atand(2/(3*lSR(i))); #Angle of the relative wind chord(i)=(8*pi*r*sind(aRW(i)))/(3*B*lC*lSR(i)); #Chord aA(i)=aRW(i)-aSP(i); #Angle of attack i=i+1; endfor display "| r | r/R | Chord | Angle of relative wind | Angle of attack | Section pitch angle |" tab(:,1)=rTable; tab(:,2)=ratio; tab(:,3)=chord; tab(:,4)=aRW; tab(:,5)=aA; tab(:,6)=aSP
Anyways thanks in advance!
- OS: e.g. Windows 10 (version 2004) or Ubuntu 20.04
- Octave version: e.g. Version 6.1.0
- Installation method: e.g. Downloaded and installed “octave-6.1.0-w64-installer.exe” from https://www.octave.org/download.html