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

oltre 11 anni fa | 0

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

oltre 11 anni fa | 0

| accettato

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

oltre 11 anni fa | 0

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

oltre 11 anni fa | 0

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

oltre 11 anni fa | 0

| accettato

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

oltre 11 anni fa | 0

| accettato

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

oltre 11 anni fa | 1

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

oltre 11 anni fa | 0

| accettato

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

oltre 11 anni fa | 0

| accettato

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

oltre 11 anni fa | 1

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

oltre 11 anni fa | 0

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

oltre 11 anni fa | 0

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

oltre 11 anni fa | 0

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

oltre 11 anni fa | 0

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

oltre 11 anni fa | 0

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

oltre 11 anni fa | 0

| accettato

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

oltre 11 anni fa | 1

| accettato

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

oltre 11 anni fa | 0

| accettato

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

oltre 11 anni fa | 0

| accettato

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

oltre 11 anni fa | 1

| accettato

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

oltre 11 anni fa | 1

| accettato

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

oltre 11 anni fa | 2

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

oltre 11 anni fa | 1

| accettato

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

oltre 11 anni fa | 1

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

oltre 11 anni fa | 1

| accettato

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

oltre 11 anni fa | 0

| accettato

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

oltre 11 anni fa | 1

| accettato

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

oltre 11 anni fa | 0

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

oltre 11 anni fa | 1

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

oltre 11 anni fa | 0

| accettato

Carica altro