질문


saved pdf file doesn't look like figure
When I save a figure as a pdf file, the pdf version adds spaces which aren't in the original. The two images attached illustrat...

8년 초과 전 | 답변 수: 2 | 0

2

답변

질문


Matlab central defaults to de.mathworks.com
I was in Switzerland, using matlab answers on chromium-browser, and was trying desperately to get the usa mathworks site, since ...

8년 초과 전 | 답변 수: 1 | 0

1

답변

질문


Matlab is inconsistent when raising numbers to the zero'th power:
In matlab R2015a -1^0 returns -1 but a = -1 ; a^0 returns 1 wolfram alpha agrees that -1^0 = -1...

8년 초과 전 | 답변 수: 1 | 0

1

답변

답변 있음
Execute a command on exit from a workspace
Here's an answer, obtained with the help of Matlab technical support %Keyboards in the CALLER workspace not current workspa...

8년 초과 전 | 0

| 수락됨

질문


Comparing cell arrays of symbolic variables
I'd like to be able to compare two arrays, each consisting of symbolic variables. In particular I'd like to be able to run set...

거의 9년 전 | 답변 수: 1 | 0

1

답변

질문


Solving an optimal control problem using filter?
I'm trying to solve a pair of difference equations for an economic problem. It appears from the web that the appropriate matlab...

거의 9년 전 | 답변 수: 0 | 0

0

답변

답변 있음
Problems opening matlab from a remote shell from Ubuntu 14.04.
Opening matlab with the -nojvm flag fixed this problem.

거의 9년 전 | 1

| 수락됨

답변 있음
matlabFunction forces me (unnecessarily) to include a dummy integration variable as an argument of the anonymous function it creates.
I talked to matlab support about this. The problem goes away if you set the IgnoreAnalyticConstraints flag to true. sym...

거의 9년 전 | 2

| 수락됨

질문


matlabFunction forces me (unnecessarily) to include a dummy integration variable as an argument of the anonymous function it creates.
In the example below, I use matlabFunction to create the anonymous function intF{2}. The function to be created has five argum...

거의 9년 전 | 답변 수: 1 | 1

1

답변

질문


Using dsolve, replace arbitrary constants like C11 with one's own parameter name.
when one solves a differential equation using dsolve, without specifying terminal conditions, matlab outputs the solution with a...

거의 9년 전 | 답변 수: 1 | 0

1

답변

질문


summing over a multi-dimensional cartesian product using nested arrayfun commands
I have an anonymous function with multiple arguments and I want to sum over all of them. For example, consider the simple fun...

거의 9년 전 | 답변 수: 2 | 0

2

답변

질문


anonymous function which outputs a vector of sums when the input is a vector of indices.
I'd like to write an anonymous function such as f = @(X,m,A) sum(X(m:A)) where X is a vector, m < numel(X), ...

대략 9년 전 | 답변 수: 1 | 0

1

답변

질문


preserving variable class when extracting fields from a struct
I have a program that requires passing a large number of variables to a function. Rather than have a long list of global vari...

대략 9년 전 | 답변 수: 4 | 0

4

답변

답변 있음
for loop to update frequency count
This gets close I think A = floor(rand(500)*1001);B=A(:);I = find(B<501); [N,X] = hist(B(I),501); X contains the c...

대략 9년 전 | 0

질문


maximum variable size allowed by the program is exceeded but it's not
There have been many many threads on this topic but none seem to apply to my case. I'm running 64 bit matlab so that [~...

대략 9년 전 | 답변 수: 0 | 0

0

답변

질문


Problems opening matlab from a remote shell from Ubuntu 14.04.
I've upgraded from Ubuntu 12.04 to 14.04, and this has created a problem which I didn't have with Ubuntu 12.04 when I open a ...

대략 9년 전 | 답변 수: 1 | 0

1

답변

질문


output matlab markers as part of a character string.
It's amazing that nobody has asked this before, but I'd like to insert the standard matlab plot markers---square, diamond, circl...

9년 초과 전 | 답변 수: 1 | 1

1

답변

질문


Condition on whether or not matlab is running in 'nodesktop' mode
is there a way to condition on whether or not I called matlab in 'nodesktop' mode? Thanks in advance!

9년 초과 전 | 답변 수: 1 | 0

1

답변

질문


Preventing matlab from reversing my signs in symbolic expressions
The symbolic toolbox reverses the signs of the expressions I type. For example syms a b f = (1-x)*a + b return...

9년 초과 전 | 답변 수: 1 | 0

1

답변

질문


double summation without a loop
I have an anonymous function f that has two indices, i and t. i runs from 1 to n; t runs from 1 to m != n. For example: ...

9년 초과 전 | 답변 수: 1 | 0

1

답변

답변 있음
Suppress Academic license notification
clc clears the screen before printing the reminder, but indeed, not a big deal, thanks!

9년 초과 전 | 0

답변 있음
Suppress Academic license notification
After I run my startup script, it announces Academic License and then the >> prompt.

9년 초과 전 | 0

질문


Suppress Academic license notification
I know this is trivial in the grand scheme of things, but I'd love to remove the notification everytime I start matlab R15a that...

9년 초과 전 | 답변 수: 6 | 0

6

답변

질문


Can I assign a single value to multiple elements of a cell array without a loop
For example, I have an array that looks like myArray = [3] [] [3] [] I'd like to fill out the empty ele...

거의 10년 전 | 답변 수: 2 | 0

2

답변

질문


Prevent matlab figures from jumping from one virtual desktop to another
Not sure of the right language to describe this issue... I run matlab in Ubuntu, using fvwm, which allows me to have multiple...

거의 10년 전 | 답변 수: 0 | 5

0

답변

질문


displaying the colors of a color matrix
Hi, I have a matrix of colors, C = [.5142 0.7695 0.7258; 0.9300 0.8644 0.4048; 0.6929 0.6784 ...

거의 10년 전 | 답변 수: 1 | 0

1

답변

질문


flag whether or not a program has been called by createTask
I run certain jobs either as standalone jobs, or in parallel, for example called by createTask. Is there some way to distingu...

거의 10년 전 | 답변 수: 1 | 1

1

답변

질문


Use index from max() to extract matching values from another array
Suppose I have 2 n x m arrays A and B and I get the maximum element of each column of A with [~,I] = max(A) Now I want...

거의 10년 전 | 답변 수: 1 | 0

1

답변

질문


find element of a cell or char array that matches a nonleading substring
This question seems closely related to thread 50624-testing-for-the-presence-of-a-substring-in-a-cell-array-of-strings but has a...

거의 10년 전 | 답변 수: 2 | 0

2

답변

질문


Using dir with multiple wildcards for directories
I'd like to be able to use dir to list all files in the grandchildren directories of my cwd, as in dir('*/*') As far...

대략 10년 전 | 답변 수: 1 | 0

1

답변

더 보기