Article Categories
- All Categories
-
Data Structure
-
Networking
-
RDBMS
-
Operating System
-
Java
-
MS Excel
-
iOS
-
HTML
-
CSS
-
Android
-
Python
-
C Programming
-
C++
-
C#
-
MongoDB
-
MySQL
-
Javascript
-
PHP
-
Economics & Finance
Programming Articles
Page 1754 of 2547
Creating Apps Using App Designer in MATLAB
MATLAB is a robust and high-level programming language extensively used in engineering and scientific fields for system design. The most important fact about MATLAB is that it provides an easy-to-use graphical user interface (GUI). MATLAB has a built-in App Designer tool that allows users to develop a variety of applications that seamlessly translate their concepts into user-friendly GUIs. Overall, MATLAB is an invaluable tool for conveying complex information in a simplified and accessible manner. In this tutorial, we will explore how to create a GUI App using App Designer in MATLAB. How to Create Apps using MATLAB App Designer? The ...
Read MoreFind Indices of Maximum and Minimum Value of Matrix in MATLAB
In MATLAB, a matrix is a 2D array that is mainly used store numerical data. MATLAB allows users to perform several different types of mathematical operations on matrices. This tutorial is primarily meant for explaining two matrix operations namely, finding indices of maximum and minimum elements of the matrix. However, MATLAB does not provide any direct method for finding the indices of maximum and minimum value of a matrix, but we can do this by using a combination of different built-in functions. For example, to find the index of maximum value of matrix, we can use a combination of the ...
Read MoreFind Index of Cells Containing My String in MATLAB
In MATLAB, a cell array is a type of data structure used to hold data of different data types and sizes. In short, a cell array allows us to store different types of data like numbers, characters, strings, arrays, and more. In a cell array, each cell can contain a specific type of data. Cell array is a powerful tool to handle heterogeneous data. In MATLAB, the curly braces '{}' are used to create a cell array, i.e. CellArray = {10, 'TutorialsPoint', [2 3 4]}; Hence, cell arrays play a vital role, when we need to store different types ...
Read MoreExtract Subsets of Consecutive Entries in a Matrix in MATLAB
MATLAB is a powerful tool to manipulate matrices. In this article, we will explore how to extract subsets of consecutive entries in a matrix using MATLAB. But before that let's first get an overview of subsets of consecutive entries in a matrix. In a matrix, a set of elements that located in either rows or columns, or both in a sequence is referred to as a subset of consecutive entries in the matrix. The subsets of consecutive entries in a matrix can be extracted by specifying a range of columns and rows. The subsets of consecutive entries in a matrix ...
Read MoreHow do I make an attributed string using Swift?
This article will explain how you can make an attributed string in the Swift language. What are the steps to apply different attributes to a string in Swift? In Swift, we use the NSAttributedString class to make an attributed string. In Swift, NSAttributedString is a class used to create and manage attributed strings. An attributed string is a string that has additional attributes, such as text color, font, and style, applied to parts of the string. This article will show different use cases for an attributed string. Basic Setup import UIKit class TestController: UIViewController { private ...
Read MoreHow do I change the font size of a UILabel in Swift?
You can change the font size of a UILabel in Swift by setting the font property of the UILabel to a UIFont object with the desired point size. Here is the code for the basic setup import UIKit class TestController: UIViewController { private let messageLabel = UILabel() override func viewDidLoad() { super.viewDidLoad() initialSetup() } ...
Read MoreHow do I add 1 day to an NSDate?
In this article, you will learn how to add the number of days to a date in the Swift language. Many times, you might need to modify the date by changing some number of days, weeks, months, etc. Swift provides an in-built concept for adding a component to date. Let's see some examples. Let's take a brief look at a few of the common concepts that will be used in these examples. Calendar Class The Calendar class in Swift is a class that represents a calendar, which is a system for organizing dates. It is used to perform calendar-related calculations, ...
Read MoreGetting a \"This application is modifying the autolayout engine from a background thread\" error?
In iOS development, this error frequently occurs while working on user interfaces. Also, you can reduce the chances of coming across this error if you write code carefully. Let's understand what this error is all about. It will help you to understand the reason behind this error if you read the error statement. The error "This application is modifying the autolayout engine from a background thread" is caused when an application attempts to make changes to the user interface from a background thread, which is not allowed in iOS development. Autolayout is a system for defining the layout of user ...
Read MoreGet the class name of an object as a string in Swift
This article will explain to you how to get the name of the class of an object in the Swift language. Swift provides us with a function called type(of:) to get the type of a value or the class name of an object. You can use the type(of:) function to find the dynamic type of a value, particularly when the dynamic type is different from the static type. The static type of a value is the known, compile-time type of the value. The dynamic type of a value is the value’s actual type at run-time, which can be a subtype ...
Read MoreHow to Write/create a JSON array using Java?
A JSON array is an ordered collection of values that are enclosed in square brackets i.e., it begins with '[' and ends with ']'. The values in the arrays are separated by ', ' (comma).Sample JSON array{ "books": [ Java, JavaFX, Hbase, Cassandra, WebGL, JOGL] }The JSON-simple is a light weight library which is used to process JSON objects. Using this you can read or, write the contents of a JSON document using Java program.JSON-Simple maven dependencyFollowing is the maven dependency for the JSON-simple library − com.googlecode.json-simple json-simple ...
Read More