how to do Shifting of text
5 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Assume this is text line:
volatile uint8_T AtomcMduleCnt_Z_Pt = 7U;/* Atomic Module Count in Pack */
I have to shift this line by 4 position:
volatile uint8_T @ AtomcMduleCnt_Z_Pt = 7U;/* Atomic Module Count in Pack */
so how to do shifting of text in matlab?
0 Kommentare
Antworten (1)
Stephan
am 27 Feb. 2020
Bearbeitet: Stephan
am 27 Feb. 2020
A = "volatile uint8_T AtomcMduleCnt_Z_Pt = 7U;/* Atomic Module Count in Pack */"
B = insertAfter(A,"uint8_T"," @")
A =
"volatile uint8_T AtomcMduleCnt_Z_Pt = 7U;/* Atomic Module Count in Pack */"
B =
"volatile uint8_T @ AtomcMduleCnt_Z_Pt = 7U;/* Atomic Module Count in Pack */"
4 Kommentare
Stephan
am 28 Feb. 2020
A = fileread('Input_file.txt');
B = replace(A, ["uint8_T " "real32_T " "real32_B "],["uint8_T Rom_" "real32_T Rom_" "real32_B Rom_"]);
fileID = fopen('Output_File.txt','w');
fprintf(fileID, B);
fclose(fileID);
Siehe auch
Kategorien
Mehr zu FPGA, ASIC, and SoC Development finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!