已回答
Not seeing second plot data
%if true theta = 0:0.02:1; y = sin(theta); figure(1) plot(theta, y, theta, theta) grid pct = 100 - (100 * (theta - y)....

5 years 前 | 0

| 已接受

已回答
How do I plot an interval with this?
%if true function S = dval(x, a, v) n = length(a); s = a(n); for i = n-1:-1:1 s = s.*(v-x(i))+a(i); % got errors h...

5 years 前 | 1

已回答
Multiple elseif command not working even when condition is true
%f if Bita <= 0.1 .... .... elseif Bita > 0.1 & Bita <= 0.2 .... .... elseif Bita > 0.2 & Bita <= 0.3 ...

5 years 前 | 1

已回答
matrix dimension errors in trig-fourier serier
%if true t1=linspace(0,3,2000); n1=100; A0=0.75; f1=A0*ones(size(t1)); for n2=1:n1 cn=(1.5.*sin(2*pi*n2))./(2*pi*n2);...

5 years 前 | 0

| 已接受

已回答
making of Quiver Plots
%f true quiver(new_lon1,lat1,U(1,:,:),V(1,:,:),'k') Need to be same size as X and Y

5 years 前 | 0

| 已接受

已回答
Error using surf (line 71) Z must be a matrix, not a scalar or vector.
speed(1:285,1:285) % this matrix must have 285 x285 elements

5 years 前 | 0

| 已接受

已回答
Wind Energy Yield Calculation
%if true x = 0:0.1:10; y = wblpdf(x,3,2) Use the _weibull pdf_ function shown above and obtain the likelihood at each...

5 years 前 | 0

已回答
check array for zeros using for increment
%if true if array(row,col) ~= 0 check(i) = false; end Use loop index

5 years 前 | 0

| 已接受

已回答
How to for loop readtable and writetable range?
%f true %if true for i = 1:10 R1 = sprintf('%s%d:%s%d',char(069),i,char(070),i); R2 = sprintf('%s%d:%s%d',char(0...

5 years 前 | 0

| 已接受

已回答
draw 30 cycles of sinusoid oscillating at 10^6 hz
%f true fs=10^6; T=1/fs; tt=0:0.1*T:30*T; m=cos(2*pi*fs*tt); plot(tt,m) Try this

5 years 前 | 0

| 已接受

已回答
How can I joining text strings then print to txt file without delimiters?
%if true writecell(Z,'rxn.txt','QuoteStrings',false,'Delimiter',' ') Use delimiter option as none

5 years 前 | 0

| 已接受

已回答
How to store each value of for loop to another variable?
%f true l* for k = 1 : length(theFiles) baseFileName = theFiles(k).name; fullFileName = fullfile(theFiles(k).folder...

5 years 前 | 0

| 已接受

已回答
uilable with variable and char
%if true app.Field(v) = uilabel('Parent',app.Panel_2,'Position',[10,10,110,22],'Text',["Measurement "+v]);

5 years 前 | 0

| 已接受

已回答
Queries regarding time axis
%if true plot(t, Crel) It seems you have converted the cycles to days already. Try this

5 years 前 | 0

| 已接受

已回答
How to save answers from a Loop in one Matrix Column Wisw
S = 0.25:0.25:100; for i = 1:length(S) T = 1650*S(i); C1 = mean(LeadingTip(1:T)); C2 = mean(TrailingTip(1:T...

5 years 前 | 0

已回答
Define equation of tangent line f=sin(x) at multiple point inputs
syms f x y; f=sin(x); x0=0:2*pi/100:2*pi; y=subs(diff(f,x),x0).*(x-x0) + subs(f,x0); a=subs(y,x,1)-subs(y,x,0); p=1./sqrt(1...

5 years 前 | 1

已回答
how can I Compute the value of d for the following values of x , Outcome equation d=((34.63/x)-5.126)/2.54
%true d = []; for x=[0.1000,0.1500,0.2000] d=[d ((34.63/x)-5.126)/2.54]; disp ("ANSWER"); end x=[0.1000 0.1500 0.2000];...

5 years 前 | 1

已回答
Storing Value From For Loop
%f true value = 2200; for n=1:15 V(n) = value*1.04^n end

5 years 前 | 1

已回答
Code with function file not working
%if true P = X*(1+r/100).^t Change this line by adding operators

5 years 前 | 1

| 已接受

已回答
How to call two sets of arrays in a nested loop?
%if true a=45; x1=1:.02:6; alpha=x1.^4; t = 0:(pi/360):2*pi; %rray=zeros(251,721); p = 0:(pi/360):2*pi; K = 1:0.02:...

5 years 前 | 0

| 已接受

已回答
Matrix construction over a loop
clear x=[1:1:10]; a=2; b=4; c=6; for i=1:length(x) A(i)=a*b/x(i); B(i)=c+A(i)/b; D=a+b; E=1-2*c; MAT(i,:)=[B(i);D;E]; ...

5 years 前 | 1

| 已接受

已回答
Index exceeds the number of array elements (1).
do=sqrt(Efs/Emp); %distance between cluster head and base station for i=1:1:n %do(i)=sqrt(Efs/Emp); %distance betw...

5 years 前 | 0

| 已接受

已回答
Warning: Error updating FunctionSurface. The following error was reported evaluating the function in FunctionLine update: Unable to convert expression into double array.
%f true Ta = symsum(80*((1-(-1).^n)./(n*pi)).*sinh(n*pi*(0.4-y)./0.3).*sin(n*pi*x/0.3)./sinh(n*pi*0.4/0.3),n,1,Inf); Tb ...

5 years 前 | 0

| 已接受

已回答
Solving is taking infinite time
%if true for x=1:numel(X) double(X(x)) end

5 years 前 | 0

| 已接受

已回答
Issue with solving an equation
%if (3500*sqrt(x/30))./(1.4*sqrt(x/30)+0.115*x-276) Missing element wise operator

5 years 前 | 0

| 已接受

已回答
Different line types for multiple curves
%f true figure; p = plot(x, y); set(p, {'LineStyle'},{'-';'--';'-';'--'},{'color'}, {'r'; 'r'; 'b'; 'b'});

5 years 前 | 2

已回答
How can I give main title for multi-graphs?
%if true sgtitle('your title')

5 years 前 | 1

| 已接受

已回答
How can I give main title to the multi graph
%if true sgtitle('your title name')

5 years 前 | 0

| 已接受

已回答
Plotting within a nested for loop
%if true fig4 = figure() Comment the above line in the loop. It produces a seperate figure window each time in loop

5 years 前 | 1

| 已接受

加载更多