How to convert ANS to MATRIX?
Show older comments
I got following:
x = [0:119] (enter) & then, y = x/120
Now I've all values of 'y'. for further calculation like (1-y)^2 matlab is asking to convert 'y' into matrix form and data in scalar form.
Error message is showing : "Error using ^ Inputs must be a scalar and a square matrix. To compute elementwise POWER, use POWER (.^) instead."
Can you help me out here to convert all data of 'y' in form of matrix? & whatever more you want to add...
Accepted Answer
More Answers (1)
D Dwiz
on 9 Mar 2017
0 votes
Categories
Find more on Logical in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!