Community Profile # Utkarsh Belwal

Last seen: 1 year ago Active since 2019

#### Statistics

All
• • • #### Content Feed

View by

Graph with countries in x axis
Example of how to plot BankingHeter vs Countries graph using plot function, A = readtable('UE.xlsx') ; A.Countries = categoric...

2 years ago | 0

read selected data from excel datasheet using if statement
A(:,2) >= 14 will give a matrix of 0s and 1s, if statement will execute only if A(:,2) >= 14 returns a matrix which has all 1s a...

2 years ago | 0

bitset error for uint64
Read the documentation of dec2bin, it is written that if number is greater than flintmax then it might not work properly. In you...

2 years ago | 0

| accepted

Error starting desktop for R2019a-Windows 10

2 years ago | 0

how to get licence key

2 years ago | 0

print a matrix in a specific sequence
length = 100 ; % This will produce a 120 length output A = [] ; value = 5 ; for i = 1 : length A = [A ; value] ; ...

2 years ago | 0

Why "find_system('Blocktype', 'Model')" doesn't work ?
You have to use the load_system() command first and then use the find_system(). For more information refer to the documentation ...

2 years ago | 0

How to plot this sawtooth wave and its fourier approximation
freq = 1 ; % Sawtooth frequency 1Hz T = 4 * freq ; fs = 1000; % Sampling Rate t = 0:1/fs:T-1/fs; x = sawtooth(2*pi*freq...

2 years ago | 0

for loop in matlab
% Here is a for loop which starts from 0 and ends at 100. for i = 0 : 100 % Your Code end

2 years ago | 0

how do I plot average and deviation standard at the same time?
You can refer to this matlab documentation https://in.mathworks.com/help/matlab/ref/errorbar.html

2 years ago | 0

How I can use printf or disp in MATLAB to print some special format of my data set?
A simple implementation is using a for loop and at each multiples of four print the required statement. Here is the code for sam...

2 years ago | 0

Solved

Pangrams!
A pangram, or holoalphabetic sentence, is a sentence using every letter of the alphabet at least once. Example: Input s ...

2 years ago

Solved

Remove all the consonants
Remove all the consonants in the given phrase. Example: Input s1 = 'Jack and Jill went up the hill'; Output s2 is 'a ...

2 years ago

Solved

Which doors are open?
There are n doors in an alley. Initially they are all shut. You have been tasked to go down the alley n times, and open/shut the...

2 years ago

Solved

Find the numeric mean of the prime numbers in a matrix.
There will always be at least one prime in the matrix. Example: Input in = [ 8 3 5 9 ] Output out is 4...

2 years ago

Solved

Who Has the Most Change?
You have a matrix for which each row is a person and the columns represent the number of quarters, nickels, dimes, and pennies t...

2 years ago

Solved

Remove the vowels
Remove all the vowels in the given phrase. Example: Input s1 = 'Jack and Jill went up the hill' Output s2 is 'Jck nd Jll wn...

2 years ago

Solved

De-dupe
Remove all the redundant elements in a vector, but keep the first occurrence of each value in its original location. So if a =...

2 years ago

Solved

Return the largest number that is adjacent to a zero
This example comes from Steve Eddins' blog: <http://blogs.mathworks.com/steve/2009/05/27/learning-lessons-from-a-one-liner/ Lear...

2 years ago

Solved

Create times-tables
At one time or another, we all had to memorize boring times tables. 5 times 5 is 25. 5 times 6 is 30. 12 times 12 is way more th...

2 years ago

Solved

Most nonzero elements in row
Given the matrix a, return the index r of the row with the most nonzero elements. Assume there will always be exactly one row th...

2 years ago

Solved

Cell joiner
You are given a cell array of strings and a string delimiter. You need to produce one string which is composed of each string fr...

2 years ago

Solved

Triangle Numbers
Triangle numbers are the sums of successive integers. So 6 is a triangle number because 6 = 1 + 2 + 3 which can be displa...

2 years ago

Solved

Find the alphabetic word product
If the input string s is a word like 'hello', then the output word product p is a number based on the correspondence a=1, b=2, ....

2 years ago

Solved

Balanced number
Given a positive integer find whether it is a balanced number. For a balanced number the sum of first half of digits is equal to...

2 years ago

Solved

Make the vector [1 2 3 4 5 6 7 8 9 10]
In MATLAB, you create a vector by enclosing the elements in square brackets like so: x = [1 2 3 4] Commas are optional, s...

2 years ago

Solved

Determine if input is odd
Given the input n, return true if n is odd or false if n is even.

2 years ago

Solved

Find the sum of all the numbers of the input vector
Find the sum of all the numbers of the input vector x. Examples: Input x = [1 2 3 5] Output y is 11 Input x ...

2 years ago

Solved

Select every other element of a vector
Write a function which returns every other element of the vector passed in. That is, it returns the all odd-numbered elements, s...

2 years ago

Solved