回答済み
How to code to perform the following task?
"...randi ... will return only integer-valued values; rand will generate full-precision doubles but you'll have to scale to the ...

10日 前 | 0

| 採用済み

回答済み
How to apply this for-loop containing '<', designed for a scalar array, to several scalar arrays in a cell array?
There was no need for the loop in the original code -- quantile is already vectorized as are almost all ML-supplied functions. ...

11日 前 | 1

| 採用済み

回答済み
how to put many small text boxes that display information about individual data points in the same figure?.
Programmatically or interactively??? NB: the doc for interactively includes the following: Display Data Values Using Data Tips...

11日 前 | 1

| 採用済み

回答済み
'destination' is invalid
This isn't a MATLAB syntax error; it's indicating that your default working directory (the location given by cd at command line ...

11日 前 | 0

| 採用済み

回答済み
How to fix the event density within bins?
If you want 10 bins each direction, then change the resolution to match; your code use 90 in each direction which will give the ...

11日 前 | 0

回答済み
+60k Lines on one plot - Too slow
This is way too much data to plot on single figure realistically, of course it's going to take time. But, the use of a loop and...

11日 前 | 0

回答済み
[Beginer] How can I extract column from several .txt and add them to another .txt ?
OK, the other may be of some use to others; given the revelation of old version of ML in use here I'll just post a different Ans...

12日 前 | 0

回答済み
[Beginer] How can I extract column from several .txt and add them to another .txt ?
If you do that (create the names with fname=sprintf('BaseName%03d.txt',i); that is), then it's a piece o' cake because dir() ...

13日 前 | 0

| 採用済み

回答済み
How to plot multiple Graphs with nearly similar name of ordinate arrays
"I have 60 arrays which I called Eigenform1 until Eigenform60. ... And there is my Problem. ..." Indeed it is... "Is there any...

13日 前 | 0

回答済み
Calling MATLAB scripts from a MATLAB standalone executable
Not directly supported, no. I've not tried building one that uses it, but seems like you should be able to use feval with a dyn...

13日 前 | 0

回答済み
[Beginer] How can I extract column from several .txt and add them to another .txt ?
See the MATLAB FAQ @FAQ#How_can_I_process_a_sequence_of_files? for a fairly lengthy exposition of several alternatives. I'm par...

13日 前 | 0

回答済み
What variable can I put into find()?
" MATLAB isn't recognizing C(1,1) as a variable (which i'm pretty sure is the x cordinate of the mouse location). " There is n...

13日 前 | 0

| 採用済み

回答済み
how to put an app designer window in the center of the screen?
While you can do this using the .ScreenSize and .MonitorPositions properties retrieved from groot, I'd say it's quite rude and v...

14日 前 | 0

| 採用済み

回答済み
Extracting data from Matlab .fig with 2 different y-axes?
The two y-axes could have been drawn w/ the yyaxis function in which case there aren't actually two separate axes -- and it's n...

14日 前 | 0

回答済み
Extract data from csv with header ond footer
Another approach although with a real file so could figure out how to interpret what is actually the filel content and if had de...

14日 前 | 0

回答済み
Create a infinite while loop
As is, it would be better to open the file first and write each record; the line bufferRx1(indRx1:indRx1+samplesLength1-1) ...

15日 前 | 0

| 採用済み

回答済み
Calculating the Gaussian distribution paramaters
Let's try your formula with numbers... >> data1 = normrnd(-6,3,[200 1]); >> mean(data1) ans = -6.1098 >> std(data1) ans...

16日 前 | 1

| 採用済み

回答済み
cell2mat has a very specific condition
Indeed, you made dereferencing the data about as hard as could by putting it into cell array -- a struct could/can hold an ordin...

17日 前 | 0

| 採用済み

回答済み
Separate a matrix into bins based on first column values
load DataRoll bar(N) xlim([0.25 31.75]) [min(DataRoll(:,1)) max(DataRoll(:,1))] [N,e,g]=histcounts(DataRoll(:,1),-15:16); t...

19日 前 | 0

回答済み
Listing values that fall into histogram
edges = 2.^(-2:14); [N,~,bin]=histcounts(Cell_Biomass_001,edges); BinSums=groupsummary(Cell_Biomass_001,bin,'sum');

22日 前 | 1

| 採用済み

回答済み
Why I am getting Same p-value, h and stats while using Wilcoxon Rank test for 7 different data set?
taz=readmatrix('az_solar.xlsx').'; >> [mean(taz) std(taz)] ans = 138.9109 16.7621 >> >> mnref=readmatrix('Mean_Surfac...

23日 前 | 0

| 採用済み

回答済み
Problem in determining standard error and plotting 3 error bars
tData=readtable('WORK.xlsx'); tData.ParticleConc=1E9*tData.ParticleConc; tData.CAPE_Bin=discretize(tData.CAPE,[0,500,900,inf])...

23日 前 | 0

| 採用済み

回答済み
How to insert a zero column vector in a matrix according to a particular position?
ixInsert=N; % set the index Z=zeros(size(M,1)); % the insert vector (don't hardcode magic numbers into code) if ...

24日 前 | 1

回答済み
how to repeat a loop?
While you could, why not just duplicate the array as many times as needed once it's been generated -- z=repmat(z,2,1);

24日 前 | 1

回答済み
Create new column based on whether values in another column are NaN or a number
tData.Event_Z_Yes=isfinite(tData.Event_Z);

24日 前 | 0

| 採用済み

回答済み
How do for loop and stop when code is catch error 1e-6, and please i need to check following code to get "M1" Value
e1=0.0045/.00264; fnF=@(M1)((2+0.135.*M1.^2)./(2.135)).^(2.135./(4*0.135)).*(1./M1).^0.5-e1; fplot(fnF,[0.1 3]) shows zero cr...

24日 前 | 0

回答済み
How to group logical numbers in a vector?
>> num_gr_1=sum(diff(Vector)==1)+(Vector(1)==1) num_gr_1 = 3 >> There are FEX submissions for runlength encoding that ...

24日 前 | 0

回答済み
How to change interval of normalized x-axis?
normalize() and plot against the x variable itself instead of the "prettified" xtick values. plot(normalize(x,'range',[0 100]...

24日 前 | 1

| 採用済み

回答済み
replace dlmread file name with a variable in a loop
You've got to turn the numerics into string filename to build dynamically -- for T = [288 299 308 323 337] for P = [10 100 3...

25日 前 | 1

もっと読み込む