Beantwortet
I'm trying to change marker size in a graph
markerSize_types = 12;

mehr als 3 Jahre vor | 0

Beantwortet
when i run this programme which is a decomposition lu i get Error using / Arguments must be numeric, char, or logical. Error in untitled2 (line 10) L(:,1) = A(:,1)/U(1,1);
A=input("entrer le scoeficients de votre matrice"); B=input("entrer le vecteur");

mehr als 3 Jahre vor | 0

Beantwortet
Printing cell array elements
fprintf(' the root estimates xr=[x1;x2;...;xn] are: \n%f', R) Missing format specifier

mehr als 3 Jahre vor | 1

| akzeptiert

Beantwortet
How do I use a for loop to keep the z dimension in the end?
A_Pad(:,:,iCoil) = upsample(A(:,:,iCoil),2);

mehr als 3 Jahre vor | 0

| akzeptiert

Beantwortet
Dimensions of array being concatenated are not consistent
u= [um1.' uo]; % transpose um1

mehr als 3 Jahre vor | 0

Beantwortet
Extract rows that their columns have specific values
A = [ 0.1 0 ; 0.5 0 ; 3 0 ; 0 0 ]; for i = 1:size(A,1) if (A(i,:) >= 0) & (A(i,:) <=1) % ...

mehr als 3 Jahre vor | 0

Beantwortet
Converting Table to Readable Format for Scatter Plot
T1 = readtable('Data.xlsx'); T1_Data = table2array(T1); % this converts cell to numeric T1_Data = T1_Data'; % T1_Data = cell2...

mehr als 3 Jahre vor | 0

Beantwortet
Matlab Legend Issue - I'm always getting legend for data1, but not for data2. Could you kindly let me know what I'm doing wrong? Thank you.
legend([s0(1), s1(1)], {'Data1', 'Data2'})

mehr als 3 Jahre vor | 0

| akzeptiert

Beantwortet
Code for graphing bending moment is giving the wrong graph and I don't know why, can anyone help?
Mt=sum(M); May be by doing this change

mehr als 3 Jahre vor | 0

| akzeptiert

Beantwortet
Zeros array outputting the last data set from loop instead of all iterations
rECI(:,idx) = R3Om*R1*R3w*r; % multiplying r perifocal vector by rotation matrices vECI(:,idx) = R3Om*R1*R3w*v; % multiplying v...

mehr als 3 Jahre vor | 1

| akzeptiert

Beantwortet
Plot of an curve and its equation
x = 0 : 0.1 : 0.9; y = [0.584459303 0.496427561 0.351841147 0.269416786 -0.080568348 0.354476019 0.155290021 0.7550904...

mehr als 3 Jahre vor | 0

| akzeptiert

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

mehr als 3 Jahre vor | 1

| akzeptiert

Beantwortet
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

mehr als 3 Jahre vor | 1

| akzeptiert

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

mehr als 3 Jahre vor | 0

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

mehr als 3 Jahre vor | 0

Beantwortet
How to perform functions on txt files
height1 = ((B)./(log(P./rinf)))-273.15

mehr als 3 Jahre vor | 0

| akzeptiert

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

mehr als 3 Jahre vor | 0

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

mehr als 3 Jahre vor | 0

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

mehr als 3 Jahre vor | 0

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

mehr als 3 Jahre vor | 0

| akzeptiert

Beantwortet
While playing code, finding following error.
f = @(x1,x2)((x1).^2+2*(x2).^2-4*(x1)-2*(x1.*x2))

mehr als 3 Jahre vor | 0

Beantwortet
How can I change the Nan values in a matrix by the values in cells array?
f(pt) = cell2mat(data) Use cell2mat

mehr als 3 Jahre vor | 0

| akzeptiert

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

mehr als 3 Jahre vor | 0

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

mehr als 3 Jahre vor | 0

| akzeptiert

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

mehr als 3 Jahre vor | 1

| akzeptiert

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

mehr als 3 Jahre vor | 0

| akzeptiert

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

mehr als 3 Jahre vor | 0

| akzeptiert

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

mehr als 3 Jahre vor | 0

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

mehr als 3 Jahre vor | 0

| akzeptiert

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

mehr als 3 Jahre vor | 0

Mehr laden