Why do I get invalid expression error for this piece of code?
4 ビュー (過去 30 日間)
古いコメントを表示
Currently recieving this error from this code.
disp(['The number of days between bdate,'and, 'edate'; leapyr]);
0 件のコメント
回答 (1 件)
per isakson
2022 年 3 月 6 日
Missing comma and a semicolon
% disp(['The number of days between bdate,'and, 'edate'; leapyr]);
% % ^ ^
and = 'and';
leapyr = '2004';
disp(['The number of days between bdate, ', and, ' edate ', leapyr]);
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Web Services についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!