Question

Wind rose - collateral points, continuous circle at 50% and the percentages on a line (west to center)

Hello, I would like to make a wind rose just like figure 1, but the way I'm doing it just comes out as shown in figure 2. co...

1 month ago | 1 answer | 0

Question

How to calculate partial area-under-the-curve?

Hi, I'm trying to find the area under the curve (ABC) for a part of a graph. I use the "trapz" function, but this function calcu...

2 months ago | 3 answers | 0

Question

Error: "Dimension argument must be a positive integer scalar within indexing range" using trapz

x_24= [0; 4.6958; 5.6732; 14.2002; 15.4490; 16.0151; 17.9994; 21.7987; 24.1082; 29.8818; 37.4162; 41.1113; 55.6853; 59.9431] ...

3 months ago | 1 answer | 0

Question

Calculation of a given area using the trapz

Hello, to calculate the total area I used the trapz and it worked, but I can't do it for a certain area (figure above inside t...

5 months ago | 1 answer | 0

Question

If statement with multiple conditions

clear all; clc; close all Tp=[4 7 11 16]; u= [0.188 0.368 0.628 0.997]; u10= [5.5 9.7 15 21]; ni_a=1.326*10^(-5); sigm...

6 months ago | 2 answers | 0

Question

How to fix the error :Index exceeds matrix dimensions

clear all; clc; close all rho_sea=1027; rho_air=1225; g=9.8; k=0.4; alpha=0.008; gamma=3.3; delta_1=0.07; delta_2...

6 months ago | 0 answers | 0

Question

Loop with row and column difference (multiplication)

I would like to know how I do a loop multiplying Q1 with O3 (result in Q3). Then multiply Q3 with O4 and so on for each column. ...

6 months ago | 2 answers | 0

Question

Join the curves and make them into one (overlap)

alpha=0.008; gamma=3.3; g=9.80665; delta_1=0.07; % if f<=fp delta_2=0.09; % if f>fp Tp=[2 8 16]; fp_vector=1./Tp; i...

6 months ago | 1 answer | 0

Question

Surface chart using surf

I can make a surface chart using the surf with the following information: I was trying to do: surf(Ef_teta_T2(:,1),f_vector,...

6 months ago | 2 answers | 0

Question

Error: Assignment has more non-singleton rhs dimensions than non-singleton subscripts

clear all; clc; close all rho_sea=1027; rho_air=1225; g=9.8; k=0.4; alpha=0.008; gamma=3.3; delta_1=0.07; % if f<=...

7 months ago | 1 answer | 0

Question

For loop with three variables

u= [1.192 1.194 1.120]; % u_* [ms-1] z=[0.0021 0.0029 0.0033]; % z_0 [m] T=2:1:16; f=1./T; sigma= 2*pi*f; %[s-1] g=9.8;...

7 months ago | 1 answer | 0

Question

Matlab - create a table from a vector in the first row and another in the first column

Hello, I am trying to make a table inside Matlab, but it is not coming out with the correct results. My routine: alpha=0.008; ...

7 months ago | 1 answer | 0