How do I make a specific range of numbers and increment?

49 ビュー (過去 30 日間)
jay jay
jay jay 2022 年 12 月 8 日
編集済み: John D'Errico 2022 年 12 月 8 日
How do i make a specific range of numbers and increment.
Given:
k=k0e^(-Q/R*T)
Q = 8000 cal/mol
R = 1.987 cal/mol K
kЈ = 1200 min-1
The values of k for temperatures from 100K to 500K, in increments of 50.

回答 (2 件)

Jonas
Jonas 2022 年 12 月 8 日
use colon operator
T=100:50:500
T = 1×9
100 150 200 250 300 350 400 450 500

John D'Errico
John D'Errico 2022 年 12 月 8 日
編集済み: John D'Errico 2022 年 12 月 8 日
What does any of the other information have to do with anything? That is, we have no interest in the values of Q, R, or kJ, or an equation that relates all of this to the variable T.
All that matters is k.
k = 1e5:50:5e5;
I would strongly suggest that you go back to basics. Go through one of the tutorials to be found on MATLAB, where one of the important things you might learn is in how to use tools like the colon operator.
Anyway, why did I say what I did about the other variables Q, R, kJ? Because I think you are letting that confuse and distract you. When you have a problem, solve ONE part at a time. But don't focus on the distractions. Solve one piece of the puzzle at a time.

カテゴリ

Help Center および File ExchangeGet Started with MATLAB についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by