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

12年以上 前 | 4

| 採用済み

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

12年以上 前 | 0

回答済み
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()|...

12年以上 前 | 1

| 採用済み

回答済み
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)

12年以上 前 | 0

| 採用済み

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

12年以上 前 | 0

| 採用済み

回答済み
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.

12年以上 前 | 1

| 採用済み

回答済み
Accessing a changing field within a java object
obj.(field)

12年以上 前 | 0

回答済み
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|

12年以上 前 | 0

| 採用済み

回答済み
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); ...

12年以上 前 | 0

| 採用済み

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

12年以上 前 | 2

| 採用済み

回答済み
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)...

12年以上 前 | 1

回答済み
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...

12年以上 前 | 0

| 採用済み

回答済み
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...

12年以上 前 | 0

| 採用済み

回答済み
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...

12年以上 前 | 2

回答済み
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...

12年以上 前 | 1

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

12年以上 前 | 0

回答済み
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); % ...

12年以上 前 | 0

回答済み
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,...

12年以上 前 | 0

| 採用済み

回答済み
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...

12年以上 前 | 0

回答済み
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...

12年以上 前 | 1

| 採用済み

回答済み
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...

12年以上 前 | 1

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

12年以上 前 | 0

回答済み
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...

12年以上 前 | 0

| 採用済み

回答済み
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 ...

12年以上 前 | 0

回答済み
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...

12年以上 前 | 1

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

12年以上 前 | 0

回答済み
Nominal to useful without changing values
a = '23'; str2num(a) str2double(a)

12年以上 前 | 0

回答済み
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' ...

12年以上 前 | 1

| 採用済み

回答済み
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...

12年以上 前 | 0

回答済み
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...

12年以上 前 | 0

| 採用済み

さらに読み込む