回答済み
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...

約3年 前 | 0

回答済み
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...

約3年 前 | 0

| 採用済み

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

約3年 前 | 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...

約3年 前 | 0

| 採用済み

回答済み
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 ...

約3年 前 | 0

| 採用済み

回答済み
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))) ...

約3年 前 | 0

| 採用済み

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

約3年 前 | 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_...

約3年 前 | 0

回答済み
Operation with large and small numbers
(1^4 + 1^4) + (23512^4 - 23512^4)

約3年 前 | 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);...

約3年 前 | 1

回答済み
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....

約3年 前 | 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...

約3年 前 | 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...

約3年 前 | 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]=...

約3年 前 | 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...

約3年 前 | 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) ...

約3年 前 | 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...

約3年 前 | 0

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

約3年 前 | 1

| 採用済み

回答済み
error in import data
mydata{k} = imread(myfilename);

約3年 前 | 0

| 採用済み

回答済み
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(...

約3年 前 | 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;

約3年 前 | 0

回答済み
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)

約3年 前 | 0

| 採用済み

回答済み
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...

約3年 前 | 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...

約3年 前 | 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...

約3年 前 | 1

| 採用済み

回答済み
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: %...

約3年 前 | 0

| 採用済み

回答済み
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 ...

約3年 前 | 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...

3年以上 前 | 1

| 採用済み

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

3年以上 前 | 0

さらに読み込む