How to create table from formula

5 visualizaciones (últimos 30 días)
Krishnagopal V
Krishnagopal V el 5 de Ag. de 2021
Respondida: Matt J el 5 de Ag. de 2021
I want to create a table from an input A which is a matrix having 5 elements. I want to find variables x, y and z which are dependent on A by various formulas. I wanted to make a table showing the 5 values of input A along with respective values of x, y and z in each columns .

Respuestas (1)

Matt J
Matt J el 5 de Ag. de 2021
A=(1:5).';
x=A; y=10*A; z=100*A;
T=table(x,y,z)
T = 5×3 table
x y z _ __ ___ 1 10 100 2 20 200 3 30 300 4 40 400 5 50 500

Categorías

Más información sobre Tables en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by