回答済み
Compare each element of two matrices, and plot number of times the elements are equal.
>> h=histogram(A,edges) h = Histogram with properties: Data: [0.1000 0.2500 0.5730 0.6700 1.2800 0.2500 0...

約8年 前 | 0

| 採用済み

回答済み
Counting every single symbol in string
[c,~,idx]=unique(s); % unique elements, location in the string 's' n=histcounts(idx,numel(c)); % count how many of...

約8年 前 | 0

回答済み
Plot where x axis is the date
|xlim| works with |datetime| data as x-axis for current releases.

約8年 前 | 0

回答済み
How do I make a boxplot with double y-axis and 4 vectors?
Unfortunately, TMW didn't give the possibility of having _x_ locations for |boxplot| other than ordinal position of the columns ...

約8年 前 | 3

| 採用済み

回答済み
How to repeat function for different arrays?
If there are related variables which need similar operations, then don't create them as individually-named variables but as memb...

約8年 前 | 0

回答済み
solve equation by numerical method
_*Always*_ try to plot() something to see what you have... >> fnf = @(x3) 2*x3+(2^(1/2)*exp(-x3^2/2) + 2^(1/2))/(pi^(1/2)*e...

約8年 前 | 0

| 採用済み

回答済み
How to set the legend text align center?
No can do, sorry...

約8年 前 | 0

回答済み
Plot the second figure in the left corner
Very first example at <https://www.mathworks.com/help/matlab/ref/axes.html#buzt7yy-4 Axes> shows how.

約8年 前 | 0

回答済み
Save workspace output to a file
>> help save save Save workspace variables to file. save(FILENAME) stores all variables from the current workspace in ...

約8年 前 | 0

回答済み
Center and scale a fit
There's a 'Normalize','off'|'on' Name-Value Pair Argument in the |fitOptions| <https://www.mathworks.com/help/curvefit/fit.html?...

約8年 前 | 2

| 採用済み

回答済み
Matrix Loop and Labelling
You didn't supply an _x_ to PLOT() so it plots versus ordinal number... ... x=[0:N].'; % define range of x axis ...

約8年 前 | 0

| 採用済み

回答済み
how do I prevent bar3 shading the sides of the bars?
OK, I did figure out how to modify the .ZData values written to get the proper effect. ... for k = 1:length(b) zd=b...

約8年 前 | 0

| 採用済み

回答済み
Can I create an array of probability distribution objects?
I've got a lot else going on but caught just a few minutes last night -- haven't ever used the newer distribution objects much s...

約8年 前 | 0

回答済み
Do Matlabs 3D plots swap axes?
Not the way |meshgrid| is laid out -- look at a small enough space you can see it easily (and also not symmetric so can tell who...

約8年 前 | 0

回答済み
Get difference between array values
You can't store the difference from 1 to 0 in an unsigned integer; is there a reason you can't just use default double for |test...

約8年 前 | 0

回答済み
Yet another TEXTSCAN question...
Let |textscan| do the equivalent |strrep| for you... >> fmt1=repmat('%f',1,3); >> t=cell2mat(textscan(s,fmt1,'delim',','...

約8年 前 | 1

回答済み
y = imread(file1, 'BackgroundColor', [1 1 1]); WHAT DOES IT DO?
doc imread Read image from graphics file Syntax A = imread(filename) A = imread(filename,fmt) A = imread(__...

約8年 前 | 0

回答済み
How to delete/extract rows of data from file 1 based on what data appears in file 2?
A. in1=ismember(D1(:,2),D2(:,2)); % locations of D1 in D2 in2=ismember(D2(:,2),D1(:,2)); % vice versa D=[...

約8年 前 | 0

| 採用済み

回答済み
Adding an Extra Input Parameter to the Function
Since |sequentialfs| is a builtin Toolbox function, you'll really not want to mess with it directly; write a wrapper function ar...

約8年 前 | 1

| 採用済み

回答済み
How to Generate random number that most of them ZEROs
Well, if they're to be uniformly distributed then only 33% of them on average will be zero; that's what "uniform" means. You ...

約8年 前 | 0

回答済み
Use regular expression to extract a matrix from a file
>> fid=fopen('gabe.txt'); >> a=cell2mat(textscan(fid,repmat('%f',1,4),'headerlines',5,'collectoutput',1)) a = 1.0...

約8年 前 | 0

| 採用済み

回答済み
Plot with 2 corresponding x-axes
Basics aren't difficult; I'll have to consider precisely how to do the upper axis ticks; I've got another appointment in town sh...

約8年 前 | 0

| 採用済み

回答済み
explanation of logical condition?
size((A(k).cdata),1) --> number rows in kth element of struct array A field cdata size((A(k).cdata),2) --> number cols in...

約8年 前 | 0

回答済み
table / timetable - removing zero columns
Presuming since you're comparing all to zero, that all elements of the table are numeric, then simply pTable=primersTable(:...

約8年 前 | 0

| 採用済み

回答済み
Why FFT signal power is 3dB higher than definition
The normalization is all in your code-- P2 = abs(Y/N); P1 = P2(1:N/2+1); P1(2:end-1) = 2*P1(2:end-1); This is the ...

約8年 前 | 0

| 採用済み

回答済み
how to label x and y ticks?
You don't show the code to generate the plot, but ylim(ax1,[0 50]) ax1.Ytick=[1 10:50]) will work for the y-axes; of ...

約8年 前 | 1

| 採用済み

回答済み
Daily average precip for many years
Just taking a stab presuming the file is something recognizable-- precip=table2timetable(readtable('yourfile.ext')); % rea...

約8年 前 | 1

| 採用済み

回答済み
i want to make the rows of some elements values empty and should be maintain the other row value
You can't make m(2,:) be four elements long while m(1) is 9 (or anything other than also four for that matter) as arrays must be...

約8年 前 | 0

| 採用済み

回答済み
Is the anyone can explain this scaling function?
Well, we don't really either without what the handles.data.J are, but one can presume the |Position| variable is the axes _'Posi...

約8年 前 | 0

回答済み
How to adapt the space between the grid lines to the space between the ticks?
You have to address the proper axes object to change its properties...to make working with multiple axes easier, be absolutely s...

約8年 前 | 0

さらに読み込む