回答済み
open a text file using fopen in read mode
data=fopen('data.txt','r'); |fopen| doesn't return data; all it does is return a file handle for |fscanf|, |textscan| and f...

約8年 前 | 0

回答済み
How to create legend for two error bar plots
_h_ and _ht_ are column vectors of handles and you've concatenated them into a 2x2 array instead of a vector...it's trying to pu...

約8年 前 | 0

| 採用済み

回答済み
How can I polar plot in decibels?
You're in luck; TMW did introduce a somewhat more capable polar plotting capability in R2016b... hP=polarplot(teta,corte0,'...

約8年 前 | 0

回答済み
How can I introduce a variable in a plot using text?
Need to fix the syntax errors, first in the string and then in |text|... text(5,5,['\leftarrow' num2str(m)],'color','r','Fo...

約8年 前 | 1

| 採用済み

回答済み
Fitting data to Gaussian function forced to have zero mean
Use |mle|; there are some examples in the doc fitting distributions with fixed parameters... Given _x_ is your observation ve...

約8年 前 | 0

回答済み
Question about "triggerlevel"
_"that trigger level of 0.1 stands for."_ It's amplitude of the input signal in whatever units it is at that point; that's to...

約8年 前 | 0

| 採用済み

回答済み
How can I obtain a truncated log-Normal distribution object?
You can't use the builtin distribution objects, no; they don't have the flexibility to be truncated distribution desired; what y...

約8年 前 | 0

回答済み
I want to add a column of numbers to a text file which already exists, how?
Short answer is to just create the file anew... t=readtable('yourfile'); % or whatever way to read; readtable is pretty...

約8年 前 | 0

| 採用済み

回答済み
Hist3 axis scale (time)
hAx=gca; % handle to current axes du=seconds(interp1(zlim,zlim,hAx.ZTick)); % make durat...

約8年 前 | 0

回答済み
I can't get my error-bar plot to work
h = errorbar(fitresult,'b', xData, yData,'.k',er); %THIS LINE gives me the error message As it rightfully should; <https:...

約8年 前 | 1

| 採用済み

回答済み
Plotting a fit with excluded data results in error "Subscript indices must either be real positive integers or logicals."
I can reproduce symptoms here with R2017b; appears to be a bug. I thought perhaps using the named parameter form handle = ...

約8年 前 | 1

| 採用済み

回答済み
How can I change marker size when plotting?
h = plot( fitresult,'b', xData, yData, '.k', 'MarkerSize',10); Looks like you've exceeded the smarts of the enhanced |plo...

約8年 前 | 0

| 採用済み

回答済み
running matlab using command line
Append an ampersand (&) to the command string

約8年 前 | 0

回答済み
For 'readtable' func parameter 'Format' is not recognized although importing from a text
As documented... T = readtable(filename,opts,Name,Value) creates a table using the import options and with additional opt...

約8年 前 | 1

| 採用済み

回答済み
Summing in Matlab using data extracted from Excel
vals=xlsread(filename,2,'C8:C13'); total=sum(vals);

約8年 前 | 0

回答済み
kmeans clustering on n*3 matrix
>> help kmeans kmeans K-means clustering. IDX = kmeans(X, K) partitions the points in the N-by-P data matrix X int...

約8年 前 | 0

回答済み
fzero - how to set maximum number of iterations
"Yes, we have no bananas today!" |fzero| doesn't use the iteration count variables in the options object, true. If it were...

約8年 前 | 0

| 採用済み

回答済み
Read/Write large CSV file
Confirmed behavior w/ R2017b; it's an issue with record length and |textscan| it appears...I didn't explore just where it actual...

約8年 前 | 1

回答済み
FFT - Matlab Code not correct
_"As a sampling frequency, I have chosen the frequency that I have also set the pulse generator (5Mhz)."_ There's your proble...

約8年 前 | 0

回答済み
plot multiple graphs in same plot alligned
Then standardize the _y_ data before plotting each line in a consistent fashion -- one way would be as <https://www.mathworks.co...

約8年 前 | 0

回答済み
Specify a format character vector in readtable
Ah! That's an internal problem in that |timerange| _calls_ |datetime|. Unfortunately, there's a quality of implementation pr...

約8年 前 | 1

| 採用済み

回答済み
[DISCONTINUED] MATLAB Answers Wish-list #4 (and bug reports)
On a too-hot summer day I thought I might just try to answer some Q? that hadn't gotten responses...a sort on :unanswered by dat...

約8年 前 | 0

回答済み
Specifying legend information based on point plotted
% 'r' b' 'm' 'c' 'g' 'k' % color order lookup vector letter c=[[1 0 0]; [0 0 1]; [1 0 1];...

約8年 前 | 0

回答済み
Generating sets of non repeating random numbers
>> ix=reshape(randperm(40),10,[]) ix = 35 23 21 40 26 17 8 36 38 5 27 18 ...

約8年 前 | 2

| 採用済み

回答済み
On multiple logical test failing in if statement
Apparently the issue was likely one of the cases wasn't actually _T_ or some similar misstep, but illustrates the difficulties i...

約8年 前 | 2

| 採用済み

回答済み
How to find elements of an Array using indexes.
for i = 1:31 [Y, I] = min((latS-latG(i)).^2 + (lonS-lonG(i)).^2); disp(I) ...

約8年 前 | 0

| 採用済み

回答済み
Extracting X Y values from a .txt file
You'll have to parse that file to locate the desired sections...none of the builtin reading tools are able to do such a file str...

約8年 前 | 0

回答済み
Specify a format character vector in readtable
It's not as trivial as the error message makes it seem, granted...there's only the named parameter _'Format'_ available as input...

約8年 前 | 0

回答済み
ploting a 2D matrix and adjusting axes
hAx=gca; % handle to the axes hAx.YDir='normal'; % set Y axis direction--imagesc uses 'reverse' Y See link...

約8年 前 | 0

回答済み
How to manipulate data between two numbers?
Any number of ways; a couple... z=interp1([min(x) max(x)],[0 1],x); b=polyfit([min(x) max(x)],[0 1],1); z=polyval(x...

約8年 前 | 0

| 採用済み

さらに読み込む