help finding vector slope
古いコメントを表示
hello all,
I am trying to plot a vector named vec1, where
con = abs(g1-g2)/abs(t1:t2)*Fs));
vec1 = [g1*ones(1,Fs*t1),con*ones(1,Fs*t2), g2*ones(1,Fs*t3)];
What I want to see is a graph that has a linear slope from t1 to t2.
There must be something wrong with the con variable, but I can't get my head around it. Any help?
Thank you in advance
1 件のコメント
Azzi Abdelmalek
2013 年 2 月 12 日
what are g1,g2,...
採用された回答
その他の回答 (4 件)
tony karamp
2013 年 2 月 12 日
the cyclist
2013 年 2 月 12 日
You don't really give enough detail to diagnose this, but I did notice that in the line
con = abs(g1-g2)/abs(t1:t2)*Fs));
the parentheses are balanced, so it's not a valid MATLAB statement.
Youssef Khmou
2013 年 2 月 12 日
0 投票
hi, you have to declare all variables in your example like others said so as to examine the code , but now details are missing .
tony karamp
2013 年 2 月 12 日
カテゴリ
ヘルプ センター および File Exchange で Numerical Integration and Differentiation についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!