답변 있음
anyone pls give me a detailed description of what this code is doing ??? thxx
As Andrew suggested, use doc 'functioname' to understand with more details: Generate a row vector with numbers going from 0 to...

대략 15년 전 | 1

| 수락됨

답변 있음
how to write a function for iterative check between a randsample value and a fixed value.
function y = myRandSmpl(sim, x) y = randsample(sim,1); while y < x y = randsample(sim,1); end end ...

대략 15년 전 | 0

| 수락됨

답변 있음
What is missing from MATLAB?
Axes properties should be kept independent and the level of customization should be similar to excel. - For instance, when m...

대략 15년 전 | 2

답변 있음
How to Add Multiple Arrays?
If you could know how many matrices you have in advance (num), then preallocate before the loop: dir1='C:\Documents and Setti...

대략 15년 전 | 2

| 수락됨

답변 있음
95% confidence interval of the mean of a populationsample
If the sample follows a particular distribution and you have the stats TB, then you can estimate the parameters with the confide...

대략 15년 전 | 0

| 수락됨

질문


Boxplot: second Y axes labels
How can i put the same labels also on both left and right Y axes (tried several solutions but can't make them work as I wish)? ...

대략 15년 전 | 답변 수: 4 | 0

4

답변

답변 있음
error in using cell2mat function while the level of decomposition is greater than 1
You *can* do: c = {1, 2, 3}; c = {[1;2], [2;3], [3;4]}; cell2mat(c) You *can't* do: c = {[1;2], 2, 3}; c = {{1} ...

대략 15년 전 | 0

질문


isequal fails with equal structs
v(1).a{1}=sparse(magic(3)+2i*magic(3)); v(2).a{2}={struct('FA',{'a','bb'},'FB',{magic(5),{}})}; v(2).b{2}=@(x) sind(x); ...

대략 15년 전 | 답변 수: 1 | 0

1

답변

답변 있음
Read Text File into a Matrix
% read in data fid = fopen('filepath'); data = textscan(fid,'%f%f%f%f','HeaderLines',2,'CollectOutput',1); data = dat...

대략 15년 전 | 3

| 수락됨

답변 있음
Replace value in matrix
You can obtain: A = [0 0 143 143 152 0 0 0 0 151 0 0 0 0 143]; regexprep(evalc('A'), '0', ...

대략 15년 전 | 0

| 수락됨

답변 있음
Plotting an unknown number of lines in different colours
I suggest to store _x_ and _y_ in different matrices and to call: plot(x,y) Or with your data: results = rand(20,...

대략 15년 전 | 0

| 수락됨

답변 있음
Cell editable callback
I don't know why you've chosen that way, but if you have a figure with a uitable in it: % Create uitable uitable('Data',mag...

대략 15년 전 | 0

| 수락됨

답변 있음
Different kind of normalization
% Create standard normal distributed samples with std = 100; A = randn(100000,10)*100; % Normalize B = bsxfun(@rdivid...

대략 15년 전 | 0

| 수락됨

답변 있음
To RESHAPE the number of elements must not change
It means that prod([1 DS(2:end)]) ~= numel(mlsig) i.e. you cannot have 10 elements vector and reshape it into a 3 by 5 ...

대략 15년 전 | 2

답변 있음
about gui
Give a look at *<http://www.mathworks.com/matlabcentral/fileexchange/24861-41-complete-gui-examples 41 complete gui examples>*. ...

대략 15년 전 | 0

답변 있음
Storing Large data in matlab files
Do you get out of memory problems? Otherways you're gonna slow down the computation with I/O operations. You can also gain ...

대략 15년 전 | 0

| 수락됨

답변 있음
I can"t see the upper axe limit in pde toolbox.
It's a bug <http://www.mathworks.com/support/bugreports/647227> edit pdetool Substitute line 107 with: axheight = axwidth...

대략 15년 전 | 0

| 수락됨

답변 있음
Select a line object using the mouse
Yes, use the ButtonDownFcn to set a function which retrieves the value of the handle and throws it into the workspace with evali...

대략 15년 전 | 0

답변 있음
multi dimensional plot..
What about *<http://www.mathworks.com/help/toolbox/stats/boxplot.html boxplots>* with one box per time? This way you'll capture...

대략 15년 전 | 0

답변 있음
Empirical Ortgogonal Functions in matlab
20 * 20 * 100 * (8 bytes) = 312.5 kilobytes Really tiny, 300 MB would be huge for a standard 4gb 32bit achitecture. Oleg

대략 15년 전 | 0

답변 있음
how to find a point in a dynamic array
Look at the second output of max: [m,idx] = max(array); idx-2 Oleg

대략 15년 전 | 0

답변 있음
How to make this data make sense graphically
See if you like the concept: A = [... 0 0 1.0000 1.0000 1.0000 1.0000 1.0000 1.0000 0 0 0 0 1.4082 1.4082 1...

대략 15년 전 | 0

답변 있음
Loops in Matlab
Day2(t,:) == [50.3779, -4.1227] How did you get those values? If you simply copy pasted the results from teh command window...

대략 15년 전 | 1

답변 있음
Sort stocks into portolios based on stock characteristics
I had to write some time ago a function to generate the Carhart (1997) model for assessing mutual fund performance. Here I give...

대략 15년 전 | 0

| 수락됨

답변 있음
How do I color an area between 3 graphs ?
You can use the *<http://www.mathworks.com/help/techdoc/ref/fill.html fill>* function: fill(X,Y,ColorSpec) Or look at th...

대략 15년 전 | 0

답변 있음
Directory Watcher
You can use *<http://www.mathworks.com/matlabcentral/fileexchange/29198-foldersizetree recursive directory listing>* in the foll...

대략 15년 전 | 1

| 수락됨

답변 있음
How to make histogram not showing zeroes ?
If you want to include numbers which are > 0: A = [0 1 0 3 5 0 1 3 0 0 0 4]; idx = A > 0; hist(A(idx)) Otherwise...

대략 15년 전 | 3

| 수락됨

답변 있음
How do I pass a vector into a user-defined function?
You have to use: * ./ * .* * .^ whenever the operation involves TWO arrays of the same dimension to obtain elementwis...

대략 15년 전 | 2

답변 있음
How increase bufsize for importdata
You can try to edit line 319 of importdata: bufsize = min(1000000, max(numel(fileString),100)) + 5; Set the minimum threshol...

대략 15년 전 | 1

| 수락됨

답변 있음
Probably simple, but can't seem to make it work.
Or to apply on the full matrix: N = 30; REP = 10; tcouple = randi([0 50],N,REP); t = 0:max(tcouple(:))...

대략 15년 전 | 0

더 보기