Question

storing output (which are matrices) of for loops

Hello, I am trying to store my output from for loop to be used later in code. The output is a 2x4 matrix for each cycle of loop....

3 years ago | 2 answers | 0

Question

reading selected columns of multiple files and storing the data

Hi, I have a simple problem but as a beginner stuck on it. I want to read 10 files in matlab with 3 columns in each file. I want...

3 years ago | 1 answer | 0

Answered

Solving trigonometric non-linear equations in MATLAB

hi john, can you comment on why my code (similar as the original question is not giving me any solution? I will really appreciat...

Solving trigonometric non-linear equations in MATLAB

hi john, can you comment on why my code (similar as the original question is not giving me any solution? I will really appreciat...

3 years ago | 0

Question

Hello, I want to solve system of non linear equations using fsolve. There are thre equations and two unknowns K and L. looking at my code, please advice how to best do this. Also please advice if this is the best way or there is an alternate option.

Ld= 0.8194 %constant % cos^2(K*L)+ Ld*K*sin(K*L)cos(K*L)=2.2 two non linear equations % cos^2(K*L)=0.299 % Ld*cos^2(...

3 years ago | 1 answer | 0

Question

Hi, i have a problem regarding curve fitting. I have a set of data which is linear, but i want to fit a cos(k*l)^2 to this data and wants to find for which value of (k*l), for which the initial linear part of cosine curve fits my data?

%% Here is my code. [data]=[0 0 0.050000000000000 1.108646244630E-01 0.100000000000000 2.217423074817E-01 0.1...

3 years ago | 1 answer | 0