Please give positive ratings for my effort. Thanks.
PROGRAM
clear
clc
%2. Input a string.
string = input('What is your string: ', 's');
%3. Check if the string is a palindrome or not.
if string == fliplr(string);
disp (['The string, ' string ', is a palindrome.']);
else
disp (['The string, ' string ', is not a palindrome.']);
end
IMAGE OF PROGRAM
IMAGE OF OUTPUT
for matlab programming beginner level Q3) We are given a Turkish word. Check if it is...
for matlab programming beginner level Q1) Write an algorithm for finding the prime numbers between 1 and 100 and displaying them. As you know; prime numbers are the ones that can only be divided by 1 and themselves, Example: 5 is a prime number. Write your algorithm in pseudocode and as flowchart. I
Given a 8-bit word 00111001, suppose when the word is read from memory, the new check bits are calculated based on the fetched reading is 0001. Provide details regarding how you get the answer. Part 1) Is the data fetched correctly? Part 2) If no, is the data bit or check bit goes wrong? Part 3) What is the additional checking bit that you need to store in the memory if you want to use it to detect two bits...
Given a file find the count of lines containing word "EFG". When should shell programming/scripting not be used?
C Programming Language on Linux - Word Frequency Program Please write a Program in C that will accept a text file name as a command-line argument via a main program that will do the following: First, read the file (first pass) and create a linked list of words (in their order of occurrence), with the frequency of each word set to 0. Then, read the file (second pass) and for each word identified, search the linked list, and when found,...
Programming classes (C, C++, Matlab, Java), regardless of language, often revolve around syntax. However, the underlying algorithm and the planning that goes into it is often the more critical part of computer programming This assignment will walk you through the steps of basic algorithm development. our job is to write a flowchart and pseudocode for the task below. You can follow the example given in the appendix as a guide. We have an array of size 10 . The entries...
Programming language --> Matlab The name of a text file Outputs: (cell) An Nx2 cell array listing words and their counts in sorted order Function Description: Have you ever seen those fancy word-clouds based on the frequency of word occurrences in some text? Well the first step of making a graphic like that is to figure out how often the words in some text occur, which is exactly what this function will do. You will count the number of occurrences...
MATLAB Define the following computer programming terms and give an example of each. MATLAB example Sequence Selection structure- Repetition structure - Relational operators (True = 1, False = 0) Logical operators (True = 1, False =0) And Or Less than Less than or equal to Greater than Greater than or equal to Equal to Not equal to Not ans ans Type the following relational operator commands into MATLAB in the command window one at a time. Write the results to...
solve part B Note: Do not use MATLAB (or other programming languages) build-in functions for regression. (a) Write a MATLAB (or other programming languages) function that accepts n values of xi and Yi, perform Linear Regression and returns values of rand, the model parameters ao and a. (6) Write another MATLAB (or other programming languages) function that accepts n values of X, and y(provided as arrays), checks for Linear, Power (y = axBx) and Saturation growth- rate (y = a*)...
Beginner Level Programming Question Consider the following scenario Number of Shirts Discount 5-10 10% 11-20 15% 21-30 20% 31 or more 25% The following C++ code segment that prompts the user for the number of shirts required and then display the discount. Assume that the discount is zero if number of shirts is less than 5. For example, if the your enter 15, then your code should output 15% Please select the correct statements A, B, C int shirts cin...
We tend to remember the meaning of what we read, not a word-for-word representation. This is an example of: a. autobiographical memory b. proactive interference c. the misinformation effect d. encoding of meaning Remembering how to ride a bicycle, even though you haven't ridden one for years, is an example of ________ memory a. declarative b. procedural c. episodic d. semantic With respect to the role of the hippocampus in memory storage, the weight of evidence suggests...