질문


assigning an empty numeric value to a cell array
Hi, I need to be able to assign an empty numeric value to a cell array, as in Cell = {}; Cell = [ Cell , [] ]; But th...

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

1

답변

질문


Getting output from parallel jobs that would regularly go to a diary
Using the parallel computing toolbox, is it possible to get each individual job spawned by createTask to write output to a diary...

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

1

답변

질문


Is there a one-step command that identifies the name of the caller workspace
Obviously, I could use dbstack, but it seems there should be a simple command that simply prints out the name of the caller work...

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

1

답변

질문


Maximizing the number of workers used in a parfor loop using the "batch" command
I have four cores, and would like to use all four of them in parallel. To accomplish this, I have attempted to use the "batch"...

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

1

답변

질문


force fsolve termination if not progressing
Hi. I'm running repeated fsolves. With bad starting points, the engine goes nowhere. I can see this looking at th...

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

1

답변

질문


evalin in caller a command that assigns in caller
Matlab documents that nested evalin's don't work. They don't appear to document that an assignins within evalins don't work. I...

10년 초과 전 | 답변 수: 3 | 0

3

답변

답변 있음
construct anonymous function that returns the argmax of two symbolic variables
Wow, so simple, thanks very much indeed! For my purposes argmax = @(x)(find(x==max(x))) is perfect, since I only care a...

10년 초과 전 | 0

질문


construct anonymous function that returns the argmax of two symbolic variables
Hi, I'd like to construct an anonymous function that returns the argmax of two symbolic variables, e.g., syms x y symMax...

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

2

답변

질문


Access a single element of an anonymous function that returns an array
I have an anonymous function that returns an array. I'd like to be able to create a new anonymous function that consists of a...

10년 초과 전 | 답변 수: 2 | 1

2

답변

질문


Execute a command on exit from a workspace
Hi I'd like to be able to execute a command immediately after I leave a function. In particular, I've written a function c...

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

1

답변

질문


Most constrasting colormap for multi-line plots
Hi everyone I'm having a very frustrating time trying to get constrating colormaps for multiline plots. For people with po...

거의 11년 전 | 답변 수: 2 | 1

2

답변

질문


Initializing a struct with n-d fields.
Hi, I have a struct with an indeterminate number of fields. For (very good) reasons I don't want to go into, I want to initia...

대략 11년 전 | 답변 수: 3 | 0

3

답변

질문


Accessing within a matlab function a string that duplicates the command that called the function.
Apologies for the horrible question title. It's easiest if I give an example of what I'm trying to ask. Suppose I have a ...

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

1

답변

질문


How can I tell matlab it's running in the background?
I'd like to be able to run a job either in the background or in the foreground. My program runs fine in the foreground but cras...

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

1

답변

질문


Passing array arguments to an anonymous function
I have an anonymous function, for example f = @(x,y)x.^2.*y.^2 In general for my problem I don't know how many argument...

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

1

답변

질문


RESTOREDEFAULTPATH doesn't restore default path (rather restores user's path)
The first sentence on the help screen for restoredefaultpath is %RESTOREDEFAULTPATH Restores the MATLAB search path to inst...

거의 12년 전 | 답변 수: 2 | 1

2

답변

답변 있음
dbstop inside an anonymous function
Thanks, that's good to know. But I'm a dinosaur who hates GUIs so do everything from the command line. I use the -nodesktop ...

거의 12년 전 | 0

질문


dbstop inside an anonymous function
Is there a way to set the debugger to stop inside an anonymous function? The following obviously won't work dbstop in my...

거의 12년 전 | 답변 수: 2 | 1

2

답변

질문


Getting back to my workspace in the debugger after a symbolic error
When you make an error using the symbolic toolbox, and dbstop if error is set, you may end up six workspaces down from where you...

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

0

답변

답변 있음
Bug in matlab's builtin sort routine
I guess I've found my own workaround, which is incredibly unsatisfactory, but does seem to work. Convert the symbolic array t...

거의 12년 전 | 0

질문


Bug in matlab's builtin sort routine
Matlab's 2012b has introduced all sorts of bugs in its sort routine. Consider the following syms d1_X1_f1 d1_X1_f2 d1_X...

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

2

답변

질문


Set a default property for symbolic variables
I would like to set all of my symbolic variables to be real by default, ideally in my startup script. Is there a way to do th...

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

1

답변

질문


manipulating symbolic ND arrays
I've been surprised and disappointed to discover just how primitive matlab's handling is of ND symbolic arrays. Surely it sh...

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

1

답변

질문


converting an array of n symbolic variables to a cell array with n elements
Hi Could somebody tell me a way to convert the symbolic array [ x, y , z ] to the 3 element cell array Cell, where Cell{1} =...

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

2

답변

질문


Can't get "collect" to extract the determinant of the inverse of a symbolic matrix.
I often invert complex symbolic matrices and end up with an impossibly complex result because matlab divides each term in the in...

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

1

답변

질문


Dealing with v(end+1) when v(1) may not have been defined
I use the following kind of construction a lot v(1) = (x+y)^2; v(end+1) = (x^2 + 2*x*y + y^2) etc. Sometimes v wou...

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

1

답변

질문


Recursive symbolic differentiation with anonymous functions
This is closely related to an earlier post of mine, but i thought I should make it a separate thread, since it's not really the ...

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

1

답변

답변 있음
Using latex command with anonymous functions
Well, I've tried defining B as a symbolic variable first, but that doesn't help, e.g. clear all ; syms x B ; f= @(input)B(i...

12년 초과 전 | 0

답변 있음
Using latex command with anonymous functions
Thanks to Matt and Walter for responses. Walter's answer didn't work; according to the documentation, latex requires a symbol...

12년 초과 전 | 0

질문


Using latex command with anonymous functions
I want to convert a bunch of simple symbolic expressions to latex e.g., syms x; B = @(x)B(x) latex(diff(B,x)) pro...

12년 초과 전 | 답변 수: 6 | 1

6

답변

더 보기