Answered
how to create a function that counts all words in a document?
Check out the bagOfWords class in Text Analytics Toolbox. It solves exactly this problem. (You may want to have some preprocess...

más de 3 años ago | 0

Answered
how to find most common words in text by matlab
Finding the most common words is easy with Text Analytics Toolbox: >> sonnets = extractFileText("sonnets.txt"); >> sonnets = e...

más de 3 años ago | 2

| accepted

Answered
How to fucntions like plot f(x,y) = 2 when 0<=x<=1 and 0<=y<=x
If the region to plot over were a simple 0 ≤ x ≤ 1 and 0 ≤ y ≤ 1, you could use |fimplicit(f(x,y) - 2, [0 1 0 1])|. I don't thin...

más de 4 años ago | 0

| accepted

Answered
Int vs Integral; Int giving wrong results
As the documentation says down in the “Tips” section, |int(f,1,S)| assumes that |1 ≤ S|. In that region, your input function is ...

más de 4 años ago | 1

Answered
measuring term frequency of words
See <https://www.mathworks.com/help/textanalytics/ref/bagofwords.html the |bagOfWords| documentation>. E.g., you can use the |tf...

más de 4 años ago | 0

| accepted

Solved


5th Time's a Charm
Write a function that will return the input value. However, your function must fail the first four times, only functioning prope...

más de 4 años ago

Solved


Sums of Distinct Powers
You will be given three numbers: base, nstart, and nend. Write a MATLAB script that will compute the sum of a sequence of both ...

más de 4 años ago

Solved


"Cody" * 5 == "CodyCodyCodyCodyCody"
*Alice*: What? *"Cody" * 5 == "CodyCodyCodyCodyCody"*? You've gotta be kidding me! *Bob*: No, I am serious! Python supports...

más de 4 años ago

Solved


Acid and water
&#9878; &#9878; &#9878; &#9878; &#9878; &#9878; &#9878; &#9878; Assume that there is a 100 liter tank. It is initially fi...

más de 4 años ago

Solved


Number of Even Elements in Fibonacci Sequence
Find how many even Fibonacci numbers are available in the first d numbers. Consider the following first 14 numbers 1 1 2...

más de 4 años ago

Solved


The 5th Root
Write a function to find the 5th root of a number. It sounds easy, but the typical functions are not allowed (see the test su...

más de 4 años ago

Answered
Is it possible to convert symfun to sym?
Symfun is a subclass of sym, so, yes, a symfun is already a sym. To get only the body of the function, use |formula| or call ...

más de 4 años ago | 5

| accepted

Answered
Is there any video which shows the entire process of opinion mining on actual data?
In its simplest form, opinion mining can be viewed as a binary classification problem. There is an example at <https://www.mathw...

más de 4 años ago | 0

| accepted

Answered
How can I remove websites' links from a text?
The <https://www.mathworks.com/help/textanalytics/ref/eraseurls.html eraseURLs> functions might help. Which does a little more w...

más de 4 años ago | 0

Answered
Text Extraction and retrieval
It's probably easiest to split the text and then check the number of splits created to count, using string functions: str =...

más de 4 años ago | 0

Answered
How to Read PDF file in Matlab?
Just for the record, Text Analytics Toolbox (new in R2017b) includes a function |extractFileText| that will extract text data fr...

más de 4 años ago | 2

| accepted

Answered
Basic question about Text Analysis/Text Analytics/Text Mining using Matlab
As a quick update, the new <https://www.mathworks.com/products/text-analytics.html Text Analytics Toolbox> debuted in R2017b.

casi 5 años ago | 0

Answered
How to link 2 3D subplots to sync zoom and pan?
As Adam suggested in the comments, this seems to work: ax1 = subplot(1, 2, 1); [x,y,z] = peaks; surf(x,y,z); ax2 =...

casi 5 años ago | 5

| accepted

Solved


Triangle sequence
A sequence of triangles is constructed in the following way: 1) the first triangle is Pythagoras' 3-4-5 triangle 2) the s...

casi 5 años ago

Solved


Find a Pythagorean triple
Given four different positive numbers, a, b, c and d, provided in increasing order: a < b < c < d, find if any three of them com...

casi 5 años ago

Solved


Find out sum of all elements of given Matrix
Find out sum of all elements of given Matrix A=[1 2 3;4 5 6 ;7 8 9]; Answer must be: 45 *If you like this problem, pl...

casi 5 años ago

Solved


Area of an equilateral triangle
Calculate the area of an equilateral triangle of side x. <<http://upload.wikimedia.org/wikipedia/commons/e/e0/Equilateral-tr...

casi 5 años ago

Solved


Length of a short side
Calculate the length of the short side, a, of a right-angled triangle with hypotenuse of length c, and other short side of lengt...

casi 5 años ago

Solved


merge two matrices together in one matrix
a= [1 2 3 4]; b=[5 6 7 8]; take the first column from matrix (a)and (b)then insert them in matrix (c) respectively, and so on;...

más de 5 años ago

Solved


Sudoku square
We have a small Sudoku square, but one number is missing. x = [ 1 5 4 8 6 3 0 9 7 ] Make a function, wher...

más de 5 años ago

Solved


Is this triangle right-angled?
Given any three positive numbers a, b, c, return true if the triangle with sides a, b and c is right-angled. Otherwise, return f...

más de 5 años ago

Solved


Dimensions of a rectangle
The longer side of a rectangle is three times the length of the shorter side. If the length of the diagonal is x, find the width...

más de 5 años ago

Solved


Area of an Isoceles Triangle
An isosceles triangle has equal sides of length x and a base of length y. Find the area, A, of the triangle. <<http://upload...

más de 5 años ago

Solved


Words Count: A String Array Approach
Given an input character vector consisting of words, punctuation marks, white spaces, and possibly newline characters (\n), arra...

más de 5 años ago

Answered
How to use intervals within fplot?
In R2016a and beyond, you could use this: fplot(@f,[10,20],'MeshDensity',100) It's worth noting that |fplot| in these re...

más de 5 años ago | 1

Load more