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

alrededor de 5 años hace | 0

| aceptada

Respondida
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

alrededor de 5 años hace | 0

| aceptada

Respondida
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

alrededor de 5 años hace | 0

| aceptada

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

alrededor de 5 años hace | 0

| aceptada

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

alrededor de 5 años hace | 0

| aceptada

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

alrededor de 5 años hace | 0

| aceptada

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

alrededor de 5 años hace | 0

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

alrededor de 5 años hace | 1

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

alrededor de 5 años hace | 1

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

alrededor de 5 años hace | 1

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

alrededor de 5 años hace | 1

| aceptada

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

alrededor de 5 años hace | 0

| aceptada

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

alrededor de 5 años hace | 1

| aceptada

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

alrededor de 5 años hace | 0

| aceptada

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

alrededor de 5 años hace | 0

| aceptada

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

alrededor de 5 años hace | 0

| aceptada

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

alrededor de 5 años hace | 0

| aceptada

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

alrededor de 5 años hace | 2

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

alrededor de 5 años hace | 1

| aceptada

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

alrededor de 5 años hace | 0

| aceptada

Respondida
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

alrededor de 5 años hace | 1

| aceptada

Respondida
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

alrededor de 5 años hace | 1

| aceptada

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

alrededor de 5 años hace | 0

| aceptada

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

alrededor de 5 años hace | 0

| aceptada

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

alrededor de 5 años hace | 1

| aceptada

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

alrededor de 5 años hace | 1

| aceptada

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

alrededor de 5 años hace | 0

| aceptada

Respondida
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

alrededor de 5 años hace | 0

| aceptada

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

alrededor de 5 años hace | 0

| aceptada

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

alrededor de 5 años hace | 0

| aceptada

Cargar más