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

más de 11 años hace | 0

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

más de 11 años hace | 0

| aceptada

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

más de 11 años hace | 0

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

más de 11 años hace | 0

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

más de 11 años hace | 0

| aceptada

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

más de 11 años hace | 0

| aceptada

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

más de 11 años hace | 1

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

más de 11 años hace | 0

| aceptada

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

más de 11 años hace | 0

| aceptada

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

más de 11 años hace | 1

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

más de 11 años hace | 0

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

más de 11 años hace | 0

Respondida
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 = { ...

más de 11 años hace | 0

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

más de 11 años hace | 0

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

más de 11 años hace | 0

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

más de 11 años hace | 0

| aceptada

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

más de 11 años hace | 1

| aceptada

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

más de 11 años hace | 0

| aceptada

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

más de 11 años hace | 0

| aceptada

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

más de 11 años hace | 1

| aceptada

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

más de 11 años hace | 1

| aceptada

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

más de 11 años hace | 2

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

más de 11 años hace | 1

| aceptada

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

más de 11 años hace | 1

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

más de 11 años hace | 1

| aceptada

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

más de 11 años hace | 0

| aceptada

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

más de 11 años hace | 1

| aceptada

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

más de 11 años hace | 0

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

más de 11 años hace | 1

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

más de 11 años hace | 0

| aceptada

Cargar más