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

5 years ago | 0

| accepted

Answered
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 ago | 0

Answered
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 ago | 1

Answered
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 ago | 1

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

5 years ago | 1

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

5 years ago | 1

| accepted

Answered
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 ago | 0

| accepted

Answered
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 ago | 1

| accepted

Answered
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 ago | 0

| accepted

Answered
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 ago | 0

| accepted

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

5 years ago | 0

| accepted

Answered
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 ago | 0

| accepted

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

5 years ago | 2

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

5 years ago | 1

| accepted

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

5 years ago | 0

| accepted

Answered
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 ago | 1

| accepted

Answered
Vectors Must be same length. Do I use Linspace or ?
%if true t = linspace(0,6,length(s));%0:0.05:6; What is size of variable _s_ in workspace ?

5 years ago | 0

| accepted

Answered
Square Wave from Sine Waves
%f true f = 0.5; vp = 2; N = 8; t = 0:0.01:2; for k = 1: length(t) for i = 1:N K(i,k) = (1/(2*i-1))*(vp*sin(2*pi*(2*i-1...

5 years ago | 0

| accepted

Answered
Display elapsed time on the x-axis
%if true tic; for i = 1:1000 disp('Running your program ') ; pause(20); end toc plot(1:round(toc),linspace(1,10,roun...

5 years ago | 1

| accepted

Answered
Issues plotting an equation.
%f true clc t=0:.5:5; w_d=4; o=1 x=(10*exp(-o*t).*(cos(w_d*t))-(0.2*exp(-o*t)).*(sin(w_d*t))); plot(x,t) Try abov...

5 years ago | 1

| accepted

Answered
Error: get_steady_state>@(x)equilibrium(x,Wl,Pin,T0) (第 41 行) 输入参数太多。Error Code Location : [a_steady, ~, exitflag, ~] = fsolve(@(x) equilibrium(x, Wl, Pin, T0), [real(a_steady)*1e16 imag(a_steady)*1e16], opt);
%f true fsolve(@equilibrium,...) Without @(x) inside the _fsolve_ function.call the function name as above with only the ...

5 years ago | 0

| accepted

Answered
I've been stuck for way too long on this problem, I really just need someone to help me with the syntax I need for this problem.
%if true for b = 1: x if a(b) == 5 % do some thing here end end

5 years ago | 0

| accepted

Answered
I am getting "Error in Plots (line 31)" but ı don't understand why
%if true figure plot(alpha,Fy(:,1),alpha,Fy(:,2),alpha,Fy(:,3),alpha,Fy(:,4),'linewidth',2) You forgot to close the pare...

5 years ago | 0

| accepted

Answered
Unrecognized function or variable 'writevideo'.
%if true writeVideo(vv,A)

5 years ago | 0

| accepted

Answered
Pick one value from multiple results
X1(1)

5 years ago | 1

| accepted

Answered
Fitting using pop up menu on matlab gui
%if file=uigetfile('*.xlsx') set(handles.edit1,'String', file) data = xlsread(file) Try above

5 years ago | 0

| accepted

Answered
Reducing the points on x -axis
%if clc; g=0.43; z=-0.001:0.01:2.322; k=0.272; f=g*z+k; plot(log(z),f-0.272);xlim([-4 4]) Try this

5 years ago | 0

| accepted

Answered
not getting a plot
%f plot(U_by_P,R,'r') Try above. You might want plot of R and U_by_P

5 years ago | 1

Answered
simplification and preallocation of a symbolic value in matlab script
%if true vpa(BLOKS,4) Try something like above using _vpa_

5 years ago | 1

| accepted

Load more