Community Profile

Contact

Top 5% contributor

clc clears the screen before printing the reminder, but indeed, not a big deal, thanks!

0

Answered 2 months ago

After I run my startup script, it announces Academic License and then the >> prompt.

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

4 Answers

Asked 2 months ago

Wow, so simple, thanks very much indeed! For my purposes argmax = @(x)(find(x==max(x))) is perfect, since I only care a...

Answered 1 year ago

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

Answered 2 years ago

I guess I've found my own workaround, which is incredibly unsatisfactory, but does seem to work. Convert the symbolic array t...

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

Answered 3 years ago

Thanks to Matt and Walter for responses. Walter's answer didn't work; according to the documentation, latex requires a symbol...

Beautiful, thanks. Matlab can be amazing at times.

4524 views

Responded 3 years ago

Thanks very much, Steve, vertcat solves a lot of problems for me. Of course, it only works provided your workspace doesn't have...

How can I convert a field of a struct whose elements are vectors to a matrix? For example dog = whos Each element of dog.size ...

Various posts have asked the question: why do I get the message "The current workspace already has too many variables; there...

3792 views

Responded 2 years ago

HI Steve Your suggestion was really helpful. Can you help with the next step? Following your suggestion I did the follow...

3763 views

Responded 5 years ago

Hi Bruno, I tried this and couldn't get it to work. Could you please give an example of usage? Thanks, Leo

3738 views

Art's code seemed to work for me only when I included just one argument and used the default value of the second argument delim....

3715 views

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

3 Answers

Asked 1 year ago

The first sentence on the help screen for restoredefaultpath is %RESTOREDEFAULTPATH Restores the MATLAB search path to inst...

2 Answers

1

Asked 2 years ago

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

6 Answers

Asked 3 years ago

For example, I have an array that looks like myArray = [3] [] [3] [] I'd like to fill out the empty ele...

Asked 3 months ago

I run certain jobs either as standalone jobs, or in parallel, for example called by createTask. Is there some way to distingu...

1 Answers

Asked 4 months ago

This question seems closely related to thread 50624-testing-for-the-presence-of-a-substring-in-a-cell-array-of-strings but has a...

Asked 5 months ago

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

Hi everyone I'm having a very frustrating time trying to get constrating colormaps for multiline plots. For people with po...

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

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

Asked 1 month ago

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

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

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

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

Asked 6 months ago

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

Load more