The video illustrates how to modify the elements of a matrix to either 1 or 0 using specific code. The method transforms all positive values in the matrix to 1, while all negative or zero values are converted to 0. The operation is demonstrated with an example using pre-defined matrix ‘A.’ The necessary code is run step by step: “A = A.*(A>0)” converts all negative or zero values into zero, and then “A = A./(A + 1.*(A==0))” transforms remaining positive values into 1. For further clarification or questions, viewers are encouraged to contact the programmers through provided contact channels.
Tag: modify
How to resize/ set the size of bitmap image using createScaledBitmap in your Android App?
In this video it shows how one can use createScaledBitmap method of Bitmap to resize or set the size of any image in the Bitmap. In this demo it uses ImageView widget to display the raw (unscaled) and resized images. I hope you like this video. For any questions, suggestions…
How to update or edit an existing contact in your phone from your App? – Android Studio code
In this video it shows the implementation of the app to update an existing contact in your phone. It uses ContentProviderOperation and newUpdate method to update any existing contact after searching it based on the display name. I hope you like this video. For any questions, suggestions or appreciation please…
How to save edited text (bold, italic, underline, alignment) in SQLite database in your Android App?
In this video it shows how to save the edit text information, such as Bold, Italics, underline or Left/ right/ center alignmnent (justification) in a SQLite database. Part 1 of this tutorial is available in the below link:https://programmerworld.co/android/how-to-create-your-own-text-editor-android-app-for-making-text-bold-italics-underline-alignment/ I hope you like this video. For any questions, suggestions or appreciation…
How to create an Excel file from your Android App?
This video shows the steps to create an Excel file in your Android App. It uses third party library (not available as in-built APIs) from org.apache.poi. It hard-codes the file name and sheet name in the code. However, that can be taken as an input from the user. For the…
MATLAB
The web content provides extensive information on multiple applications of MATLAB. Topics covered include how to design various applications like calculators, games, and alarm clocks using MATLAB App Designer, alongside solving different algorithms such as Quick Sort and Merge Sort. The content also delves into accessing and manipulating webcams, email functionality, and internet use within MATLAB. There are exercises about using MATLAB as a medium for text-to-speech conversion, creating and plotting 3-D images, generating PDF reports, running Google’s AI Palm API, etc. Towards the end, several website links give additional insights about connecting to databases and managing data using MATLAB.