Feeds
提问
I/O string
I'm having a difficulty on replacing the tag with the given replacement word on the given text file for the 3rd subfunction. he...
6 years 前 | 0 个回答 | 0
0
个回答提问
how will I replace a string with another string without using strrep?
function newstring = replace_tags(readstring,tag,replacement); newstring = ""; r_s=lower(readstring); i= strfind(r_s,tag); t...
6 years 前 | 2 个回答 | 0
2
个回答提问
How can I replace the tag with the given replacement without using strrep
Here is my code function [] = () clc;clear readstring = read_form('form.txt'); [tag,replacement] = read_sub_tag(); newstri...
6 years 前 | 0 个回答 | 0
0
个回答提问
How to read a txt and store in a variable using the linefeed/carriage return
function readstring = read_form(textfile) readstring = []; %empty readstring text=fopen(textfile); if text~=-1 while ~ feof(...
6 years 前 | 1 个回答 | 1