Can you explain ?
조회 수: 1 (최근 30일)
이전 댓글 표시
Could you please explain this line to me
a=min(b):0.001:max(c);
댓글 수: 1
Rik
2023년 1월 19일
I recovered the removed content from the Google cache (something which anyone can do). Editing away (part of) your question is very rude. Someone spent time reading your question, understanding your issue, figuring out the solution, and writing an answer. Now you repay that kindness by ensuring that the next person with a similar question can't benefit from this answer.
채택된 답변
KSSV
2022년 6월 30일
Thats is simple....
min(b)--> this takes minimum value from b
max(c)--> this picks maximum from c
a:b--> this will gnerate numbers between a and b with a difference of 1.
a:dx:b----> this will generate numbers between a and b with a difference given dx.
% EXample
a = 0 ;
b = 1;
dx = 0.1 ;
x = a:dx:b
length(x)
diff(x)
댓글 수: 2
Steven Lord
2022년 6월 30일
I'm guessing from these questions that you're fairly new to MATLAB. Am I correct? If so I suggest you start with the free MATLAB Onramp tutorial to quickly learn the essentials of MATLAB. After completing that tutorial the code segments you've posted should make more sense.
추가 답변 (0개)
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!