change of variable
古いコメントを表示
I asked this question before but I missed an important point:
I would like to be able to Change 'X7' . I don't want to Do anything with the "X" because I have Y7, Z7,K7 in other plots. Basically I just want to be able to change the digit "7" and not the letters.
Here is my code:
subplot(3,2,1)
Hs=spectrum.periodogram;
psdest = psd(Hs,X7,'Fs',Fs);
semilogx(psdest.Frequencies,10*log10(psdest.Data));
grid on;
xlabel('Frequency (Hz)')
ylabel('dB/Hz')
title('X7')
3 件のコメント
Jan
2011 年 11 月 3 日
Please use code formatting as explained in the "MArkup help" link on this page.
The question is not clear. Do you want to change the name of the variable? Perhaps this helps: http://matlab.wikia.com/wiki/FAQ#How_can_I_create_variables_A1.2C_A2.2C....2CA10_in_a_loop.3F
Fangjun Jiang
2011 年 11 月 3 日
If you read the answers to your previous same question, both answers provide valid solution.
Walter Roberson
2011 年 11 月 3 日
The previous answers were at http://www.mathworks.com/matlabcentral/answers/20170-change-variable-name
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で MATLAB についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!