Multiplying spreadsheet column by variable

Hello can a spreadsheet column be multiplied by a variable of a function to generate a new column?
g.

1 件のコメント

Azzi Abdelmalek
Azzi Abdelmalek 2016 年 7 月 30 日
variable of a function? what is it?

サインインしてコメントする。

 採用された回答

Azzi Abdelmalek
Azzi Abdelmalek 2016 年 7 月 30 日
編集済み: Azzi Abdelmalek 2016 年 7 月 30 日

0 投票

A=randi(10,4,3) % Example
Cst=10
A=[1;2;3]
B=A(:,2)*Cst %Multiply column 2 by constant Cst

5 件のコメント

Gavin Seddon
Gavin Seddon 2016 年 7 月 30 日
Thanks will you clarify this a little: there is some ambiguity with your abbreviations however I do see that a a constantly defined then multiplied. also is this done in the Matlab spreadsheet are most I install a toolbox?
Azzi Abdelmalek
Azzi Abdelmalek 2016 年 7 月 30 日
What do you a call a Matlab spreedsheet?
Gavin Seddon
Gavin Seddon 2016 年 7 月 30 日
When I have uploaded my table it may be viewed as columns of cells similar to that seen with Excel. Initially I thought it would be possible to enter commands similar to those of Excel.
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 件)

Community Treasure Hunt

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

Start Hunting!

Translated by