Community Profile

photo

SUNGJIN KIM


Last seen: 2 years ago Active since 2020

Statistics

  • Thankful Level 2
  • Thankful Level 1

View badges

Content Feed

View by

Question


I keep getting an error. Help
%This progrem will use dfuncl.m tspan = 0: 0.05: 8; y = [0.4; 0;0]; [t , y]= ode23(@odefun, tspan, y); plot (t, y(:, 1)); x...

2 years ago | 1 answer | 0

1

answer

Question


Insufficient input arguments. continues to come out. Help
2.187 %This progrem will use dfuncl.m tspan = 0: 0.05: 8; y = [0.4; 0;0]; [t , y]= ode23(odefun, tspan, y); plot (t, y(:, 1...

2 years ago | 1 answer | 0

1

answer

Question


In the LU decomposition method, I used a 4*5 matrix. However, L and U should originally come out as 4*5 matrices, but both come out only 4*4 matrices. What is the cause?
function [L,U] = LU(A) A = [4 -2 -3 6 12;-6 7 6.5 -6.5 -6.5;1 7.5 6.25 5.5 16;-12 22 15.5 -1 17]; [m,n] = size(A); f...

3 years ago | 0 answers | 0

0

answers

Question


The msgbox pops up here, but when I click OK, the graph doesn't appear. Why?
hm = msgbox('To calibrate pick up three non-collinear points'); waitfor(hm) X = ones(3, 3); S = zeros(3, 2); prompt = ...

3 years ago | 1 answer | 0

1

answer

Question


If I follow this code I get the graph, but when I hit enter in the command window it says "Array index must be a positive integer or logical value" on line 45. I don't know what this means... .
Hf_fig = figure; phi = 0: 15: 90; heel = pi*phi/180; B = 6.480; T = [ 1.729 1.575 1.163 0.600 -0.012 -0.693 -1.354 ]; w ...

3 years ago | 0 answers | 0

0

answers

Question


If you follow this code, you will see a graph, but when you hit enter, line 45 keeps saying "'l' is an unrecognizable function or variable." But even though for I= 2:k is given, what is the problem?? ?
Hf_fig = figure; phi = 0: 15: 90; heel = pi*phi/180; B = 6.480; T = [ 1.729 1.575 1.163 0.600 -0.012 -0.693 -1.354 ]; w ...

3 years ago | 1 answer | 0

1

answer

Question


M(1,:) = [0;KB(1)]; In'The left side size is 1x7 and the right side size is 2x1, so the value cannot be assigned'. What is the problem???
Hf_fig = figure; phi = 0: 15: 90; heel = pi*phi/180; B = 6.480; T = [ 1.729 1.575 1.163 0.600 -0.012 -0.693 -1.354 ]; w ...

3 years ago | 1 answer | 0

1

answer

Question


In line 5,'The dimensions of the matrix must match.' Is displayed. How do I fix it???
Hf_fig = figure; set(Hf_fig, 'NumberTitle', 'off',... 'Name', 'B and M curves'); clf x = -T.* sin(heel); y = T.*cos(heel...

3 years ago | 0 answers | 0

0

answers

Question


Looking at the graph, there should be 3 graphs in the legend, but why are there 5?
function [SteadyHeel] = SailCode(stability, KG, GM, downflood) stability = [0 5 10 ... 85 900; 0 0.308 0.611... 3.249...

3 years ago | 1 answer | 0

1

answer