Réponse apportée
How to replace the zero with NaN in the specific column of cell arrays?
S = load(websave('I','https://in.mathworks.com/matlabcentral/answers/uploaded_files/1182108/I.mat')) K = cell2mat(S.I(:,1)); i...

plus de 3 ans il y a | 1

| A accepté

Réponse apportée
How to convert column to a cell's arrays?
D = load('CF.mat') D.CF for k = 1:height(D.CF) I{k,:} = D.CF(k,:); end I

plus de 3 ans il y a | 1

| A accepté

Réponse apportée
Error: "filename" must be a string scalar or character vector.
subDir = 'DataFile\'; Change this line as above.

plus de 3 ans il y a | 0

Réponse apportée
Understanding how to apply for loop ?
SNR1 = rand(1,100).'; % the vector with SNR1 values SNR3 = rand(1,100).';% the vector with SNR3 values I = randi([1 100],[1 10...

plus de 3 ans il y a | 0

Réponse apportée
How to perform functions on txt files
height1 = ((B)./(log(P./rinf)))-273.15

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
MATLAB double addition format long
format long x = 14.1 % x = 0.1 x = 14.1 + 0.1 % when you include + operator When a mathematical operator /computation ...

plus de 3 ans il y a | 0

Réponse apportée
MATLAB App Designer: How to display a scatter plot on the UIaxes with linear fit and equation of line ?
str = [107.0176, 256.7374, 257.2012, 441.7806, 420.5170, 602.7027, 591.8610, 756.6289, 896.9324]; Ec1 = [23.8829, 19....

plus de 3 ans il y a | 0

Réponse apportée
Too many Input arguments error
clear syms x %Givens v=300; %(m/s), Value based on user input g=9.81; %m/s^2), Constant h=4; %(m) starting launch height t...

plus de 3 ans il y a | 0

Réponse apportée
How to add line into an array
A = [1:10 , 15: 30];% your data R = [A(1:10), zeros(1,4), A(11:end)]

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
While playing code, finding following error.
f = @(x1,x2)((x1).^2+2*(x2).^2-4*(x1)-2*(x1.*x2))

plus de 3 ans il y a | 0

Réponse apportée
How can I change the Nan values in a matrix by the values in cells array?
f(pt) = cell2mat(data) Use cell2mat

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
plot multiple vertical line on the same graph
Y = rand(100,32); Y = Y ./ max(abs(Y), [], 1); % Divide by maximum value. Then all values are between -1 and 1 Y = Y + (1:100...

plus de 3 ans il y a | 0

Réponse apportée
"Unable to perform assignment because the indices on the left side are not compatible with the size of the right side"
P_pv = zeros(M,T); E =zeros(M,T); E_SOC = zeros(M,T); K = zeros(M,T); K_SOC = zeros(M,T); P_LD = zeros(M,T);

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
Plot sum of series/heat distribution
clc; clear all; close all; % syms x t n % Given Value L = 0.008; T0 = 700; T1 = 373; alpha = 5.2 * 10^-7; x = L/...

plus de 3 ans il y a | 1

| A accepté

Réponse apportée
solve double differentiation with two limits
clc; close; clear; syms d_F ; syms d_F_c; syms dM_B; %syms Theta_B; syms x real; syms u_mid; syms u_c; syms u_max; sy...

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
Save Variable in for Loop
K = 1 % place this outside the for loop while errVec(2) < 200 && errVec(3) < 1e7 % Generate a 1000-symbol frame ...

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
right y-axis
X = rand(20,1); Y = X.^2 + 4; Y1 = Y./2; plot(X,Y); yyaxis right % use this as 2nd yaxis with ref to 1st plot(X...

plus de 3 ans il y a | 0

Réponse apportée
Non trivial solution to a linear system
syms omega2 K = rand(5); M = rand(5); eigF = 0.1; % scalar eqn1 = det(K-omega2*M) == 0; eigenfreq1=vpasolve(eqn1,omega2) e...

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
Solution of equation and graph with matlab
syms F2(x) x y F2 = x + (800*1e4)/(2*x*y) + 250*y; sol = solve(F2,[x y]); sol.x sol.y fimplicit(F2,[-50 10 -50 50])

plus de 3 ans il y a | 0

Réponse apportée
IF statement not generating results?
data=load('artificial_slope.txt') %loading data % defining input values based of input txt file nx = data(:,4); ny = data(:,...

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
how to save the values of DelL(T)
Lo = 44.46 Do = 18.76 alpha = 0.0002178 for T = 36:1:180 DeltaL = Lo*alpha*(T-35); DelL(T) = DeltaL; end DelL(DelL ...

plus de 3 ans il y a | 0

Réponse apportée
Why I can't run this coding?
syms q1(t) t %q1(t) h=q1 q1_of_t=symfun('q1(t)',t) h1=subs(h,q1,q1_of_t) %diff q1(t),diff twice q1(t) diff_q1t=diff(h1,t...

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
i am getting this error for conv 2d please help me
i=imread("peppers.png") imshow(i) i_i=im2double(i); k=ones(4,4)/16; b=0; % this is key parameter to check ni = conv2d(i_i...

plus de 3 ans il y a | 0

Réponse apportée
what to do in this case?
fplot (@(x, y) x.^3.*y-2.*x.*y.^2+y-0.2,[0, 1, 0, 1]); Give the values of y range just like x

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
Text size in figure relative to figure window
FB_text_ = text(6,2,FB_Instruction,'FontUnits','normalized','FontSize',25)

plus de 3 ans il y a | 1

| A accepté

Réponse apportée
Appending data to end of column in Table (for Loop)
T{i} = readtable(filename,'Range',range,'ReadVariableNames',false); You can use cell arrays instead

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
How do I plot a diagonal line in MATLAB?
clc clear all %%Given Parameters for a GA Acrobatic Aircraft M = 2300; S = 19.33; C_Lmax = 2; C_Lmaxneg = -1.2; AR = 7...

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
How to match two y axes of the yyaxis , so that their 0 points are aligned
T_in = timeseries((T_pedal),(t_pedal)); figure (2) yyaxis left plot(t_pedal,T_pedal,'y'); hold on t_tar_mot = Trip.Data.S...

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
how can i sum the 'y' above in the picture i have polt ?
y = 0; for x = -2:0.001:2; y = y + 1.8*exp(-x.^2); plot(x,y,'bo','Markersize',1) hold on end y

plus de 3 ans il y a | 0

Charger plus