How do I simulate the N Oscillator Kuramoto Model with no loop

How do I simulate this formula with no loop?
This is what I am doing.
N=10;
theta=0:10;
W=0:10;
dydt=omega+(K/N).*(sin(theta(1)-theta(1))+sin(theta(2)-theta(1))+sin(theta(3)-theta(2))+(sin(theta(4)-theta(1))));

Answers (0)

Categories

Find more on Loops and Conditional Statements in Help Center and File Exchange

Products

Release

R2019b

Asked:

on 6 Dec 2020

Community Treasure Hunt

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

Start Hunting!