Beantwortet
generate and save numerous datas in one code then load them in another code
% in A.m file [p,q] = B % call the function wbich returns those outputs variables (values) n = p + q % add them directly as...

mehr als 3 Jahre vor | 0

Beantwortet
Precision of rounding numbers
D = 1/(0.1*0.00001) fprintf('%.2d',D) % try using %d format specifier As you are using %f it is meant for floatpoint num...

mehr als 3 Jahre vor | 0

Beantwortet
Open an "array" of filenames
Its possible to open multiple files as you intend. Use the sprintf function to open individual filenames identified using an in...

mehr als 3 Jahre vor | 0

Beantwortet
Char not working properly ?
To display text on figure window, you should rather use uilabel function in place of uitextarea which produces same output as de...

mehr als 3 Jahre vor | 0

| akzeptiert

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

mehr als 3 Jahre vor | 0

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

mehr als 3 Jahre vor | 0

| akzeptiert

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

mehr als 3 Jahre vor | 0

| akzeptiert

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

mehr als 3 Jahre vor | 0

| akzeptiert

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

mehr als 3 Jahre vor | 0

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

mehr als 3 Jahre vor | 0

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

mehr als 3 Jahre vor | 1

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

mehr als 3 Jahre vor | 1

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

mehr als 3 Jahre vor | 1

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

mehr als 3 Jahre vor | 0

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

mehr als 3 Jahre vor | 0

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

mehr als 3 Jahre vor | 0

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

mehr als 3 Jahre vor | 0

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

mehr als 3 Jahre vor | 0

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

mehr als 3 Jahre vor | 0

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

mehr als 3 Jahre vor | 1

| akzeptiert

Beantwortet
error in import data
mydata{k} = imread(myfilename);

mehr als 3 Jahre vor | 0

| akzeptiert

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

mehr als 3 Jahre vor | 0

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

mehr als 3 Jahre vor | 0

Beantwortet
how to make datetime data readable and convert to julian date?
use readtable instead of readmatrix D = readtable('dd.txt') % use readtable dt = D.Date_Asia_Jakarta_ jd = juliandate(dt)

mehr als 3 Jahre vor | 0

| akzeptiert

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

mehr als 3 Jahre vor | 0

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

mehr als 3 Jahre vor | 1

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

mehr als 3 Jahre vor | 1

| akzeptiert

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

mehr als 3 Jahre vor | 0

| akzeptiert

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

mehr als 3 Jahre vor | 0

Mehr laden