Answered

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...

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...

7 months ago | 0

Answered

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...

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...

7 months ago | 0

Answered

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...

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...

7 months ago | 0

| accepted

Answered

Error starting desktop for R2019a-Windows 10

Have a look into this answer, https://in.mathworks.com/matlabcentral/answers/217765-why-does-matlab-hang-at-splash-screen-and-g...

Error starting desktop for R2019a-Windows 10

Have a look into this answer, https://in.mathworks.com/matlabcentral/answers/217765-why-does-matlab-hang-at-splash-screen-and-g...

7 months ago | 0

Answered

how to get licence key

Check out this link, enter your email address to get your trial version in this link.

how to get licence key

Check out this link, enter your email address to get your trial version in this link.

7 months ago | 0

Answered

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] ; ...

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] ; ...

7 months ago | 0

Answered

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 ...

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 ...

8 months ago | 0

Answered

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...

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...

8 months ago | 0

Answered

for loop in matlab

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

for loop in matlab

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

8 months ago | 0

Answered

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

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

8 months ago | 0

Answered

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...

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...

8 months ago | 0

Solved

Pangrams!

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

8 months 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 ...

8 months 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...

8 months 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...

8 months 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...

8 months 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...

8 months 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 =...

8 months 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...

8 months 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...

8 months 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...

8 months 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...

8 months 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...

8 months 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, ....

8 months 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...

8 months 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...

8 months ago

Solved

Determine if input is odd

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

8 months 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 ...

8 months 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...

8 months ago