Using a for loop to create an array of values from the function of two vectors

조회 수: 1 (최근 30일)
I'm completely new to MATLAB and can't for the life of me figure out how to use for loops correctly. Been looking at this question for hours, and I know what I need to do, just not how to translate it into the required code
  댓글 수: 1
dpb
dpb 2021년 1월 16일
For homework Q?, show us what you've done so far and then ask specific Q? regarding where you got stuck...
HINT: start at the inside out here; solve the pieces you do know how to do and then putting it together should be more apparent.
BTW: While instructed to use a loop here, and using one instead of doubly-nested is some progress, the code can amd should be written w/o explicit looping. Hopefully your instructor will move on to that shortly...

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

답변 (1개)

Rishabh Mishra
Rishabh Mishra 2021년 1월 20일
Hi,
The MATLAB documentation on for loops provides extensive aid on how to use and apply the same. You can access the documentation page here.
Hope this helps.

카테고리

Help CenterFile Exchange에서 Loops and Conditional Statements에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by