回答済み
How to increase speed of xlsread and xlswrite?
Unless you can arrange it such that you make all changes in Excel at one time, *xls[read|write]* are going to be slow; nothing m...

10年弱 前 | 1

回答済み
How can I count the number of vector elements without repetition?
>> na=[2 5 2 8 9 8 7 8 1]; >> length(unique(na)) ans = 6 >>

10年弱 前 | 1

| 採用済み

回答済み
Std deviation from fit (or other fitting tool)
I guess first is what you mean by _"standard deviation for a fit"_? That said, however, from >> help fit ... [FO,...

10年弱 前 | 0

回答済み
Filter data from text file whilst importing
Only way I see to do this is to either read line-by-line and parse each line to see whether to keep or not or on same idea to re...

10年弱 前 | 0

回答済み
How can I write the entry in the first row first column? For instance M(1,1) doesnot work out for me. Any tips out there?
>> help function_handle ... With one exception, function handles can be manipulated and operated on in the s...

10年弱 前 | 0

回答済み
Normal Distribution Probability Finder
>> norminv(0.1,-2.125) ans = -3.4066 >> if have Stat Toolbox. Right answer, wrong question (and a typo, to boot)....

10年弱 前 | 3

回答済み
MATLAB - how can I improve speed of my code ?
ft = fittype('omegaxraioc(x,a,b)'); We can't see what *omegaxraioc* actually is, but it must return a vector of same length...

10年弱 前 | 0

回答済み
I have created a subplot with many different diagrams. Now i want to set the coordinates range.
... for i = 1:length(plotPositions) plotHandle = subplot(3, 2, i); ... The above is the root of your problems....

10年弱 前 | 1

回答済み
How to import data to Excel through Matlab in one loop
See FAQ <http://matlab.wikia.com/wiki/FAQ#How_can_I_process_a_sequence_of_files.3F <How can I process a sequence of files>> I'm...

10年弱 前 | 1

回答済み
importing vectors from text file
What would you expect the result to be for each input record? Looks like one of the few places for *eval*, though...read the ...

10年弱 前 | 0

回答済み
How to delete columns from 3D-array
If the order of the nonzero elements isn't of significance or they're matching as the example then >> Q(:,:,1) = [1 0 1 0 1...

10年弱 前 | 0

回答済み
How do I get my x labels to show for e.g. Jan2000 Jul2000 Jan2001....etc?
t_dn=datenum(2000,1:6:13*12+1,1).'; % tick values for jan/jul 1, 2000 on for 13 years Nitplot.XTick=t_dn; ...

10年弱 前 | 0

回答済み
How to select one specific file from a folder of same extension
d=dir('SN*.DAT'); % return list of files beginning w/ 'SN' for i=1:length(d) % do whatever with each file here... ...

10年弱 前 | 0

| 採用済み

回答済み
plotting multiple arrays with arbitrary x-axis side by side?
*plot* will do automagically each line on same axis if arrange by column. In that orientation each line will be a different col...

10年弱 前 | 0

回答済み
find change points, point of inflection and concave up and concave down
If you have the Signal Processing Toolbox, the simplest solution is to use *findpeaks* -- >> [~,locup]=findpeaks(y) % (+)i...

10年弱 前 | 1

| 採用済み

回答済み
Using fscanf where there may or may not be data
Use *fgetl* first and check for the condition, then scan the string from memory instead. This is going to be a hassle using sep...

10年弱 前 | 0

回答済み
How can I add ' ' to each number in a column?
_"...add ' ' around each number ... (to convert it to a cell-array)."_ Adding quotes doesn't "convert" to a cell array; the s...

10年弱 前 | 0

回答済み
Cannot read properly with fscanf a file configuration.in
Your format doesn't account for the nonnumeric field ahead of the number in each record. Use something like fmt='%*s%f'; ...

10年弱 前 | 0

回答済み
Mean of many changing "for loop" 3D matrices
Well, you _could_ do that (store in a 4D array, that is) but that requires memory for all 200 at once and there's no need when c...

10年弱 前 | 0

| 採用済み

回答済み
count number of values greater than threshold.
n=sum(reshape(y,60,[])>30).'; presuming mod(length(y),60)==0 If there are an indivisible number of elements, then n=...

10年弱 前 | 0

回答済み
extract 2 data(temperature) from string
This would be a good place for regular expressions, but I'm a dweeb when it comes to trying to write the proper parsing expressi...

10年弱 前 | 0

回答済み
excel timestamps vs matlab
See <http://www.mathworks.com/help/matlab/import_export/when-to-convert-dates-from-excel-files.html <Import and Export Dates to ...

10年弱 前 | 2

| 採用済み

回答済み
Attempting to find data points of two different matrices based off of time, but outcome is that I am getting the same value repeatedly
'Cuz you're not restricting the search to only begin with the last found location and by default *find* will find the first loca...

10年弱 前 | 0

| 採用済み

回答済み
Importing txt files... each column as individual variable
See <http://www.mathworks.com/help/matlab/ref/readtable.html <readtable>>

10年弱 前 | 1

| 採用済み

回答済み
Can I get the best fit curve from the plot of many scattered points?
Well, given the followup response, it's pretty simple to estimate the coefficients of a line given any set of data--of course, t...

10年弱 前 | 0

回答済み
str2double conversion...
Because _str{strv}_ will be a single character and equal to 'N' assuming the string _'Num_X='_ is in the text in the first line;...

10年弱 前 | 0

| 採用済み

回答済み
Array doesn't get filled - for loop
Because you didn't write the array indices inside the loop; you filled each array with a constant each pass thru the loop; the l...

10年弱 前 | 0

| 採用済み

回答済み
How to round a result to two decimal places
v=(4/3)*pi*r^3; >> format long g >> v v = 4188.79020478639 >> round(v*100)/100 ans = ...

10年弱 前 | 5

| 採用済み

回答済み
Number of leading zeroes as a variable
Fer shure, just write the format string desired dynamically-- function s=leadzero(Nz,z) fmt=num2str(Nz,'%%0%dg'); ...

10年弱 前 | 1

| 採用済み

回答済み
scale x-axis
Simplest (at cost of some extra memory) is to just define a _t_ vector to plot against... t=linspace(0,(length(data)-1)/256...

10年弱 前 | 0

| 採用済み

さらに読み込む