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

fast 5 Jahre vor | 0

| akzeptiert

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

fast 5 Jahre vor | 1

| akzeptiert

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

fast 5 Jahre vor | 0

| akzeptiert

Beantwortet
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])

fast 5 Jahre vor | 0

| akzeptiert

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

etwa 5 Jahre vor | 0

| akzeptiert

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

etwa 5 Jahre vor | 0

| akzeptiert

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

etwa 5 Jahre vor | 0

| akzeptiert

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

etwa 5 Jahre vor | 1

| akzeptiert

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

etwa 5 Jahre vor | 0

| akzeptiert

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

etwa 5 Jahre vor | 0

| akzeptiert

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

etwa 5 Jahre vor | 1

| akzeptiert

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

etwa 5 Jahre vor | 0

| akzeptiert

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

etwa 5 Jahre vor | 0

| akzeptiert

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

etwa 5 Jahre vor | 0

| akzeptiert

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

etwa 5 Jahre vor | 1

| akzeptiert

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

etwa 5 Jahre vor | 1

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

etwa 5 Jahre vor | 0

| akzeptiert

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

etwa 5 Jahre vor | 0

| akzeptiert

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

etwa 5 Jahre vor | 0

| akzeptiert

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

etwa 5 Jahre vor | 1

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

etwa 5 Jahre vor | 1

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

etwa 5 Jahre vor | 0

| akzeptiert

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

etwa 5 Jahre vor | 0

| akzeptiert

Beantwortet
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

etwa 5 Jahre vor | 0

| akzeptiert

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

etwa 5 Jahre vor | 0

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

etwa 5 Jahre vor | 0

| akzeptiert

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

etwa 5 Jahre vor | 0

| akzeptiert

Beantwortet
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

etwa 5 Jahre vor | 0

| akzeptiert

Beantwortet
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

etwa 5 Jahre vor | 0

| akzeptiert

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

etwa 5 Jahre vor | 0

| akzeptiert

Mehr laden