Réponse apportée
error in import data
mydata{k} = imread(myfilename);

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
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(...

plus de 3 ans il y a | 0

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

plus de 3 ans il y a | 0

Réponse apportée
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)

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 3 ans il y a | 0

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

plus de 3 ans il y a | 1

Réponse apportée
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...

plus de 3 ans il y a | 1

| A accepté

Réponse apportée
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: %...

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
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 ...

plus de 3 ans il y a | 0

Réponse apportée
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...

plus de 3 ans il y a | 1

| A accepté

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

plus de 3 ans il y a | 0

Réponse apportée
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...

plus de 3 ans il y a | 0

Réponse apportée
Integration limit is an array
syms x tau=35*10^-15; f=tau.*exp(-x.^(2)); t=linspace(-300*10^-15,300*10^-15,500); fun=matlabFunction(f,'Vars',x) for k = 1...

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
How to write a for loop to generate a new set of initial conditions based on a input value that changes over different time intervals.
% Set the initial values A = 1; B = 1; C = 1; D = 1; % % Input = 1; % Set the model parameters k1 = 1; k2 = 3; k3 = 2;...

plus de 3 ans il y a | 1

Réponse apportée
I do not get how am I getting Index in position 3 is invalid. Array indices must be positive integers or logical values. in code attached.
for t = dt:dt:tf % this is source b(idx) = T(i,j,t); this is cause Matlab uses 1 based array indexing. t is assigned deci...

plus de 3 ans il y a | 0

Réponse apportée
how to append my data?
D = [1 1 2 1 2 2 2 3 3 4 4 5 5 6 6 6] D = reshape(D,[],1)

plus de 3 ans il y a | 1

Réponse apportée
Rearrange symbolic variables in equation
syms a b c ; eqn = a/b == (c-3); S = solve(eqn,[ a,b,c])

plus de 3 ans il y a | 0

Réponse apportée
How to plot the figure in LT?
x=[0;1;2;3;4;5;6;7;8;9;10;11;12;13;14;15;16;17;18;19;20;21;22;23;24]; y=[0.2;0.3;0.4;0.2;0.7;0.4;0.6;0.3;0.2;0.4;0.2;0.4;0.6...

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
Ode solver, how to pass V=0:0.1:1 used in the differential equations
This is one way clearvars y0=[0;0;1;0;0;1;1]; V=0:0.1:1; for k = 1:length(V) [t, y] = ode45(@(t,y) ff_corr(t,y,V(k)),[0...

plus de 3 ans il y a | 0

Réponse apportée
How to extract date, month, year, and time from a table data?
A = string({'2016-01-09 00:30:00';'2017-05-10 01:00:00'}); At = table(A,'VariableNames',{'Time'}); for k = 1:length(At.Time) ...

plus de 3 ans il y a | 0

Réponse apportée
How can I show the value on bars
X = categorical({'roiA','roiB','roiC','roiD', 'roiE'}); Y = [44 66 23 56 54;5 6 4 5 3 ]; b = bar(X,Y); x = b(1).XEndPoint...

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
Attempted to access Son(0.000673333); index must be a positive integer or logical.
Is _Son_ is an array, then it's reason why you get that error. Matlab uses 1 based indexing for numeric arrays.

plus de 3 ans il y a | 0

Réponse apportée
It keeps saying "Index exceeds the number of array elements. Index must not exceed 2."
if error_x(i+1)<=0.1&&error_y(i+1)<=0.1 break else x(i+1)=x(i); y(i+1)=y(i); end

plus de 3 ans il y a | 0

Réponse apportée
How to remove zeros from double value?
format shortG D = [0.2352 0.5263] D = round(D(:),3) - [0.005 0.006].'

plus de 3 ans il y a | 1

Réponse apportée
How to determine phase angle of an AC voltage?
Z is impedance. And calculated using following expression. Z = R+jX ; Where X is the reactance obtained as resultant ...

plus de 3 ans il y a | 0

Réponse apportée
How do I draw circles in App Designer with user inputting the x, y and radii values?
In the app designer, you can invoke the follwing code, % in the app designer prompt = {'Enter radius of circle:', 'Enter cen...

plus de 3 ans il y a | 0

Réponse apportée
Download all hours of all days of the year from CMORPH
Note the following changes clc clearvars % Download the CPC data used in the script below which_years = (2000:2005); % ye...

plus de 3 ans il y a | 0

Réponse apportée
Time-dependent derivatives of a function with vector-valued components
instead of using sym use syms for defining vector valued functions with multple variables, e.g. x and t syms 'x(t)' [1 3] x

plus de 3 ans il y a | 1

Réponse apportée
Gradient of vector-valued function
use diff instead of gradient which is equivalent for gradient operation for symbolic expressions syms a b1 b2 t mfcn = matlab...

plus de 3 ans il y a | 0

Réponse apportée
Different size definition in Matlab and Simulink
It seems you are accessing 2 elements of array *data* with each representing 4 byte register address. Each element of which has ...

plus de 3 ans il y a | 0

Charger plus