Info

Diese Frage ist geschlossen. Öffnen Sie sie erneut, um sie zu bearbeiten oder zu beantworten.

How to concatenate two matrices into single with +/- sign between them (Matlab 2017b)

1 Ansicht (letzte 30 Tage)
Mukund
Mukund am 18 Nov. 2018
Geschlossen: MATLAB Answer Bot am 20 Aug. 2021
A=[1 2; 3 4] % Actual matrix is 100x100.
B=[0.53 0.75; 0.23 0.14] % Number of decimal is high and expected to be 2 max
% Expected result
C=[1+/-0.53 2+/-0.75; 3+/-0.23 4+/-0.14]

Antworten (1)

Cris LaPierre
Cris LaPierre am 18 Nov. 2018
Not possible with arrays of numbers. The only way to do this is to build a string or character array and save that as C.

Diese Frage ist geschlossen.

Community Treasure Hunt

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

Start Hunting!

Translated by