回答済み
How to change the legend colored linewidth, not the width of box outline
Save the optional _object_h_ handle for the line and text objects in the legend axes and set their properties. You'll have to q...

11年弱 前 | 3

回答済み
How to make probplot run in descending order?
set(gca,'xdir','reverse') % maybe???

11年弱 前 | 0

回答済み
perform join without using dataset or table
[~,lib]=ismember(dat(:,1),w(:,1)); % location of year in data dat=[dat w(lib,2)]; % concatenate the weight...

11年弱 前 | 1

| 採用済み

回答済み
How to compare value for two variable?
I presume you intended the three variables, not the same variable three times...simplest would be to first change storage/naming...

11年弱 前 | 0

回答済み
i have c=300*10^6, 0<=v<=300*10^6, L=2 and the relation d= L (1- ( 1-(v^2/c^2) )^0.5 )
doc linspace doc logspace doc plot doc semilogx doc loglog

11年弱 前 | 0

| 採用済み

回答済み
problem with converting dates to numbers
You seem to keep retrogressing past what we've already solved/shown solutions for. Why not build on the previously working solu...

11年弱 前 | 0

回答済み
Transpose rows and collums inside a .mat file
_"2*8760 excel file that I need to turn in to a 8760*2 .mat file"_ *SAVE* uses strings as its arguments so you can't do the t...

11年弱 前 | 1

| 採用済み

回答済み
Finding out if the max value in a vector is in a certain interval in a vector?
[~,idx]=max(C); % location of max in C imax=fix((idx-1)/16)+1; % compute the subsection

11年弱 前 | 1

| 採用済み

回答済み
problem with converting dates to numbers
The problem isn't *datenum*, it's that you're trying to pass a cellstr array into it. If you're going to use *readtable*, use a...

11年弱 前 | 0

回答済み
How do I create an arbitrary polynomial with defined coefficient in vector form?
One way is b= [2 5].'; x=1; y=polyval(b,x);

11年弱 前 | 1

回答済み
Change font size for second y-axis in plotyy
[X|Y] labels inherit font size, name, etc., from the axes. To change the ylabel fontsize independently of the axes tick label s...

11年弱 前 | 0

回答済み
Finding the area between a graph and a line
for c=1:9 ix=Velocity_milesph(:,c)>=1000; int=(trapz(Time_h(ix),Velocity_milesph(:,c(ix)))); disp(int) end ...

11年弱 前 | 1

| 採用済み

回答済み
Hello, I have question which i need to solve. if i got a matrix, how can i check if there is any equal rows in it ? without using loops,if,unique,for :\ thanks
Well, there is a way w/o *unique*; I presumed the prohibition against *unique* originally wasn't really so; only to avoid a loop...

11年弱 前 | 0

回答済み
Hello, I have question which i need to solve. if i got a matrix, how can i check if there is any equal rows in it ? without using loops,if,unique,for :\ thanks
function isMult=ismultirow(x) % return logical T if are identical multiple rows in input X array isMult=size(unique(...

11年弱 前 | 0

回答済み
'Not equal too' statement not working
As noted in the above comment prior to seeing your response... >> x=[5,3]; y=[5,2]; >> all(x==y) ans = 0 >> y(2)=3;...

11年弱 前 | 0

回答済み
Only month and year matrix
Use the facility of *datenum* to automagically roll over the higher-granularity fields... dn=datenum(1946,[1:((2003-1946)+1...

11年弱 前 | 0

回答済み
How to determine start and end points of fitting curve?
A power model doesn't fit these data worth a hooey at the lower end...try plot(f,x,y,'*') set(gca,'yscale','log') yli...

11年弱 前 | 0

回答済み
How do I store matrix solutions from a loop into another matrix?
_T_ has to be size of _Tr_ in each plane; not sure where you got the 6,1 from... T=zeros(4,4,6); for n=1:6 T(:,:,n)...

11年弱 前 | 0

| 採用済み

回答済み
plotting using semilogy in a loop
See doc hold Set hold on after the first iteration and add the subsequent lines. You'll want to cycle the colo...

11年弱 前 | 0

回答済み
Create a Matrix with a specific main diagonal
Multiple ways possible; one-- >> N=5; % diagonal value >> sz=3; % size >> m=ones(sz)+diag(repmat(N-1,1,sz)) m = ...

11年弱 前 | 0

回答済み
How can I use unique on two separate matrices?
>> N=hist3([A(:,1) B],c) N = 1 1 0 1 0 0 >> Have to iterate over each column

11年弱 前 | 0

回答済み
deleting and adapting columns in matrix of function handles
There are no "columns" in _A_ and _A_ is not a matrix... >> A = @(x) [x , x^2, x^3; 2*x, 2*x^2, 2*x^3] A = @(x)[x,x^...

11年弱 前 | 0

回答済み
interp1 "The values of X should be distinct."
Hmmm....mayhaps TMW has changed the error message slightly? Generally one has a doubled-value in the interpolating function -- ...

11年弱 前 | 0

回答済み
how to get the sum of the difference of the output from a multiplication and a data set
OK, with the revised objective, no loop needed... b=2; c=1; d=1; n=4; M=[4.5 10.5 20.5 25.6 30.8]; f=[1 4...

11年弱 前 | 0

| 採用済み

回答済み
How to separate Vector in different Lenghts
Well, unless you fix the value of _Value_ it's going to be a variable-length vector by definition. I don't know where the uC is...

11年弱 前 | 0

| 採用済み

回答済み
How to plot stacked bar in Matlab with showing each limit ?
>> Y = [5 1 2; 8 3 7; 9 6 8; 5 5 5; 4 2 3]; % sample data from bar example... >> Z=cumsum(Y,2); ...

11年弱 前 | 0

| 採用済み

回答済み
how to skip a executable file?
Start the external program with the trailing _&_ to allow execution to continue immediately and then issue a *pause* for the des...

11年弱 前 | 0

回答済み
Trying to get a plot but I get the error below, any way to plot without changing the code but using different syntax?
xHe=0:1:100; %Important xAr=100:-1:0; %Important pg=(1.5979.*xAr)+(.1624.*xHe); ... yprime(2,1)=(V.*(pm-pg).*g-(...

11年弱 前 | 0

| 採用済み

回答済み
How to limit a string?
Test for the existence of the complete string and exclude...set those lines in the initial array =[] before processing the rest....

11年弱 前 | 0

| 採用済み

回答済み
How do I generate a vector of ordered integer without a loop or in faster way
Prealllocate and populate instead of concatenating for starters... M=zeros(1,1+sum(q)); i1=2; for q=3:2:9 i2=i1-...

11年弱 前 | 0

さらに読み込む