stream3のエラーについて

조회 수: 6 (최근 30일)
巧 平山
巧 平山 2023년 10월 11일
댓글: 巧 平山 2023년 10월 12일
お世話になっています。
初学者です。簡単な質問ですが、ご回答いただければ幸いです。
stream3を用いて解析したいと考えています。
[startX,startY,startZ] = meshgrid(0,0,0);
verts = stream3(x,y,z,u,v,w,startX,startY,startZ);
lineobj = streamline(verts);
view(3)
このコードで、原点からの三次元流線データが欲しいです。
しかし、
次を使用中のエラー: matlab.internal.math.interp1
サンプル点は一意でなければなりません。
エラー: interp1 (行 188)
VqLite = matlab.internal.math.interp1(X,V,method,method,Xqcol);
エラー: stream3 (行 67)
szi=interp1(zz(:),1:szu(3),sz(k));
のエラーが出てしまっています。
どの様にすれば、解決できますか??サンプル点決定の為のアドバイスをぜひ頂きたいです。
  댓글 수: 4
Atsushi Ueno
Atsushi Ueno 2023년 10월 11일
多分最初の3項(G2x,G2y,G2z)が単調でない事がエラーの原因だと思います。
I think the error is probably due to the fact that the first three terms (G2x, G2y, G2z) are not monotonic.
巧 平山
巧 平山 2023년 10월 12일
ご回答ありがとうございます。G2x,G2y,G2zを調節することで、エラーが出なくなりました。有難うございました

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Matrix Indexing에 대해 자세히 알아보기

태그

제품


릴리스

R2023a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!