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

alrededor de 12 años hace | 4

| aceptada

Respondida
I can not find important function
http://www.ideal.ece.utexas.edu/~gjun/ee379k/matlab/common/

alrededor de 12 años hace | 0

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

alrededor de 12 años hace | 1

| aceptada

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

alrededor de 12 años hace | 0

| aceptada

Respondida
Cycling through figure plots
<http://www.mathworks.co.uk/help/matlab/ref/plottools.html |plottools()|>

alrededor de 12 años hace | 0

| aceptada

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

alrededor de 12 años hace | 1

| aceptada

Respondida
Accessing a changing field within a java object
obj.(field)

más de 12 años hace | 0

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

más de 12 años hace | 0

| aceptada

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

más de 12 años hace | 0

| aceptada

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

más de 12 años hace | 2

| aceptada

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

más de 12 años hace | 1

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

más de 12 años hace | 0

| aceptada

Respondida
how to treat the last observation? Forecasting??
A ={'24/09/2000' 4.1583 '22/10/2000' 3.9389 '19/11/2000' 4.3944 '17/12/2000' 3.9313 '1...

más de 12 años hace | 0

| aceptada

Respondida
Problem with array filling
sprintf('%.17g', 0.3) ans = 0.29999999999999999 http://matlab.wikia.com/wiki/FAQ#Why_is_0.3_-_0.2_-_0.1_.28or_simil...

más de 12 años hace | 2

Respondida
Print to file, saveas, maintaining figure dimensions
I suggest to use |<http://www.mathworks.co.uk/matlabcentral/fileexchange/23629-exportfig export_fig()>| from the FEX. It also cr...

más de 12 años hace | 1

Respondida
3D matrix with various chain!!
If you have the Image Processing Toolbox: CC = bwconncomp(U3); labelmatrix(CC)

más de 12 años hace | 0

Respondida
how can I interpolate NaN values and correlate a matrix
[rr,cc] = size(A); % Values to interpolate xi = 1:cc; % Index the non NaNs idx = ~isnan(A); % ...

más de 12 años hace | 0

Respondida
How to plot timeline in matlab?
% Create dates as serial numbers serdates = fix(now) + 9/24 : 1/(24*4) : fix(now) + 11/24; % plot plot(serdates,...

más de 12 años hace | 0

| aceptada

Respondida
Fixed income bonds: How to deal with ex-dividend trading
Have you looked into the <http://www.mathworks.co.uk/help/finance/index.html Financial Toolbox> and the <http://www.mathworks.co...

más de 12 años hace | 0

Respondida
Counting repeated values paired with other repeated values and placing those counts in an array
[un,trash,sub] = unique(myfasttotal1(:,1)); count = accumarray(sub,myfasttotal1(:,2)); [un, count] The...

más de 12 años hace | 1

| aceptada

Respondida
same y label on both sides of contourf
Alternatively you can just *copy* the old axes and paste it over: new = copyobj(gca,gcf); set(new,'YAxisLocation','ri...

más de 12 años hace | 1

Respondida
How many zeros do I have before a specific sting variable?
Another solution: pos = strfind([A{:}],'b')-1 pos(1)

más de 12 años hace | 0

Respondida
calculation of a mean matrix
Unfortunately your example doesn't allow to propose a unique solution, i.e.: c1 = [mean(a); mean(b)] c2 = squeeze(mean(c...

más de 12 años hace | 0

| aceptada

Respondida
Importing multiple files with multiple columns.
I suggest to read this FAQ: http://matlab.wikia.com/wiki/FAQ#How_can_I_process_a_sequence_of_files.3F Then, your description ...

más de 12 años hace | 0

Respondida
Non numerical axis marks
Yes, you can do that in several ways: d = {'01/01/2012','02/01/2012','03/01/2012','04/01/2012','05/01/2012'}; *1st metho...

más de 12 años hace | 1

Respondida
while loop only diving last result
count = 0; % initialize counter out = zeros(100,1); % preallocate (not always possible with wh...

más de 12 años hace | 0

Respondida
Nominal to useful without changing values
a = '23'; str2num(a) str2double(a)

más de 12 años hace | 0

Respondida
Extract part of a filename from a directory list
I suppose that your filenames always have the date as |ddmmyy| and it's always at then end: x = {'XXX_YYY_010203.txt' ...

más de 12 años hace | 1

| aceptada

Respondida
Using latex command with anonymous functions
Interesting case, do you define B in a recursive way on purpose? However the error is clear, B doesn't exist at the moment o...

más de 12 años hace | 0

Respondida
problem with matlab 2009 64 bit
It is not MATLAB's problem. You simply have concurrent access with modification actions which are not supported in general b...

más de 12 años hace | 0

| aceptada

Cargar más