Respondida
Why to I get "Unrecognized function or variable '1' ?
Could you check if it's _1_ or lower case alphabet _l_ used as variable in your script. Both appear same in Matlab scripts and h...

más de 4 años hace | 1

Respondida
How do you substitute x(1),x(2),x(3) in place of kp,ki and l respectively?
syms kp ki l y= ((1/10^(l + 1)*ki*kp*l*sin((pi*l)/2))/(kp + (ki*kp*cos((pi*l)/2))/10^l) - (1/10^(l + 1)*ki^2*kp^2*l*cos((pi*l)/...

más de 4 años hace | 0

Respondida
Doubt regarding max(A,B).
%f true max([A B]) max([A;B]) The first would give 10 as max value. The second would give 10 6 5 as max values along eac...

casi 5 años hace | 1

Respondida
Axes of plotted figure not complet (Matlab)
%if true box on Use this command to get the black lines top and right sides like you want.

casi 5 años hace | 0

| aceptada

Respondida
How to create a loop for varying the values of A, B & C according to months?
A, B and C are not constants, they are actually variables. Define, vectors for each of the parameters, A, B and C Then use a f...

casi 5 años hace | 0

| aceptada

Respondida
Unrecognized function or variable 'gaussian_plume_model'
gaussian_plume_model is a function which needs to be in same folder where you are running your script file. Try running your scr...

casi 5 años hace | 1

| aceptada

Respondida
How to separate plot titles on single line? [solved]
%if true plot(rand(10)); title('[head neck helmet impact energy rep]');

casi 5 años hace | 0

| aceptada

Respondida
how can i plot this equation?
%if tr syms x y f = y^3+0.2*exp(-1*x^2)*y^2-2.2039*y^2+0.8155 == 0; fimplicit(f,[-4 4])

casi 5 años hace | 0

| aceptada

Respondida
Plotting content from structure
sges.location1 = 1; sges.location2 = 2; sges.location3 = 3, sges.location4 = 4; sges.location5 = 5; sh.location1 = 4; sh...

alrededor de 5 años hace | 0

| aceptada

Respondida
Common xlabel and ylabel in a subplot of a subplot
x=sin(linspace(1,10)); % Set randomly for the example. figure(1); t=tiledlayout(4,4,'TileSpacing','normal','Padding','compact...

alrededor de 5 años hace | 0

| aceptada

Respondida
Array indices must be positive integers or logical values.
%if true f(i)=min{f(j)+t(i,j)};

alrededor de 5 años hace | 0

| aceptada

Respondida
Saving the outputs of multiple runs of a script
%if Count = 0.1:0.1:0.9; for correlation=1:length(Count) Change this line in _for loop_ and run it.

alrededor de 5 años hace | 1

| aceptada

Respondida
Polarplot for loop with subplots
%if true lambda = 1; t =(2*pi)/(1*10^100):(2*pi)/1000:2*pi; %theta; lambda = 1; k = [0.25 0.5 1 1.4 2 2.5]; for i = 1:le...

alrededor de 5 años hace | 0

| aceptada

Respondida
how to convert decimal values into 8bit binary sequence
%if true for i = 1:length(A); iwant{:,i} = dec2bin(A(i,:)); end This results in a 1x14 cell array converted to binary...

alrededor de 5 años hace | 0

| aceptada

Respondida
Matlab plot problem line 13
%if true plot(y, double(subs(dydt(y, E, r,K))));

alrededor de 5 años hace | 1

| aceptada

Respondida
Parentheses error with a function call
%if true x = load('mnist.mat', 'testX'); k=5; numIter=6; function [mu, cll, ill] = gmm(x, k,numIter) Assign _x_ dir...

alrededor de 5 años hace | 0

| aceptada

Respondida
Why I am getting the error "Invalid expression. When calling a function or indexing a variable, use parentheses. Otherwise, check for mismatched delimiters."
%if true for i = 1:NF err_frame(:,i) = err((i-1) * (1- % ^ ' is used for transpose OLR) + 1*(i-1) * frame_l...

alrededor de 5 años hace | 0

| aceptada

Respondida
How to run if and exist ?
final_residuals = [] for year= 1962:2016 for id=10000:93436 sub_regress = subsetPCA(subsetP...

alrededor de 5 años hace | 0

| aceptada

Respondida
How to clear a particular figure and replace it with other
%f true clf hold all fplot(f,'g') xlim([-1,3]) ylim([-2,2]) f1 = figure plot(0,0,'bo'); clf(f1,'reset') plot(0,1,...

alrededor de 5 años hace | 1

| aceptada

Respondida
Logical Indexing with Condition Involving Functions
%if true idx = find(A(a) == 1) Use it with _find_ function for element indices

alrededor de 5 años hace | 1

Respondida
I am getting this Error using makeState (line 56). Your fitness function must return a scalar value.
%if true MWh = k'.*X(1:N).'/c(4); From the error, the function must return a scalar which is possible with above chang...

alrededor de 5 años hace | 0

| aceptada

Respondida
Generate sequence of sine waves with changing amplitude
%f true f = 2.36e3; w = 2*pi*f; %sampling frequency fs = 50000; dt = 1/fs; %Amplitude of pickup signal at each of 11 d...

alrededor de 5 años hace | 0

| aceptada

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

alrededor de 5 años hace | 0

| aceptada

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

alrededor de 5 años hace | 1

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

alrededor de 5 años hace | 1

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

alrededor de 5 años hace | 0

| aceptada

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

alrededor de 5 años hace | 0

| aceptada

Respondida
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

alrededor de 5 años hace | 0

| aceptada

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

alrededor de 5 años hace | 0

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

alrededor de 5 años hace | 0

| aceptada

Cargar más