Found 34494 Articles for Programming

How to reverse a string in MATLAB?

Manish Kumar Saini
Updated on 09-Oct-2023 11:14:27

170 Views

MATLAB provides various built-in functions to reverse a string of text. In this tutorial, I am going to explain all the commonly used methods to reverse a string in MATLAB. Reverse a String Using "reverse" Function in MATLAB There is a built-in function "reverse" in MATLAB that we can use to reverse a string. Syntax reversed_string = reverse(string); The steps involved in reversing a string using the "reverse" function are given below − Step (1) − Create a string of text. Step (2) − Call the "reverse" function to reverse the string. Step (3) − Display the ... Read More

How to reverse a number in MATLAB?

Manish Kumar Saini
Updated on 09-Oct-2023 11:11:42

312 Views

In MATLAB, there are various methods and functions for reversing a given number. In this tutorial, I will explain all these methods one-by-one with the help of examples. Reverse a Number Using "fliplr" Function in MATLAB The "fliplr" is a built-in function in MATLAB that we can use to reverse a given number. Syntax reversed_num = fliplr(number); Here, the "number" must be a string. Here are the steps involved in reversing a given number using the "fliplr" function in MATLAB. Step (1) − Input the number. Step (2) − Convert the input number to a string. For ... Read More

How to remove spaces in a string in MATLAB?

Manish Kumar Saini
Updated on 09-Oct-2023 11:09:54

236 Views

MATLAB provides various methods and functions to remove spaces in a string. In this tutorial, we will cover the commonly used methods for removing extra spaces in a string. So, let’s start. Remove White Space in a String Using "isspace" Function In MATLAB, the "isspace" function is a built-in function that is used to determine and remove the ASCII white space present in a string. Syntax string_without_space = isspace('input_string'); Example Let us take an example in MATLAB programming to use this function to remove white spaces in a string. % MATLAB code to remove white space from ... Read More

Understanding Fusion Learning: The One Shot Federated Learning

Kalyan Mishra
Updated on 06-Oct-2023 16:19:35

115 Views

In this article we will learn about Fusion learning and get to know how its working, its advantages and all other parameters. As technology grows we are getting more concerned about privacy in the field of machine learning. Earlier we used to train the data in centralized form which is more vulnerable to privacy so we are shifting towards Federated learning which allows us to train models by collaborating and without sharing the raw data which is a good technique in terms of privacy. Let’s get to know about Federated Learning. Federated Learning This is a decentralized mechanism of machine ... Read More

Python - Variance of List

Kalyan Mishra
Updated on 06-Oct-2023 16:19:02

466 Views

In this article we will learn about variance and how to calculate the variance of list. You may have encountered this problem of finding the variance particularly in data science. So in this article we will learn how to find the variance. Variance This tells us how the data is spread, it gives us a measure of the degree of a set of points. We can calculate the variance of the list using various methods. Let’s learn about those methods. Method 1: Using the Statistics Module In this method we will use the built-in statistics model python for calculating the ... Read More

Python - Variable list slicing

Kalyan Mishra
Updated on 06-Oct-2023 16:18:18

234 Views

In this article we will learn about variable list slicing. As you know List slicing is very useful and powerful feature of Python using which we can cut out some specific portions of any list quickly. Python provides us various techniques and methods for slicing and extracting the elements based on some specific criteria or patterns. Take an example to understand − list number: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 33, 34, 56, 43, 67] We have list of some random numbers and suppose we want to slice some of the portion from the ... Read More

Python - Uncommon elements in Lists of List

Kalyan Mishra
Updated on 06-Oct-2023 16:17:07

277 Views

In this article we will learn about various methods using which we can find the uncommon element in the list of lists that means the element which is not present in the other list. When working with lists of lists in Python, it's common to encounter scenarios where you need to find the uncommon elements present in these nested structures. Finding the uncommon elements in lists of lists can be achieved using various methods and techniques. In this article, we will explore 8 examples and methods to help you easily identify the uncommon elements in your lists of lists. Example ... Read More

Finding the Word Analogy from given words using Word2Vec embeddings

Kalyan Mishra
Updated on 06-Oct-2023 16:15:52

179 Views

In this article we will learn about machine learning program which can find the word Analogy from the provided word. Take an example "Apple : fruit :: car :vehicle". In this analogy, "apple" and "car" are the two things being compared. "Fruit" and "vehicle" are the two categories that the things being compared belong to. The analogy is saying that apple is a type of fruit, just as car is a type of vehicle. So the human brain can identify the pattern but training machine to do the same task will be very difficult as we will require very very ... Read More

Understanding the Interpretations of Histograms

Kalyan Mishra
Updated on 06-Oct-2023 16:15:12

154 Views

In this article we will learn about histograms and we will see detailed view about histogram and its various types. We will also draw see implementation using python. Histogram Histogram provides us visual representation of data, it is used to shows bar chart for numerical data. We can visualize the different distributions and patterns in the dataset. X-axis in the histogram is used to denote the range of values and the y-axis is used to denote the frequency or count of data points. Applications of Histogram 1. Analysis of Data Distribution We use histogram to analyze the data distribution and ... Read More

Types Of Activation Functions in ANN

Kalyan Mishra
Updated on 06-Oct-2023 16:13:43

321 Views

This article we will learn about ANN and its types. We will also see programs on different types of Activation. Before diving into the types let's get to know what ANN is. ANN Artificial neural network (ANN) is a branch of machine learning which performs computation by forming a structure of biological neural network where each neuron can transmit the signal or processed data to other connected neurons. This structure is similar to the human brain in which neurons are interconnected to each other. Neural network is created when a connection of nodes or neurons forms a connection. Artificial ... Read More

Advertisements