Réponse apportée
how to sum floating point elements of an array
"??? Subscript indices must either be real positive integers or logicals" It means you're doing something: a = 1:0.1:2...

presque 14 ans il y a | 0

Réponse apportée
Generating index from end and start index
I recommend the nice submission by Bruno Luong: <http://www.mathworks.co.uk/matlabcentral/fileexchange/29854-multiple-colon mul...

presque 14 ans il y a | 1

Réponse apportée
How to create a cell of strings from a vector?
Encapsulate |sprintf()| into |arrayfun()|: arrayfun(@(in) sprintf('%.0f', in), x,'un',0)

presque 14 ans il y a | 0

| A accepté

Réponse apportée
Memory overflown for the number to be saved
Using the <http://www.mathworks.co.uk/help/techdoc/matlab_prog/f0-42649.html#brchk1t look-behind operator> in regular expression...

presque 14 ans il y a | 0

Réponse apportée
Issue using the writeVTK.m
Valid MATLAB functions are |fprintf()| or |sprintf()|. edit vriteWTK() And modify the call to printf into fprintf or spr...

presque 14 ans il y a | 0

| A accepté

Question


hggroup of text() objects and contextmenu
------------------------------------- *THE SITUATION* ------------------------------------- I am creating text labels ...

presque 14 ans il y a | 1 réponse | 0

1

réponse

Réponse apportée
How can i randomly divide a dataset(matrix) into k parts ??
Suppose you have the |N by M| matrix |A|. I would randomly permute positions from |1:N| and then group them into |k| partitions....

presque 14 ans il y a | 0

Réponse apportée
Developing a MIN/MAX indicator.
Plotting on *|Close|* with window size 14. importfile('BundDaily.xls') period = 14; n = numel(Close); % Run...

presque 14 ans il y a | 1

| A accepté

Réponse apportée
How can i read a sequence of wave files?
<http://www.mathworks.co.uk/help/techdoc/import_export/br5wz4t.html#br7q_u6 Processing a Sequence of Files>

presque 14 ans il y a | 1

Réponse apportée
I want to read a text file having strings and numeric data. Is there any better function than textscan?
Using textscan you can import one line and skip the next one (I save your example to test.txt). % Import lines which start wi...

presque 14 ans il y a | 2

| A accepté

Réponse apportée
I dont know how can i do it?
_[Answering to prevent delete and text of request to prevent edits]_ MANO GANAD writes: Write matlab code to compute the r...

presque 14 ans il y a | 0

Réponse apportée
Problems creating function handle to method from user input text string during object construction
function classify(obj) % Should execute learner method specified by text string obj.learner ...

presque 14 ans il y a | 1

| A accepté

Réponse apportée
How can I assign a single value (index) for each point in a square?
You can use <http://www.mathworks.co.uk/help/matlab/ref/sub2ind.html |sub2ind()|> sub2ind([M,N], x,y)

presque 14 ans il y a | 0

| A accepté

Réponse apportée
How to extract leading non-zero digit?
Another solution based on regexp (from this <http://www.mathworks.co.uk/matlabcentral/answers/47429-what-does-some-symbol-in-reg...

presque 14 ans il y a | 2

Réponse apportée
How do code for user input of text file name to be read?
use <http://www.mathworks.co.uk/help/matlab/ref/uigetfile.html |uigetfile()|> to get the name Use <http://www.mathworks.co.uk...

presque 14 ans il y a | 0

Réponse apportée
How can I draw 3D graph from .xls file?
# Import the files with <http://www.mathworks.co.uk/help/matlab/ref/xlsread.html |xlsread()|> # Then plot the numeric matrix wi...

presque 14 ans il y a | 0

Réponse apportée
Strange database toolbox behavior
The code looks correct, unless you're doing something that fetches most of the data (without storing it) before calling |grabInP...

presque 14 ans il y a | 0

Réponse apportée
Is this a Possible MATLAB bug? (Further strange Behavior)
Equivalently function out = foo(in) in; end will throw the same error. If you call |a = foo(10)|, the functio...

presque 14 ans il y a | 2

Réponse apportée
Pointer to MATLAB function?
An interactive way to create an anonymous function: % List of functions funs = {'cos(x).^2','sin(x).^2 + 9.*x'}; ...

presque 14 ans il y a | 4

| A accepté

Réponse apportée
I can not find important function
http://www.ideal.ece.utexas.edu/~gjun/ee379k/matlab/common/

presque 14 ans il y a | 0

Réponse apportée
Xlsread function gives error!!!
The combination of the OS and MATLAB version which you are using do not support other mode than |'basic'| when using |xlsread()|...

presque 14 ans il y a | 1

| A accepté

Réponse apportée
Exporting an Image from a GUI to the Command Line
<http://www.mathworks.co.uk/help/matlab/ref/assignin.html |assignin()|> Example: assignin('base','img',yourpic)

presque 14 ans il y a | 0

| A accepté

Réponse apportée
Cycling through figure plots
<http://www.mathworks.co.uk/help/matlab/ref/plottools.html |plottools()|>

presque 14 ans il y a | 0

| A accepté

Réponse apportée
Deleting duplicate values in matrix
[trash,idx] = unique(S(:,1),'stable'); S(idx,:) Note that only the first column is considered to be the key.

presque 14 ans il y a | 1

| A accepté

Réponse apportée
Accessing a changing field within a java object
obj.(field)

presque 14 ans il y a | 0

Réponse apportée
Problems running a code on 2012a
Add the path where you unzipped |astar_test_files.zip| to the MATLAB search path. addpath yourpath or |File > Set Path|

presque 14 ans il y a | 0

| A accepté

Réponse apportée
Coeff & constants of a symbolic equation
syms a b c exp = [-2*b-a-3*c+2; -c+4*b; -5*a+3]; xx = symvar(exp); Coef_matrix = zeros(numel(exp),numel(xx)+1); ...

presque 14 ans il y a | 0

| A accepté

Réponse apportée
Sparse Block diagonal matrix
The easy way: X = num2cell(X,1); sparse(blkdiag(X{:})) Or, creating the sparse matrix directly: [r,c] = size(X);...

presque 14 ans il y a | 2

| A accepté

Réponse apportée
Conversion String to Integer with Positive or Negative
% Import data fid = fopen('C:\Users\Oleg\Desktop\test.txt'); out = textscan(fid, '%2f%s','Delimiter',''); fclose(fid)...

presque 14 ans il y a | 1

Réponse apportée
How can I create ANOVA table using the syntax "mdl=LinearModel.fit(X,y,anovatype) and "tbl=anova(mdl,anovatype)". My matlab version is 7
Not available for your version. Consider browsing the documentation of your release: http://www.mathworks.co.uk/help/doc-archive...

presque 14 ans il y a | 0

| A accepté

Charger plus