回答済み
How to extend horizontally this inputdlg window?
Don't see a way programmatically, TMW didn't expose the rest of the control properties thru the provided interface, unfortunatel...

9年以上 前 | 0

回答済み
How to label x and y axis in case of subplots
Post comments: for j=1:20 % note filled out the array fully here hAx(j)=subplot(5,4,j); % save the sub...

9年以上 前 | 2

| 採用済み

回答済み
Merging Table with Duplicate Dates
Almost same solution as above...the only real significant difference is that |*strcmp*| is cell-aware so don't need |*cellfun*| ...

9年以上 前 | 1

回答済み
Strange output with function sortrows
No .mat file attached, try again. I'd venture that whassup is floating point roundoff so that all those "identical" values a...

9年以上 前 | 0

回答済み
How to remove rows contain 0 in matrix
The first part seems pretty easy, but I've no klew how you actually got _B_ from what's left...in fact, there are several elemen...

9年以上 前 | 0

回答済み
Place a word into a position in a Matrix
Well, we can't always have what we want...life's just unfair that way. Only way you can do so is to make the array a cell arr...

9年以上 前 | 1

回答済み
Remove letters tabs and spaces from a string with numbers and letters while creating a vector with the remaining numbers
Actually, to my surprise *textscan* did a better job than I expected... >> v=mat2cell(textscan(fid,['%*s' repmat('%f',1,11)...

9年以上 前 | 0

回答済み
Numel with loop for+if condition
*numel* isn't the builtin you're looking for here, it's the product(size(A)) --> 36, not 6. But, you "don't need no steenkin'...

9年以上 前 | 2

| 採用済み

回答済み
dimension mismatch with growing char matrix
>> num2str([10 1].','P%03d') ans = P010 P001 >> *numstr* is vectorized. To do with individual conversion again use ...

9年以上 前 | 1

回答済み
Add elements of a vector
Not sure what you really mean here, but what about *cumsum*, maybe??? >> z=1:10; >> cumsum(z) ans = 1 3 6 ...

9年以上 前 | 1

回答済み
Undefined function or variable when using fprintf? I have already defined what the variable is however when i run the code it doesn't work.
_L_ is undefined for Case D>0...and, as written the last three *IF* statements will all be executed every time irrespective of t...

9年以上 前 | 0

回答済み
How to process specific data from multiply Excel files?
_"...Is there a way to process the data in a different way?"_ Of course! :) First, either create a file containing the li...

9年以上 前 | 0

回答済み
fprintf to txt too slow, anyway to accelerate it?
A=[a;b]; % append to one array for convenience A(A==badValue)=nan; % replace the bum values with NaN csvw...

9年以上 前 | 0

| 採用済み

回答済み
Extract data from a non-rectangular text file, efficiently
Close, but the first record is numeric, not string... >> n=cell2mat(textscan(fid,'%f',2,'collectoutput',1)) n = 50 ...

9年以上 前 | 0

| 採用済み

回答済み
How to Assign a Struct Field to a Matrix?
'Cuz you must have an already-existing _G_ variable... >> g=pi; >> g(1,:)=A.B.C Subscripted assignment dimension mism...

9年以上 前 | 1

| 採用済み

回答済み
Convert a 3d matrix mat file to multiples 2d CSV files.
Against my better judgement, but Walter says I preach too much... :) Presume array is _x_ in memory-- for i=1:size(x,3) ...

9年以上 前 | 1

回答済み
Quit matlab from script without "Attempt to restart MATLAB? [y or n]"
Check Confirmation Dialogs Prefereces for "Confirm before exiting MATLAB" setting and whether is a *finish.m* file in the workin...

9年以上 前 | 1

回答済み
How do I customize xticks on plots?
x = linspace(0,100,101); y=x+2; plot(x,y) xt=[24 95]; % set the desired tick location values set(gca,'xtick',xt,'...

9年以上 前 | 0

| 採用済み

回答済み
Reading from a variable length text file
Will show another approach based on previous comments... >> data=textread('sushim.csv','%s','delimiter','\n','whitespace','...

9年以上 前 | 0

回答済み
My if x ~= y statement is not working
*==* is precisely that to the LSB; undoubtedly the values in _E_load2_ in question are close but not identically equal. See the...

9年以上 前 | 1

| 採用済み

回答済み
How to extract rows from a text file with a specific start?
"Dead-ahead" solution... fid1=fopen('yourfile'); fid2=fopen('newfile','w'); while ~feof(fid) l=fgets(fid); ...

9年以上 前 | 1

回答済み
Reading from a variable length text file
*importdata* is _almost_ smart enough-- >> dat=importdata('sushim.csv'); dat = data: [8x14 double] textda...

9年以上 前 | 0

回答済み
legend problem with handles
I'm betting that the result of the *set* aren't working as intended; you've got a 5x5 array for the _markers_ array that at leas...

9年以上 前 | 0

| 採用済み

回答済み
switching x and y axes
concentrationfile=port_conc'; for i=1:NumTimeSteps, plot(concentrationfile(:,i)) ... The above plots e...

9年以上 前 | 0

回答済み
how to export datetime time series to excel
doc exceltime xlswrite('yourfile.xls',exceltime(yourdatetimearray))

9年以上 前 | 1

回答済み
Variable DivisionCount is not an integer datatype?
All variables are by default type _double_ in Matlab unless you make them something else; simple assignment won't do it, even if...

9年以上 前 | 0

回答済み
What does patch = imJ(j : (j+patchSize-1) , i:(i+patchSize-1), :) means?
Read doc colon It's simply a subarray selection of a rectangular area ("patch") from the _imj_ array (undoubtedly an ima...

9年以上 前 | 1

回答済み
Assign a certain element value if two array elements are equal
doc ismember *NB:* Be aware *ismember* is _exact_ equality and floating point rounding can wreak havoc on comparisons if ...

9年以上 前 | 0

回答済み
How to process multiple matrices. Checking whether the elements of a matrix are within the specified range
Given you heed the advice in the comment so the data are in array _loads_ lo=207; hi=253; % set the limits...

9年以上 前 | 2

| 採用済み

回答済み
Width of bar in bar plotting is very high
I'd guess using the _'BarWidth'_ property will help--it's 0.8 by default, decrease that value for narrower bar widths.

9年以上 前 | 0

さらに読み込む