error using linspace: input must be scalars
Mostrar comentarios más antiguos
clear all;
table = readtable ('data_part1.xlsx', 'Range', 'A1:E13')
sigma = table. (3) (1:12);
energy = table. (4) (1:12);
C12 = 4 * energy .* sigma.^12;
C6 = 4 * energy .* sigma.^6;
r = linspace (sigma * 0.95, sigma * 2.5, 12)
data has been imported from an excel spreadsheet hence the references, unsure of how to get rid of this error message on the last line of code? (0.95 and 2.5 are my min and max respectively)
Respuesta aceptada
Más respuestas (1)
SALINI BALASUBARAMANIUM
el 28 de Mzo. de 2022
0 votos
ObsrvWindow = linspace(1,100,K);
Categorías
Más información sobre Tables en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!