photo

John Medina


Last seen: 1 year ago Active since 2018

Followers: 0   Following: 0

Statistics

Feeds

View by

Question


Why do I get Subscript indices must either be real positive integers or logicals using this code? It appears that the error is in the last two lines. How can I solve this?
clear close all %Set up movie fig = figure; %movien = avifile('Vicsekmovie','FPS',3,'compression','none') ...

6 years ago | 1 answer | 0

1

answer

Question


Hi!! What is wrong in my code?
syms x y t 0<=t & t<=1; eqns = [x^2 + y^2 -1 == 0, x - t*cos(0)==0, y - t*sin(0)==0]; vars = [x y]; [solv, solu] = solv...

6 years ago | 2 answers | 0

2

answers

Question


How can you determine if a vector in R3 belongs to a three dimensional region with its conditions?
For instance v=(1,2,3) satisfices x^2 + y^2 + z^2 < 1?

6 years ago | 1 answer | 0

1

answer