![photo](/responsive_image/150/150/0/0/0/cache/matlabcentral/profiles/15440117_1557220903247_DEF.jpg)
Prasanth Sikakollu
Followers: 0 Following: 0
Feeds
문제를 풀었습니다
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...
대략 5년 전
문제를 풀었습니다
Pascal's Triangle
Given an integer n >= 0, generate the length n+1 row vector representing the n-th row of <http://en.wikipedia.org/wiki/Pascals_t...
대략 5년 전
문제를 풀었습니다
Find the two-word state names
Given a list of states, remove all the states that have two-word names. If s1 = 'Alabama Montana North Carolina Vermont N...
대략 5년 전
답변 있음
Want to add image in report from image variable in work space
You can try mlreportgen.dom.Image class to append the image to the report. Refer to the following documentation link for detail...
Want to add image in report from image variable in work space
You can try mlreportgen.dom.Image class to append the image to the report. Refer to the following documentation link for detail...
대략 5년 전 | 0
답변 있음
Cumulative sum with multiple constraints
You can try the following code to get the cumulative sum as fourth column in table T. date = [20190101; 20190101; 20190101; 201...
Cumulative sum with multiple constraints
You can try the following code to get the cumulative sum as fourth column in table T. date = [20190101; 20190101; 20190101; 201...
대략 5년 전 | 0
답변 있음
Bar plot using multiple table variables?
Hi, You can try the following code. Assuming that the data is present in the table named "table_data". % table_data has the da...
Bar plot using multiple table variables?
Hi, You can try the following code. Assuming that the data is present in the table named "table_data". % table_data has the da...
대략 5년 전 | 1
문제를 풀었습니다
Binary numbers
Given a positive, scalar integer n, create a (2^n)-by-n double-precision matrix containing the binary numbers from 0 through 2^n...
대략 5년 전
문제를 풀었습니다
Counting Money
Add the numbers given in the cell array of strings. The strings represent amounts of money using this notation: $99,999.99. E...
대략 5년 전
문제를 풀었습니다
Find state names that start with the letter N
Given a list of US states, remove all the states that start with the letter N. If s1 = 'Alabama Montana Nebraska Vermont Ne...
대략 5년 전
문제를 풀었습니다
Find state names that end with the letter A
Given a list of US states, remove all the states that end with the letter A. Example: Input s1 = 'Alabama Montana Nebras...
대략 5년 전
문제를 풀었습니다
Remove all the words that end with "ain"
Given the string s1, return the string s2 with the target characters removed. For example, given s1 = 'the main event' your ...
대략 5년 전
답변 있음
How do I plot a histogram for large data sets?
The basic difference between histogram and bar chart is: Histogram refers to a graphical representation; that displays data by ...
How do I plot a histogram for large data sets?
The basic difference between histogram and bar chart is: Histogram refers to a graphical representation; that displays data by ...
대략 5년 전 | 0
답변 있음
Error message while using if statement
Syntax of if conditional: if expression statements else statements end There should be no newline character betwee...
Error message while using if statement
Syntax of if conditional: if expression statements else statements end There should be no newline character betwee...
대략 5년 전 | 0
| 수락됨
답변 있음
How to use result in each iteration in a for loop and then use it in next loop?
Merge both the loops and use the generated result in the same loop. for i=1:10 x = 10*i; % This is the value generated. Ex...
How to use result in each iteration in a for loop and then use it in next loop?
Merge both the loops and use the generated result in the same loop. for i=1:10 x = 10*i; % This is the value generated. Ex...
대략 5년 전 | 0
문제를 풀었습니다
Target sorting
Sort the given list of numbers |a| according to how far away each element is from the target value |t|. The result should return...
대략 5년 전
문제를 풀었습니다
Bullseye Matrix
Given n (always odd), return output a that has concentric rings of the numbers 1 through (n+1)/2 around the center point. Exampl...
대략 5년 전
문제를 풀었습니다
The Goldbach Conjecture
The <http://en.wikipedia.org/wiki/Goldbach's_conjecture Goldbach conjecture> asserts that every even integer greater than 2 can ...
대략 5년 전
문제를 풀었습니다
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 ...
대략 5년 전
답변 있음
How to extract some columns from txt file to cell
Assume that the above text is in 'sample.txt'. Read data from sample.txt to a table using readtable() function. Extract the r...
How to extract some columns from txt file to cell
Assume that the above text is in 'sample.txt'. Read data from sample.txt to a table using readtable() function. Extract the r...
대략 5년 전 | 0
문제를 풀었습니다
Find the longest sequence of 1's in a binary sequence.
Given a string such as s = '011110010000000100010111' find the length of the longest string of consecutive 1's. In this examp...
대략 5년 전
문제를 풀었습니다
Nearest Numbers
Given a row vector of numbers, find the indices of the two nearest numbers. Examples: [index1 index2] = nearestNumbers([2 5 3...
대략 5년 전
문제를 풀었습니다
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, ....
대략 5년 전
문제를 풀었습니다
Which values occur exactly three times?
Return a list of all values (sorted smallest to largest) that appear exactly three times in the input vector x. So if x = [1 2...
대략 5년 전
답변 있음
can anyone know to write a mathlab function that takes an input integer "n" and computes the following
Using While loop, try the following function: function result = getFacWhile(n) result = 1; while n ~= 1 resu...
can anyone know to write a mathlab function that takes an input integer "n" and computes the following
Using While loop, try the following function: function result = getFacWhile(n) result = 1; while n ~= 1 resu...
대략 5년 전 | 0
문제를 풀었습니다
Back and Forth Rows
Given a number n, create an n-by-n matrix in which the integers from 1 to n^2 wind back and forth along the rows as shown in the...
대략 5년 전
문제를 풀었습니다
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...
대략 5년 전
문제를 풀었습니다
Sort a list of complex numbers based on far they are from the origin.
Given a list of complex numbers z, return a list zSorted such that the numbers that are farthest from the origin (0+0i) appear f...
대략 5년 전
답변 있음
how to find the equivalent value in the same row of the next column?
Use a for loop to iterate over the values in 1st column and if the required condition is satisfied, append the value in the 2nd ...
how to find the equivalent value in the same row of the next column?
Use a for loop to iterate over the values in 1st column and if the required condition is satisfied, append the value in the 2nd ...
대략 5년 전 | 0
답변 있음
Error: File: Symbolic_Relationships.m Line: 17 Column: 11 The expression to the left of the equals sign is not a valid target for an assignment.
The error is due to the square brackets that you used to denote a block for if condition. Square brackets are not required to de...
Error: File: Symbolic_Relationships.m Line: 17 Column: 11 The expression to the left of the equals sign is not a valid target for an assignment.
The error is due to the square brackets that you used to denote a block for if condition. Square brackets are not required to de...
대략 5년 전 | 0
| 수락됨