Answered

Extract exponent of term in symbolic expression?

I believe you are looking for polynomialDegree: >> polynomialDegree(expression,a) ans = 2

Extract exponent of term in symbolic expression?

I believe you are looking for polynomialDegree: >> polynomialDegree(expression,a) ans = 2

9 maanden ago | 1

Answered

Symbolic: remove time dependency of variables or take derivative wrt time dependent variable

With your line syms alpha, you have overwritten the previous value of the MATLAB(!) variable alpha, so the alpha(t) in your subs...

Symbolic: remove time dependency of variables or take derivative wrt time dependent variable

With your line syms alpha, you have overwritten the previous value of the MATLAB(!) variable alpha, so the alpha(t) in your subs...

10 maanden ago | 0

Answered

Graphing a hyperbola and its tangent lines

Your tangent lines are very short, and you plot the hyperbola right on top of them. Change the order, increase the size, and the...

Graphing a hyperbola and its tangent lines

Your tangent lines are very short, and you plot the hyperbola right on top of them. Change the order, increase the size, and the...

10 maanden ago | 0

Answered

Help with displayFormula from symbolic math toolbox

Rendered formulas are only available in Live Editor, whether you use displayFormula or just have standard output. In Command Wi...

Help with displayFormula from symbolic math toolbox

Rendered formulas are only available in Live Editor, whether you use displayFormula or just have standard output. In Command Wi...

10 maanden ago | 0

Answered

Live Script result S(sig1) and C(sig1)?

Those are fresnels and fresnelc. Hovering your mouse over the output will show the function names behind these rendered names, a...

Live Script result S(sig1) and C(sig1)?

Those are fresnels and fresnelc. Hovering your mouse over the output will show the function names behind these rendered names, a...

10 maanden ago | 1

Answered

text analytics toolbox and MeCab

Text Analytics Toolbox does not ship the tooling to compile an extended MeCab dictionary. But if you have one for your field (I ...

text analytics toolbox and MeCab

Text Analytics Toolbox does not ship the tooling to compile an extended MeCab dictionary. But if you have one for your field (I ...

10 maanden ago | 0

Answered

How to use word2vec with the documents

doc2sequence is actually the tool to use to run word2vec on a document, plus padding the output to a common length if desired – ...

How to use word2vec with the documents

doc2sequence is actually the tool to use to run word2vec on a document, plus padding the output to a common length if desired – ...

10 maanden ago | 0

Answered

partial word search text analytics toolbox

You could compute those words and then feed them into context: documents = tokenizedDocument(["A long winding road"; "The winds...

partial word search text analytics toolbox

You could compute those words and then feed them into context: documents = tokenizedDocument(["A long winding road"; "The winds...

10 maanden ago | 0

Answered

Text Analytics Toolbox seems making lots of mistakes on recognizing language and PartOfSpeech

Language detection also works very much better on longer text. It is not trying to do a dictionary lookup (and several of your w...

Text Analytics Toolbox seems making lots of mistakes on recognizing language and PartOfSpeech

Language detection also works very much better on longer text. It is not trying to do a dictionary lookup (and several of your w...

10 maanden ago | 0

Answered

How to append abbreviations in Text Analytics Toolkit

You cannot extend the return value of abbreviations. But you can pass an extended table to addSentenceDetails in the "Abbreviati...

How to append abbreviations in Text Analytics Toolkit

You cannot extend the return value of abbreviations. But you can pass an extended table to addSentenceDetails in the "Abbreviati...

10 maanden ago | 0

Answered

How was the exampleWordEmbedding example in the text analytics toolbox trained, in detail?

The embedding is rather low-dimensional (50 dimensions) and has a small vocabulary (with 9999 words). It is unlikely to be “high...

How was the exampleWordEmbedding example in the text analytics toolbox trained, in detail?

The embedding is rather low-dimensional (50 dimensions) and has a small vocabulary (with 9999 words). It is unlikely to be “high...

10 maanden ago | 0

Answered

Script doesn't seem to be execute properly

In your code, you spend a lot of time computing the same prime over and over again. Do not start the search at a+1 for the secon...

Script doesn't seem to be execute properly

In your code, you spend a lot of time computing the same prime over and over again. Do not start the search at a+1 for the secon...

ongeveer 2 jaar ago | 3

Answered

Question on running fitlda

Gibbs sampling involves stochastic elements (i.e., a pseudorandom number generator), meaning reproducing exactly the results of ...

Question on running fitlda

Gibbs sampling involves stochastic elements (i.e., a pseudorandom number generator), meaning reproducing exactly the results of ...

ongeveer 2 jaar ago | 1

| accepted

Answered

Changing varibles in a Matrix to Values

Assigning values to MATLAB variables does not affect symbolic expressions that have variables of the same name inside. Use the s...

Changing varibles in a Matrix to Values

Assigning values to MATLAB variables does not affect symbolic expressions that have variables of the same name inside. Use the s...

ongeveer 2 jaar ago | 0

Answered

multivariable dsolve. Can it be solved for multivariables?

You are trying to solve a PDE (partial differential equation), but dsolve only handles ODEs (ordinary differential equations), w...

multivariable dsolve. Can it be solved for multivariables?

You are trying to solve a PDE (partial differential equation), but dsolve only handles ODEs (ordinary differential equations), w...

ongeveer 2 jaar ago | 1

Answered

How to find mutual words in title field?

If I read the question correctly, you are looking for a co-occurence matrix. You can get those from a bag-of-Words model by a ma...

How to find mutual words in title field?

If I read the question correctly, you are looking for a co-occurence matrix. You can get those from a bag-of-Words model by a ma...

ongeveer 2 jaar ago | 0

Answered

computing frequency*rank

Assuming we have t = topkwords(bag,100); You can get frequency*rank as: t.FreqTimesRank = (1:size(t,1)).*t.Count; And you ca...

computing frequency*rank

Assuming we have t = topkwords(bag,100); You can get frequency*rank as: t.FreqTimesRank = (1:size(t,1)).*t.Count; And you ca...

ongeveer 2 jaar ago | 0

| accepted

Answered

Does the text analytics toolbox allow users to test out-of-sample perplexity with LDA?

The second output of logp gives you the perplexity. txt = extractFileText('sonnets.txt'); sonnets = split(txt,[newline newline...

Does the text analytics toolbox allow users to test out-of-sample perplexity with LDA?

The second output of logp gives you the perplexity. txt = extractFileText('sonnets.txt'); sonnets = split(txt,[newline newline...

ongeveer 2 jaar ago | 0

| accepted

Answered

Code for text mining through Bayes Classifier?

MathWorks has examples like this one using classifiers from the Statistics and Machine Learning Toolbox to work on text data. Th...

Code for text mining through Bayes Classifier?

MathWorks has examples like this one using classifiers from the Statistics and Machine Learning Toolbox to work on text data. Th...

ongeveer 2 jaar ago | 0

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

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

ongeveer 2 jaar 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...

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

ongeveer 2 jaar 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...

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

bijna 3 jaar 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 ...

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

bijna 3 jaar 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...

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

ongeveer 3 jaar 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...

ongeveer 3 jaar 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 ...

ongeveer 3 jaar ago

Solved

"Cody" * 5 == "CodyCodyCodyCodyCody"

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

ongeveer 3 jaar ago

Solved

Acid and water

⚖ ⚖ ⚖ ⚖ ⚖ ⚖ ⚖ ⚖ Assume that there is a 100 liter tank. It is initially fi...

ongeveer 3 jaar 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...

ongeveer 3 jaar 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...

ongeveer 3 jaar ago