photo

John McCann


Last seen: 4 years ago Active since 2021

Followers: 0   Following: 0

Statistics

  • Thankful Level 2
  • Thankful Level 1

View badges

Feeds

View by

Question


Index in position 2 is invalid. Array indices must be positive integers or logical values.
%% Material parameters data_rho = [7840,0.44]; data_Cp = [490,0.0733333]; data_k = [13.1947,0.0126919]; %% Geomet...

4 years ago | 1 answer | 0

1

answer

Question


Unable to perform assignment because the size of the left side is 1-by-1 and the size of the right side is 10-by-10. not sure why i am getting this error
data_rho = [7840,0.44]; data_Cp = [490,0.0733333]; data_k = [13.1947,0.0126919]; %% Geometry L = 0.03; %% Bo...

4 years ago | 1 answer | 0

1

answer

Question


array indices must be positive intergers or logical values - not sure why i am getting this error message. same code worked for a friend of mine.
clf reset x=0:0.1:1; y=[0.9,6.9,31.6,21.5,34.4,68.2,66.4,114.9,155.9,199.3,209.6]; p1=polyfit(x,y,1); % the code below ca...

4 years ago | 2 answers | 0

2

answers