필터 지우기
필터 지우기

Why everything is giving zero values??

조회 수: 1 (최근 30일)
Rizwana
Rizwana 2014년 2월 11일
댓글: Roger Stafford 2014년 2월 14일
I have been asked to calculate vorticity of three velocity components u,v&w. I have attached .txt file for the same. as i knew curl does the same in matlab. Hence i tried these lines of code.
u=VarName1;
>> v=VarName2;
>> w =VarName3;
>> Ulin =linspace(min(u),max(u),33);
>> Vlin =linspace(min(v),max(v),33);
>> Wlin =linspace(min(w),max(w),33);
>> [U,V,W]=meshgrid(Ulin,Vlin,Wlin);
>> [CURLX, CURLY, CURLZ, CAV] = curl(U,V,W);
when i type CURLX
all are showing zero values..
  댓글 수: 2
Jan
Jan 2014년 2월 14일
The attached file contains three columns of numbers. It is not clear how these values are connected to your question.
What is your question? If Matlab replies zeros, this is the correct result.
Roger Stafford
Roger Stafford 2014년 2월 14일
Refer to #115669 for a discussion of this same question. It was entered in duplicate.

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

답변 (0개)

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by