2
votes
1answer
36 views

How to sample n frames from a movie file?

I'm looking to import 100 image frames from an mp4 video file at roughly evenly spaced intervals. As $ImportFormats shows, Mathematica can handle Movie files: .avi, .mov, .qt, .flv Multiframe ...
0
votes
0answers
17 views

Ndsolve problem with Sign

Using Sign(...)] in the formulation of my system of ODEs is causing an error that I don't know how to correct. If I use (...) in ...
3
votes
1answer
21 views

Getting a correct custom legend for contourplot?

I am having trouble making a custom range for a legend in ContourPlot since the legend doesn't "talk" to the PlotRange and ...
1
vote
1answer
19 views

Appearance Labels in Degrees

I have thus far: ...
1
vote
1answer
35 views

Implicit derivatives in one line ,How do I do it?

I have this little script to derive implicitly Mathematica $PrePrint = # /. {D[y_, x_, NonConstants -> {y_}] :> y'[x]} &; Example ...
1
vote
0answers
17 views

CCompile Problems

Operating System: Windows 8.1 Mathematica: 8 In possession of: Visual Studio 2013 and 2015 Had to alter the visual studios driver file within CCompilerDriver application, add-on so that it found the ...
3
votes
1answer
101 views

How to sort colors properly?

I can't seem to be able to sort colors by their hue and perceptual brightness correctly. Here's my current solution but it's not right, there are all these dark bands: ...
0
votes
0answers
18 views

Aligning Density an Contour Graphics

(In radiation therapy, we display radiation dose as an isodose contour plot overlain on density plot describing the patient geometry (CT data).) In Mathematica, i would like to show a ...
0
votes
0answers
14 views

If statement for evaluating small values

I have a simple calculation which I am trying to use if condition to evaluate summation of some values, here it's a psudo-code; ...
0
votes
1answer
30 views

How can I solve an integral equation with two unknowns?

How can I plot g versus y? I do not understand how to solve it. ...
3
votes
3answers
68 views

How I can count multiplications in an experssion?

Next task to complete: Count *-symbol in such expression as a + s^2*b - c/y + o^3 + n*m*u (in this case count of ...
1
vote
0answers
12 views

Non-autonomous Dynamical system Sliding mode controller Error

This code is a simulation of a sliding mode controller of a non-autonomous dynamic. When I use ArcTan in input, I receive an error. ...
0
votes
0answers
26 views

Is it possible to change default $HistoryLength [duplicate]

By default $HistoryLength is set to \[Infinity]. This is often unnecessary and can cause unecessary memory usage. I can of ...
0
votes
0answers
30 views

Please explain this unexpected code snippet behavior [duplicate]

Consider a function that maps a complex function z->f(z) to it's multivariable counterpart (x,y)->f(x,y) ...
1
vote
0answers
48 views

Solution to heat equation with Neumann boundary conditions and lateral heat loss

I am conducting an experiment on heat conduction in a copper rod. To do so I am using a thin copper rod with several temperature probes, then I am going to compare the data with a solution to the heat ...
2
votes
1answer
55 views

gaussian integration

I'm new on Mathematica and I am an engeneer with only a little base of numerical computation. I have to integrate a trigonometrical function numerically with a Gauss integration. The function is: ...
0
votes
0answers
32 views

KroneckerProduct of the lowest eigenvector [on hold]

tmatrix, is a random matrix constructed with this command: tmatrix = RandomReal[{-1, 1}, {4, 4}] Its lowest eigenvalues can created by ...
1
vote
0answers
47 views

Better way to binarize an image [on hold]

I have an image that I want to binarize. When I try to do it in Mathematica, the results is My code is ...
0
votes
0answers
37 views

Using Do and While to make cluster array with two elements [on hold]

I have assigned an array such: ...
0
votes
0answers
25 views

Changing the $CloudBase variable [on hold]

How can I change $CloudBase to some directory on localhost and successfully use it for CloudDeploy?
3
votes
1answer
112 views

Find a Fourier series from discrete data

I am trying to fit a Fourier cosine series to discrete data. I read through this, but I was not able to understand it. This data should be periodic with a period of $0.2 \textrm{m}$ and it is the ...
0
votes
0answers
27 views

Defined Function fails to Evaluate [on hold]

I apologize if this post is below quality, and please request more detail if necessary. I have been having this issue recently: I define a function as such: f[a_list, b_]:= ..... For a standard ...
0
votes
0answers
28 views

Calculate dependent probabilities [on hold]

Imagine that two raffles will happen, every raffle will reward 1 person. 10 people will participate. The first raffle will reward 1 person. The second raffle will reward another person, but the ...
0
votes
0answers
44 views

Compilable function with the functionality of SingularValueList

I'm doing something that involves finding the singular values of a lot of matrices. Basically I need to find singular values of $n$ matrices of dimension $n\times n$, where $n$ is as large as ...
3
votes
1answer
49 views

Bilateral ZTransform

Is there support for bilateral Z-transform in Mathematica, or a third-party package?
1
vote
1answer
34 views

Expand the plotting range [on hold]

When use the following command to plot a graph Plot[x^(1/3), {x, -1, 1}] Mathematica does not show the range [0, 1]. It ...
5
votes
2answers
67 views

How to make a notebook take action whenever a particular symbol is defined or redefined?

For teaching purposes, I want to create a Mathematica notebook that will "notice" when the user defines or redefines a variable or function of a particular name, so that it can check the value and ...
1
vote
0answers
46 views

Minimax for conditioned UnitStep functions

I made a simplified version of my problem, and I have now: ...
0
votes
0answers
40 views

being a function in a multiple steps and using syntax for being shortened

My desire is to access to a table with the bellow construction: Table[desired[t], {t, 0, 2, 0.1}] For achieve to desired[t] ...
0
votes
0answers
37 views

Mathlink returning wrong output [on hold]

My code below shows the function I am putting into the kernel to compute mathskernel.Compute("NSolve[" + yaxisin + ", y]"); where ...
7
votes
0answers
83 views

Wrapping text around pasted graphic

I would like to use Mathematica to create all my documents for my high school math class. I cannot, however, find a way to copy and paste a diagram (let's say from Geogebra) and then place it where I ...
2
votes
1answer
42 views

Plot does not take range with OptionValue and PlotRange option

I am making a function that is to use Show to overlay a few plots of a function. I want the first Plot in ...
2
votes
2answers
44 views

How can I pass values to a NamedSlot in TemplateApply

str="``;`v`;`v`;``"; template=StringTemplate@str; TemplateApply[template,CharacterRange["A","Z"]] (*"A;;;D"*) I want to get the result as: ...
2
votes
0answers
61 views

Why Function is compiled?

Function isn't mentioned in the list of compilable function, but it can generally be compiled when it's formed by compilable functions, a simple example is: ...
1
vote
0answers
53 views

creation a table from a default module [on hold]

I have used of bisection method for finding the root of a function: ...
2
votes
1answer
44 views

Stopping NDSolver at time of error

I am using NDSolver and WhenEvent to solve a system of differential equations. I get this message: ...
3
votes
2answers
56 views

An conditional Sum of elements in Array

Consider we have: list = {{2, 3}, {3, 30}, {3, 2}, {4, 53}} and we want to compare the first elements and sum the second elements if first elements are similar ...
-2
votes
0answers
37 views

Graphs making on Mathematica by using HAM [on hold]

I'm working on HAM, on graphs making i encounter a problem over and over again that on even iteration it gives a graph of different shape and on odd iteration it gives totally different shape of ...
4
votes
3answers
63 views

Replace values in a list based on conditions

I have a list with negative and positive numbers list = {-1, -2, 1, 2} and I want to replace all negative values with 0 and all positive values with 1 ...
3
votes
0answers
42 views

First Plot misses the Show [on hold]

g4 = ContourPlot[Sin[x] Cos[y], {x, 0, 2 Pi}, {y, 0, 2 Pi}] g5 = ContourPlot[Cos[x] Sin[y], {x, 0, 2 Pi}, {y, 0, 2 Pi}] Show[{g4, g5}, PlotRange -> All] How to ...
-3
votes
0answers
53 views

Find the tangent at a homogenous point to a curve [on hold]

I'm new to Mathematica. I want to find the tangent at the point $p=(6,5,1)$ to the following curve: ...
12
votes
3answers
612 views
1
vote
1answer
76 views

Matrix multiplication for higher dimensional matrices [duplicate]

I have a matrix like this (myb1): I would like to get the matrix multiplication of each of the submatrix to itself. For example the first 2x2 matrix $\begin{bmatrix}1 & 2\\1 & ...
0
votes
0answers
17 views

Time Series into List of Pairs? [on hold]

Mathematica's new update includes this handy dandy TimeSeries thing in which all Weather Data is automatically generated as. However, I need to manipulate this data in list form- How would i go about ...
1
vote
0answers
49 views

How to test for a non--zero rational function? [duplicate]

I want to test if a rational function in one variable is identically zero. I was surprised that just writing f==0 doesn't do it. I wrote the following code: ...
15
votes
1answer
221 views

Faster binary Hamming weight for big integers?

While working on an answer to Count the sequences in an array I found that DigitCount was the bottleneck in my code when used as ...
1
vote
1answer
62 views

LogPlot hangs but Plot does not

This is a bit involved example, but I have not been able to reproduce it in more simple cases. ...
2
votes
3answers
57 views

InterpolationOrder 2 or more in ListLogLinearPlot

I'm using the function ListLogLinearPlot, but the plot is to square, i would like to have InterpolationOrder 2, but there is not ...

15 30 50 per page