Save each output in one file
writematrix(peaksnr, 'psnrO.xls','Sheet', i)

ungefär en månad ago | 0

Where is the mistake? Taylor Series in matlab?
syms T alpha = 0.056; beta = 0.0000186; R = 2000; f = R*(alpha+0.0078*(T-25)+beta*(T-25).^2); f = subs(f,T,80); tayl...

ungefär en månad ago | 0

| accepted

My simulation doesn't take into account the different height of the Faraday waves?
% Define physical parameters g = 9.81; % acceleration due to gravity d = 0.1; % fluid depth omega = 0.1; % forcing frequency ...

ungefär en månad ago | 0

| accepted

Loop through multiple columns in table using if condition
X.A = [randi([0 10],1,7) NaN] X.B = repmat(NaN,1,8); for i = 1:length(X.A) if (isnan(X.A(i)) & isnan(X.B(i))) ...

ungefär en månad ago | 0

| accepted

Iteration of writing videos
Place the below line close(cutvideo) Outside of the outer _for loop_ with index _k_.

ungefär en månad ago | 0

I keep getting this for my function and I don't know how to fix it -- Undefined function 'symsum' for input arguments of type 'double'.
format long N = [5 10 50]; Phi = prob2_6(N) % call function by passing vector of values with range N function phi = prob2_...

ungefär en månad ago | 0

Operation with large and small numbers
(1^4 + 1^4) + (23512^4 - 23512^4)

ungefär en månad ago | 1

variable store in loop
syms z x a v Y(1)=a T=0 for k=1:2 Y(k+1)=z; v=0; for l=1:k v=v+kroneckerDelta(str2sym('l-2'))*(k+2-l)*(k+1-l)*Y(k+2-l);...

ungefär en månad ago | 0

Unable to display variable as image
D = [16.1094 16.3903 12.4469 33.8613 6.7100 20.3669 27.7830 23.1273 10.9647 15.3839 43.2814 25.0800 4....

ungefär en månad ago | 1

Code Thermodynamics btech 3rd semester question to get results , plot graph if needed
p = 400*1e3; v1 = 0.05; v2 = 0.2; n = 1.1:0.01:1.7; W = (n./(n-1))*p*(v2-v1) plot(n,W); xlabel('polytropic exponent [n]');y...

ungefär en månad ago | 0

Storing and comparing values of an equation in loop
syms x f(x) f = x*exp(-2*x) F = diff(f,x) == 0 X = 0 : 0.1 : 1; idx = find(double(subs(F,x,X))) Max = X(idx) plot(X,doubl...

ungefär en månad ago | 0

Hello, how can I do a (for loop) for this equation to find more than one value of the CF ? Specifically, I mean more than one value for (xm)
xm= {[-1:4], [-5:-2],[-2:1]}; for k = 1:numel(xm) N=length(xm(k)); CF(k)= Coherence_Factor(xm(k),N); end CF function [CF]=...

ungefär en månad ago | 0

Hello, how can I do a (loop) for this equation to find more than one value of the CF ? Specifically, I mean more than one value for (xm)
xm = rand(5,10); N = 10; [CF]= Coherence_Factor(xm,N) function [CF]= Coherence_Factor(xm,N); CF = ((abs (sum(xm))).^2) ./ (N...

ungefär en månad ago | 0

Psychtoolbox-3: Error using Screen
charTex = cell(1,length(charList)); % create an empty cell array to store each new texture for i = 1:length(charList) ...

ungefär en månad ago | 0

Need help exporting block inputs to a list
Read this section for exporting data from simulink block to workspace. <https://in.mathworks.com/help/comm/ug/export-data-to...

ungefär en månad ago | 0

semilogx error, vectors must be same length
semilogx(freq,abs(Zexp01),'.') % use freq

ungefär en månad ago | 1

| accepted

error in import data

ungefär en månad ago | 0

| accepted

hi i am trying to get the output of this loop in one matrix to use it in another function can anyone help me ?
k = 1; for v2=0:0.1:1 ; sol= solve((v2/.06)*tan(z)*sin(d)==(v2/.06)*cos(d)-((v2*v2)/.06),d); s=sol; s2=double(...

ungefär en månad ago | 0

Unable to perform assignment because dot indexing is not supported for variables of this type
d.Inputs=Inputs; Targets=Targets(:,1); d.Targets=Targets;

ungefär en månad ago | 0

how to make datetime data readable and convert to julian date?

ungefär en månad ago | 0

| accepted

Error using indexing Invalid indexing or function definition. Indexing must follow MATLAB indexing.
%create symbolic functions x, a, b, c, d, e, f_c with independent variable t syms x(t) a(t) h(t) b(t) c(t) d(t) e f_c(t) f_c1(t...

ungefär en månad ago | 0

Change x-axis values in a 2D graph
e_inf = 1.0 ; %Valor Correcto Wp = 1; %Valor Correcto gamma = 1e-3; %Valor Correcto w1...

ungefär en månad ago | 1

How can I make summation using variable symbol
clc clear ng = 2; syms p [1 ng] a=[0.01;0.015];%The cofficeient next to power in the IFC equation b=[8.5;9.5];%The coff...

ungefär en månad ago | 1

| accepted

How to print Value in next line of Table in App desiginer
use [ ] operator as below or try with for loop which always works as intended pred11= sprintf('\n Class 1 Butterfly Levels: %...

ungefär en månad ago | 0

| accepted

dipole helix strips in one figure
Do you mean like below ? Refer here % Set the number of helixes to plot N = 35; % Set the radius and pitch of the helixes ...

ungefär 2 månader ago | 0

how to do loop on rows matrix?
As mentioned in your question, if you have zeros matrix to start with and want to allocate 1s to specfiic zero locations, then y...

ungefär 2 månader ago | 1

| accepted

App designer auto update table data
if strcmp(app.SlidecontrolSwitch,'on') clear Q1 Q2 Q3 Q4 % clear old values Q1 = ... Q2 = ... Q3 = ... Q4 = ... en...

ungefär 2 månader ago | 0

How do I solve this ?
n = 0:1:100; % n range syms x E = @(n) (x.^n)./(factorial(n)); fplot(sum(E(n)),[1 10]) hold on plot(exp(1:10)) legend('Su...

ungefär 2 månader ago | 0