I keep getting the error using '/'.
이전 댓글 표시
"Error using /
Arguments must be numeric, char, or logical. "
I have a 64X1 matrix of vol_frac and particle_ratio each. 'c' goes from 1 to 64 using for loop. Please tell me what is going wrong and how to rectify it. I have tried writing "vf=vol_frac(c,1);" inside for loop so that vf isn't a matrix but still same problem.
mu_ratio=(1-(vol_frac(c,1)/0.605)*((particle_ratio(c,1))^1.2))^(-1.5125);
답변 (2개)
Alan Stevens
2024년 3월 8일
Try
mu_ratio=(1-(vol_frac(c,1)/0.605).*((particle_ratio(c,1)).^1.2)).^(-1.5125);
Notice the dots! .* .^
Difficult to be certain though. You should upload enough program for us to test.
VBBV
2024년 3월 8일
condition=readmatrix('cases.xlsx','Sheet',1,'Range','A2:C65');
댓글 수: 2
VBBV
2024년 3월 8일
use readmatrix function in place of readtable and run the code. The outputs from readtable are usually not numeric arrays
Adwait Mahajan
2024년 3월 8일
카테고리
도움말 센터 및 File Exchange에서 MATLAB에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!