Help with my code?
Show older comments
I'm trying to solve for a set of values ([0,6]) for my squared function, but it only returns an error about "subscript indices must either be real positive integers or logicals" Here is my code :
clear;
clc;
t=[0:6];
k=0.4;
NO2(t) = (0.5./(1+(0.5)*(k)*t));
NO2_Squared(t) =(NO2(t)).^2
Accepted Answer
More Answers (0)
Categories
Find more on Aerospace Blockset in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!