Respondida
iteration chaotique
Run this function with start value for X in the interval (0,1). function cssm() X=0.5325; K=100; % X...

más de 14 años hace | 0

| aceptada

Respondida
input to structures
See: <http://www.mathworks.se/help/techdoc/creating_guis/f3-1001115.html>

más de 14 años hace | 0

| aceptada

Resuelto


Return the first and last character of a string
Return the first and last character of a string, concatenated together. If there is only one character in the string, the functi...

más de 14 años hace

Respondida
ismember for many datasets
This is a question for Cody :-) Please check whether this one-liner does the job. I don't think there is the single function ...

más de 14 años hace | 0

Respondida
one case can not be initiatated when plotting using switch-case
!!! floating point arithmetic suffers from rounding errors !!! See: <http://www.mathworks.se/help/matlab/matlab_prog/floatin...

más de 14 años hace | 0

| aceptada

Respondida
csvread text column
Doc says: ... csvread ... The file can only contain numeric values. Try: textscan

más de 14 años hace | 0

Respondida
Index for loop
Try ix = find( list == x );

más de 14 años hace | 0

Resuelto


Remove NaNs and numbers adjacent to NaNs
The aim is to remove the elements before and after NaN occurrences inside a vector. For example: x = [6 10 5 8 9 NaN 23 1...

más de 14 años hace

Resuelto


Remove the two elements next to NaN value
The aim is to *remove the two elements next to NaN values* inside a vector. For example: x = [6 10 5 8 9 NaN 23 9 7 3 21 ...

más de 14 años hace

Respondida
quick search in two vectors
strfind is a bit faster than find with whole numbers (floating integers, flints). The difference used to be larger. With R2012a ...

más de 14 años hace | 1

Respondida
Order cell array
Try the FEX contribution <http://www.mathworks.se/matlabcentral/fileexchange/10959-sortnat-natural-order-sort sort_nat: Natural ...

más de 14 años hace | 0

Resuelto


Convert a structure into a string
Convert the contents of each fields into a string. Example with an input structure s with 2 fields : s.age = '33' s....

más de 14 años hace

Resuelto


Sort an array of structures
You need to sort an array of structures based upon *a numeric first field*: For example : a.n=1; a.name='a'; b.n=3...

más de 14 años hace

Respondida
Dissecting someone elses Matlab code
Are you posing this question to experts of robot arm kinematics? Do you have a problem using the tools of Matlab? Did you a...

más de 14 años hace | 0

Respondida
Why does how I reference data in a cell array change in a for loop?
Do you step through the code with the debugger? If you want us to try the code you must supply the data needed to run it. ...

más de 14 años hace | 0

Respondida
Function input
Try string_input_by_user = input( ..... string_input_by_user = 'sin'; foo = str2func( ['@(x)', string_in...

más de 14 años hace | 1

Respondida
make single element be array,,
This used to be called Tonys trick: w1 = w1( ones( 1, 5 ) ); this is more standard w1 = repmat( w1, 1, 5 ); ...

más de 14 años hace | 1

| aceptada

Respondida
scatterm marker size - cannot change marker size for scatterm points on map (2012a)
I don't use scatterm. However, I have the toolbox installed and tried the example in the documentation. I noticed # scatterm ...

más de 14 años hace | 0

| aceptada

Respondida
Matlab slows down when writing to large file
*Writing to a HDF5 file is one possibility* With the attached function, huge2hdf, I have created one 21.6GB hdf5-file. Each ...

más de 14 años hace | 2

Respondida
Limit to Textscan?
Does the data block of the file have a format something like this? time_stamp, value space time_stamp, value space time...

más de 14 años hace | 0

Respondida
Summing values with database "group by" functionality
Here is a solution that doesn't require the Statistical toolbox. Separators: # list separator: space # thousand sepa...

más de 14 años hace | 0

Respondida
[DISCONTINUED] Wish-list for MATLAB Answer sections.
Now I learned the hard way how to loose the text I'm writing in Answer. The recipe is as follows: # write text # include li...

más de 14 años hace | 1

Respondida
Reading From Different Directories in a for loop (fopen from different directories)
There is a function in the FEX, <http://www.mathworks.se/matlabcentral/fileexchange/32226-recursive-directory-listing-enhance...

más de 14 años hace | 1

| aceptada

Pregunta


'ABC'-'A' Considered Harmful
The trick *'ABC'-'A'* is that good programming style? --- edit --- *"tag: goto"* alludes to <http://en.wikipedia.org/wiki...

más de 14 años hace | 5 respuestas | 3

5

respuestas

Respondida
extract numbers from a char type input
Try doc strtok and doc str2num

más de 14 años hace | 0

| aceptada

Respondida
consider preallocating for speed
Try replacing IMGDB = cell(3,[ ]); by IMGDB = cell(3,nface); or something or set s = warning( 'off'...

más de 14 años hace | 0

Respondida
Function Browser
That's the way it's designed - floating on top.

más de 14 años hace | 0

Respondida
Fltering to subsets of matrices
Yes! sum( MyData( strcmp( MyData( :, ixColumn ), 'GA' ), : ), 1 ) This question is very close to <http://www.mathw...

más de 14 años hace | 0

Respondida
Summing values with database "group by" functionality
In the Statistical toolbox there is a class named Dataset. It has a method grpstats. grpstats Class: dataset S...

más de 14 años hace | 0

Respondida
Explore an hdf5 file
Did you search the Matlab documentation? Yes there is! Try info = h5info( filespec ); See <http://www.mathworks.se/hel...

más de 14 años hace | 0

Cargar más