Write an m-file in matlab which can perform a word search

Assignment Help MATLAB Programming
Reference no: EM132109210

PROGRAMMING IN MATLAB

WORD SEARCH PROGRAM

IGOLCQNRKSXT

LXHSRNKANSAS

MPAYAWCSAXET

MNDUFLNNIBMS

APISOXAOJKJA

IVSCDCWSDAND

NHLKRACJKFGA

EAOREGONCABV

KWTLBOHOLELE

PAJBBAHAGDEN

VILFDIYKTGAX

XIKVOWPCLUYW

Write an m-file in Matlab which can perform a word search, such as what you might find in a puzzle book. Words will be located somewhere in a two-dimensional array of letters. The instructor will provide an array for the groups to use to help test their program. This array contains all of the states in the United States that are six characters in length or less. Each group should store the word search file on their own disk or P-drive.

Each group will provide the following for this lab:

A working program: The program code should be commented in sufficient detail to allow the reader to understand the coding approach.

A write-up which includes:

a high-level flowchart of the operation of the program

an attachment to your Word document of the m-file code

include a cover sheet, with name(s), class, date and lab number

include this signed-off page scanned as an attachment if your program has been successfully demonstrated

the write-up should convey how the program was developed, what issues were encountered, whether the program was successful (and if not, why not), etc.

Lab Details

1. The program should be able to read in the following data files:

The word search file - this file contains the word search array

The file of words to be searched - the executed program should be able to scan for each word (state) in this file and locate that word in the word search.

Note that words in the word search may go in any of eight directions.

2. The result of executing the word search program should clearly indicate where each word begins in the word search array (row and column), and which direction it travels (e.g., up and to the right, straight down, etc.).

The word search should be flexible such that if the words are placed in a different word search of the same grid size (12x12), the new word locations will still be found.

Reference no: EM132109210

Questions Cloud

Create a method that determines a score for each : Using the helper class and text files described above, load the 20 movie names and the movie ratings from 30 people into two arrays in memory.
Code a program with functions to search and sort an array : Code a program with functions to search and sort an array, along with a print menu function and a dispatch function.
What is a programming language : Answer the following Question : What is a programming language?
Demonstrate the class with a driver program : In a course, a teacher gives the following tests and assignments: A lab activity that is observed by the teacher and assigned a numeric score.
Write an m-file in matlab which can perform a word search : Convey how the program was developed, what issues were encountered, whether the program was successful (and if not, why not), etc.
Create a patron class for the library : The class will have a user's name. library card number, and library fees (if owed). Have functions that access this data, as well as a function to set the fee.
Print out an error message that contains the first non-digit : This function accepts a C-string parameter (null-terminated char array) and return true if the C-string contains only digits.
Write a public static method named static long tribonacci : Write a public static method named static long tribonacci(int n, long a, long b, long c)
Create an sql or access database with all your friends : Create an SQL or Access database with all your friends' information and write a program to load the names in the combo box and also search the database.

Reviews

Write a Review

MATLAB Programming Questions & Answers

  Finite difference method

Use the finite difference method to calculate the temperature at the point specified since it is easier.

  Determine the necessary shell temperature

In a shell-and-tube heat exchanger, one fluid passes through a central tube while another fluid flows through an outer shell in the opposite direction. The purpose is to heat the fluid passing through the central tube.

  Find the integral of a function at an arbitrary location

Write a Matlab function to perform numerical integration of a set of evenly spaced data points using the trapezoidal rule

  Compute the speed of single-stage planetary gear train

Write a MATLAB function [speed] = planetary (N, emesh, first, last, arm) that computes the speed of a given link in a single-stage planetary gear train.

  Calculate and plot the error in the numerical derivative

Write a program to calculate and plot the error in the numerical estimate of the derivative.

  Create the graph using matlab functions

Create the graph, which contains a piecewise function where a line exists in the first interval, a parabola in the second interval, and the sine function in the third interval.

  Develop a simulation program

Develop a simulation program

  Create a vector in matlab

Create a three dimensional diagram of function.

  Open a named pipe and to read data from the pipe

Open a named pipe and to read data from the pipe in matlab

  Write the commands that will create the matrix

Write the commands that will create the matrix.

  Lagrange interpolating polynomial of degree

Lagrange interpolating polynomial of degree

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd