Feeds
提问
Splitting into function files
clear clc fid = fopen('hangman.txt','r'); if fid < 0, error('Cannot open file'); end data = textscan(fid,'%...
13 years 前 | 4 个回答 | 0
4
个回答提问
display+string
clear clc fid = fopen('hangman.txt','r'); if fid < 0, error('Cannot open file'); end data = textscan(fid,'%s'); da...
13 years 前 | 1 个回答 | 0
1
个回答提问
strings, while loop help
clear; clc; fid = fopen('hangman.txt','r'); if fid < 0, error('Cannot open file'); end data = textscan(fid,'%s'); data =...
13 years 前 | 2 个回答 | 0
2
个回答提问
String and display help
clear all clc fid = fopen('hangman.txt', 'r'); if fid < 0, error('Cannot open file.'); end CC = textscan(fid, '%s'); C ...
13 years 前 | 2 个回答 | 1
2
个回答提问
String help!?
fid = fopen('hangman.txt', 'r'); if fid < 0, error('Cannot open file.'); end CC = textscan(fid, '%s'); C = CC{1}; fclose(...
13 years 前 | 2 个回答 | 0
2
个回答提问
String function
Trying to get the program to display if the letter is in the word. And word = any word fid = fopen('hangman.txt', 'r'); ...
13 years 前 | 1 个回答 | 0
1
个回答提问
display help
I'm trying to create a program that plays a hangman game. So, how would I go about replacing the letters in the word with asteri...
13 years 前 | 1 个回答 | 0
1
个回答提问
Hangman game help
Quick briefing. I'm trying to create a program that will simulate a hangman game. My professor already gave me a list of words ...
13 years 前 | 1 个回答 | 0
1
个回答提问
Random function from a text file?
Basically, I have a text file with a bunch of words on it. I'm not sure how I can use MATLAB to randomly select one word.
13 years 前 | 2 个回答 | 0
2
个回答提问
Index exceeds matrix dimensions
clear clc count_eight=0; clear clc count_eight=0; RandStream.setDefaultStream = (RandStream('mt19937ar...
13 years 前 | 3 个回答 | 0