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

etwa 5 Jahre vor | 0

| akzeptiert

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

etwa 5 Jahre vor | 0

| akzeptiert

Beantwortet
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...

etwa 5 Jahre vor | 0

Beantwortet
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...

etwa 5 Jahre vor | 1

Beantwortet
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];...

etwa 5 Jahre vor | 1

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

etwa 5 Jahre vor | 1

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

etwa 5 Jahre vor | 1

| akzeptiert

Beantwortet
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:...

etwa 5 Jahre vor | 0

| akzeptiert

Beantwortet
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]; ...

etwa 5 Jahre vor | 1

| akzeptiert

Beantwortet
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...

etwa 5 Jahre vor | 0

| akzeptiert

Beantwortet
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 ...

etwa 5 Jahre vor | 0

| akzeptiert

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

etwa 5 Jahre vor | 0

| akzeptiert

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

etwa 5 Jahre vor | 0

| akzeptiert

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

etwa 5 Jahre vor | 2

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

etwa 5 Jahre vor | 1

| akzeptiert

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

etwa 5 Jahre vor | 0

| akzeptiert

Beantwortet
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

etwa 5 Jahre vor | 1

| akzeptiert

Beantwortet
Unable to perform assignment because the indices on the left side are not compatible with the size of the right side.
%if true subjectID{n,:}=tmp;n=n+1

etwa 5 Jahre vor | 1

| akzeptiert

Beantwortet
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 ?

etwa 5 Jahre vor | 0

| akzeptiert

Beantwortet
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...

etwa 5 Jahre vor | 0

| akzeptiert

Beantwortet
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...

etwa 5 Jahre vor | 1

| akzeptiert

Beantwortet
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...

etwa 5 Jahre vor | 1

| akzeptiert

Beantwortet
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 ...

etwa 5 Jahre vor | 0

| akzeptiert

Beantwortet
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

etwa 5 Jahre vor | 0

| akzeptiert

Beantwortet
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...

etwa 5 Jahre vor | 0

| akzeptiert

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

etwa 5 Jahre vor | 0

| akzeptiert

Beantwortet
Pick one value from multiple results
X1(1)

etwa 5 Jahre vor | 1

| akzeptiert

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

etwa 5 Jahre vor | 0

| akzeptiert

Beantwortet
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

etwa 5 Jahre vor | 0

| akzeptiert

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

etwa 5 Jahre vor | 1

Mehr laden