回答済み
Solve 1-(0.955.^n)-(0.005.^n)*(0.995.^(n-1))*n-(0.005.^2)*(0.995.^(n-2))*n*((n-1)/2)= 1/2 numerically with matlab
fh=@(n) 1-0.955.^n-0.005.^n.*0.995.^(n-1).*n-0.000025.*0.995.^(n-2).*n.*(n-1)/2- 0.5; NB: n.*(n-1)/2, _not_ n(n-1)/2

11年弱 前 | 0

回答済み
Creating a Matrix that is a manipulation of another matrix
A(:,2)=-A(:,2); % negate elements in original or A(:,2)=-1*A(:,2); or B=[A(:,1) -A(:,2}]; % new array keepin...

11年弱 前 | 0

| 採用済み

回答済み
Trouble Using Hold for Plots
As written, there's no dependency on _r_ (and should to preallocate X for full size to save overhead on dynamic allocation if re...

11年弱 前 | 0

回答済み
I'm complitily lost with that error: Error using horzcat Dimensions of matrices being concatenated are not consistent
N = 20; ... B = 4.0*pi*EO*ER*VO*ones(N,1); % size(B)--> [20,1] C = inv(A); % size(A)--> [20,20]; ergo size(C)--> [...

11年弱 前 | 0

| 採用済み

回答済み
Any way get the filename into my print-command?
As you've written it, you're reading from 'FILENAME' as a fixed text string. You have all sorts of other options from having a ...

11年弱 前 | 0

回答済み
using one fprintf statement to display multiple numbers?
Study the example at doc fprintf % "Write Table to Text File" link _carefully_. The answer to your problem is hidden the...

11年弱 前 | 0

| 採用済み

回答済み
Append varying length vectors to csv file using dlmwrite
There really is no way to produce A) above by two sequential writes of the data in columns 1:3 and 4:5 separately--sequential fi...

11年弱 前 | 0

回答済み
Trim a dataset based on array of subject IDs that correspond to rows to keep in matrix
b=a(ismember(a,list),:); % see doc ismember for details

11年弱 前 | 0

回答済み
For Loop in Command Window Not Working - But Code Works Line-By-Line?
_L7_ is just a character string; what do you expect of a convolution of it with an (assumed) data file returned as _s_? Seems t...

11年弱 前 | 0

| 採用済み

回答済み
How to write a loop to count the number of instances of a certain number occurring in each row?
Use the second, optional argument to sum-- s=sum(m==2,2); % doc sum for details...

11年弱 前 | 0

| 採用済み

回答済み
How to plot data in block?
Knowing the length of the data sections makes it pretty easy even though they're not regular in the file-- fid=fopen('yourf...

11年弱 前 | 1

| 採用済み

回答済み
How to plot to multiple y-axes
After you've got the data, then hAx=plotyy(x,y,x,y2); % doc plotyy for details...

11年弱 前 | 0

| 採用済み

回答済み
'Logical' function to read 2 variables and output to a new variable
Sorry, I didn't see the previous response. Your dataset isn't complete, but presuming it is, then d=a(b==1); % only the...

11年弱 前 | 1

| 採用済み

質問


Forum File Attachments Broke?
It appears attachment file links using paper clip are being treated as simply hyperlinks and a page is opened with the attached ...

11年弱 前 | 1 件の回答 | 0

1

回答

質問


XLSREAD() Bug(?) -- Fails to return empty columns in xlRegion
Just discovered a _nasty_ apparent bug in *xlsread* -- column of data is something like M012345 NAME FUND empty empty VAL1...

11年弱 前 | 0 件の回答 | 0

0

回答

回答済み
How to set text size in axes units?
set(text_handle,'FontUnits','normalized') See doc text % text properties for further details...

11年弱 前 | 1

| 採用済み

回答済み
How to fit a base(excluding the peak) of a curve and subtract the fitted base with its corresponding unfitted curve
But despite not having the data set for viewing/testing, sure... ix=[1:9 23:length(x)]; % include points b=polyfit(x(...

11年弱 前 | 1

回答済み
I have an array of data from a sensor which varies from positive to negative continuously. I want to find the peak value of each set of positive numbers and negative numbers.
>> findpeaks(X(X>0)) ans = Columns 1 through 10 4.5190 4.5260 3.3360 3.1910 2.4630 1.8080 1.7...

11年弱 前 | 0

| 採用済み

回答済み
How to plot function with multiple outputs on same graph
figure plot(theta2(:),[theta3open(:),theta4open(:)]) figure plot(px,py) *NB:* The (:) ensures the vectors are col...

11年弱 前 | 0

回答済み
make calculations with excel file data
OK, that's one interpretation but seems unlikely that that's what you really, really intend...that's going to "blow up" to an ex...

11年弱 前 | 0

回答済み
Finding rows with the closest values in two matrices matlab
Well, B is sorted on column one in ascending order; if they're the same size vectors the closest you can get globally is to ...

11年弱 前 | 0

回答済み
Splitting columns of Excel files
A=reshape(A,size(A,1),200,[]); then iterate over planes to save.

11年弱 前 | 0

回答済み
linspace in trouble for axe modification
... d=get(S.duree, 'String'); t=linspace(0,d,l); _d_ is a character variable of length of however many characters it ...

11年弱 前 | 0

| 採用済み

回答済み
How to change in sequences of files each output of two for loops one inside the other
Just write a specific format string for the variables as needed... filename=sprintf('m100profilen%03d%03d.txt', m,n); NB...

11年弱 前 | 1

| 採用済み

回答済み
If values are approxximately the same plot one function, if not plot two
Presuming the 'all' in _"if all values are similar"_ means a pointwise comparison between the two vectors of same length, then ...

11年弱 前 | 0

| 採用済み

回答済み
Simpson's Rule, answer inaccurate ?
0.842 is solution to the error function, erf(1). _BUT_, the error function is normalized such that INT(0,inf)=1 so is defined a...

11年弱 前 | 1

回答済み
I have large number of precipitation daily data in a column (for 50 years) for 221 meteorological stations. Now I need to convert it to monthly sum. How can I do that? thanks.
Probably the better way to approach this presuming a new (>=R2014) would be to convert the array to a *table* and use grouping v...

11年弱 前 | 0

回答済み
Probability distribution for a mean wind speed
From doc wblplot-- _"The purpose of a Weibull probability plot is to graphically assess whether the data in X could come from...

約11年 前 | 0

| 採用済み

回答済み
Regarding Software for my portfoli
Matlab and Simulink are full-featured computational platforms; almost certainly you can whatever it is you wish with either/both...

約11年 前 | 0

回答済み
Could anyone can help me with a question about function workspace?
The definitions in the function are local and the dummy arguments are assigned values by position, _NOT_ by association of name ...

約11年 前 | 0

| 採用済み

さらに読み込む