Multiplying spreadsheet column by variable

1 次查看(过去 30 天)
Hello can a spreadsheet column be multiplied by a variable of a function to generate a new column?
g.

采纳的回答

Azzi Abdelmalek
Azzi Abdelmalek 2016-7-30
编辑:Azzi Abdelmalek 2016-7-30
A=randi(10,4,3) % Example
Cst=10
A=[1;2;3]
B=A(:,2)*Cst %Multiply column 2 by constant Cst
  5 个评论
Azzi Abdelmalek
Azzi Abdelmalek 2016-7-30
编辑:Azzi Abdelmalek 2016-7-30
  1. You need to import your excell file using the Matlab function xlsread
  2. Use Matlab functions and operators to do the calculations you need, there are several Matlab functions, allowing you to do many kind of calculation and processing
  3. you can also link Excel to Matlab and use Matlab functions in Excel spreedsheet.
Gavin Seddon
Gavin Seddon 2016-8-1
Thanks for this, I will use the xlsread/write because I use Mac. Do you have a URL for these operators?

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Data Import from MATLAB 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by