Beantwortet
Strange behavior of anonymous functions
# If you have the Control or Signal Toolbox, *|ss|* as the name for variables used to cause trouble. See <http://se.mathworks.co...

mehr als 11 Jahre vor | 0

Beantwortet
How do I unsubscribe MathWorks promo e-mail list?
I don't get it. Isn't this good enough? At the bottom of the page I find <</matlabcentral/answers/uploaded_files/27036/Captu...

mehr als 11 Jahre vor | 0

| akzeptiert

Beantwortet
compare length of arrays in a cell
A hint based on some guessing %% cac = {'abc','def', 'ghi'}; tmp = cellfun( @length, cac, 'uni', false ); ...

mehr als 11 Jahre vor | 0

Beantwortet
How to manipulate single lines in text files without writing the entire file?
If the file has a fixed (and simple) format and _"manipulating"_ doesn't change the size of the file, *|memmap|* might be the be...

mehr als 11 Jahre vor | 0

Beantwortet
Highlight a number + Ctrl + Scroll in Matlab editor - bug or feature?
It's most likely a shortcut to this feature (R2013b). <</matlabcentral/answers/uploaded_files/26997/Capture.PNG>>

mehr als 11 Jahre vor | 0

| akzeptiert

Beantwortet
Error when interpolating data code attached
I get an error when I run your code >> ethi = interp1 (te, eth, (tg+5)); Error using griddedInterpolant The gri...

mehr als 11 Jahre vor | 0

| akzeptiert

Beantwortet
cells to double array
This is start ( *|a|* was missing so I guessed) %% C = []; for n = 1:21 C = [ C; reshape( sscanf( or...

mehr als 11 Jahre vor | 1

Beantwortet
Slicing elements in a cell array
_"What's the easiest way"_ &nbsp This approach is one candidate >> datestr(datenum(temp,'yyyy-mm-ddTHH:MM:SS'), 'yyyy-mm-...

mehr als 11 Jahre vor | 0

| akzeptiert

Beantwortet
MATLAB using too much RAM
On R2013b (64bit Windows7 32GB) your script run without error. It increased memory usage, according to the task manager, from 5....

mehr als 11 Jahre vor | 0

| akzeptiert

Beantwortet
Convert .csv file(s) to netCDF file
AKAIK: There are good support to read csv-files and write netCDF-files, but no tool to convert csv-files to netCDF. (There are c...

mehr als 11 Jahre vor | 1

Beantwortet
MATLAB 2014 - Change workspace sorting
I'm surprised not to find a *|'legacy'|* option in <http://se.mathworks.com/help/matlab/ref/sort.html sort, Sort array elements>...

mehr als 11 Jahre vor | 0

Beantwortet
10 Largest numbers in a matrix
The largest value of *|magic(7)|* is *|49|* M = magic(7); [ val, ix ] = sort(M(:),'descend'); [rr,cc] = i...

mehr als 11 Jahre vor | 0

Beantwortet
i am executing a piece of code given below in which i am getting the error"Unexpected MATLAB expression" help me to solve it
What is your intent? This doesn't honor Matlab syntax rules. Minimal changes are needed to create a cell array rc = { ...

mehr als 11 Jahre vor | 0

Beantwortet
textscan unable to parse floats beyond 107M bytes
*|'BufSize'|* is that a documented Name-Value Pair Arguments of *|textscan|*? It is of *|textread|* and *|strread|*, but not of...

mehr als 11 Jahre vor | 0

Beantwortet
Can I split an array by a specific word?
Try >> cac = strsplit('Can I split an array by a specific word?', 'array') cac = 'Can I split an ' ...

mehr als 11 Jahre vor | 0

Beantwortet
How to loop through and create an nx2 vector?
Try output = nan( 10, 2 ); for ii = 1:10 output(ii,:) = myfunction(ii); end and read * <http://...

mehr als 11 Jahre vor | 0

| akzeptiert

Beantwortet
Changing colormap of individual subplot
That used to be one of Matlabs weak spots. R2014b changed that. There are several tools in the File Exchange, which mimics mu...

mehr als 11 Jahre vor | 1

| akzeptiert

Beantwortet
How do I display these matrices side by side incluing one with character strings.
_"I haven't been able to get it to work"_ &nbsp Show what you done and we have a chance to spot your mistake. for rr = 1 ...

mehr als 11 Jahre vor | 0

| akzeptiert

Beantwortet
problem in defining function in matlab
Add mu1 = cell( 200, 4 ); before the for-loops and read <http://se.mathworks.com/help/matlab/matlab_prog/preallocate-m...

mehr als 11 Jahre vor | 0

| akzeptiert

Beantwortet
How do I replace a word in a string with ****?
Try str = strrep( str, 'Long', '****' ); and read <http://se.mathworks.com/help/matlab/ref/strrep.html strrep, Find a...

mehr als 11 Jahre vor | 1

| akzeptiert

Beantwortet
need a code to restart matlab automatically run a function and then restart matlab doing the same
I use restart of Matlab as the last resort when the execution has screwed up badly. system( '"c:\m\startup\test4ida_hard_...

mehr als 11 Jahre vor | 1

| akzeptiert

Beantwortet
Usage of Exclamation point in MATLAB?
See the documentation <https://mathworks.com/help/matlab/matlab_external/run-external-commands-scripts-and-programs.html Run Ext...

mehr als 11 Jahre vor | 2

Beantwortet
multiple file reading from subdirectores...
It looks like the filespec is erroneous (and illegal). The first part of the filespec, *|/home/shi...|*, is repeated. <...

mehr als 11 Jahre vor | 1

| akzeptiert

Beantwortet
where do I unzip files I download from File Exchange?
Proposal: # create a folder, e.g. FEX # unzip the download to the folder FEX # add FEX to the search path # read <http://s...

mehr als 11 Jahre vor | 1

Beantwortet
How to use FIND function here?
_*"I need to get 1st and 3rd column as my output."*_ &nbsp Is this what you want? %% fid=fopen('test.txt'); da...

mehr als 11 Jahre vor | 1

| akzeptiert

Beantwortet
Class Overriding and Package Namespacing?
* _"Is there any way to achieve the shortened name?"_ &nbsp No. * _"And it still didn't work"_ &nbsp Neither when I try with R2...

mehr als 11 Jahre vor | 0

| akzeptiert

Beantwortet
finding the source of an error in a timer code
See * <http://se.mathworks.com/matlabcentral/answers/65694-debug-code-invoked-by-timer Debug code invoked by timer> * <http:...

mehr als 11 Jahre vor | 1

| akzeptiert

Beantwortet
Getting errors with code.
The first problem is that *|t|* is not defined before line 7, which is [xt,yt] = trajectory(v0,theta,t,g); Put your c...

mehr als 11 Jahre vor | 0

Beantwortet
how i can overcome this problem about the command save ?
You try to save to *|C:\Program Files\MATLAB\R2012b\bin|*, which explains the error message. Proposal save( 'c:\folder...

mehr als 11 Jahre vor | 1

Beantwortet
How do I access reference text file? Low Level I/O
See <http://matlab.wikia.com/wiki/FAQ#How_can_I_process_a_sequence_of_files.3F How can I process a sequence of files?> Note: ...

mehr als 11 Jahre vor | 0

| akzeptiert

Mehr laden