How do I put variable values into a text string in MATLAB?

前端 未结 5 1165
终归单人心
终归单人心 2021-02-13 19:17

I\'m trying to write a simple function that takes two inputs, x and y, and passes these to three other simple functions that add, multiply, and divide

5条回答
  •  夕颜
    夕颜 (楼主)
    2021-02-13 20:08

    I was looking for something along what you wanted, but wanted to put it back into a variable.

    So this is what I did

    variable = ['hello this is x' x ', this is now y' y ', finally this is d:' d]

    basically

    variable = [str1 str2 str3 str4 str5 str6]

提交回复
热议问题