MATLAB Answers

0

array addition without operator or built in function

Maaz Nayeem さんによって質問されました 2019 年 9 月 25 日
最新アクティビティ James Tursa
さんによって コメントされました 2019 年 9 月 25 日
hey, how to add two arrays of same size without using the addition operator or any built in function in matlab

  8 件のコメント

Guillaume
2019 年 9 月 25 日
The easy way to find out if something is built-in is to ask which:
>> which plus(1, 1)
built-in (C:\Program Files\MATLAB\R2019b\toolbox\matlab\ops\@double\plus) % double method
>> which minus(1, 1)
built-in (C:\Program Files\MATLAB\R2019b\toolbox\matlab\ops\@double\minus) % double method
If all built-in are banned, you could always go the 'easy' way: mex!
KALYAN ACHARJYA 2019 年 9 月 25 日
Hello Maze,
Looking for answer from your teacher, I am following the question. Please post the answer, when it will be solved.
James Tursa
2019 年 9 月 25 日
@Maaz: It seems the intent of the assignment is to simply add two arrays in a loop element-by-element, as an exercise in writing loops and accessing variable elements via indexing. Do you know how to do this? Have you tried anything yet? What problems are you having?

サインイン to comment.

0 件の回答


Translated by