Community Profile

photo

Seifeldin Mohamed


Last seen: 2 månader ago Active since 2022

Followers: 0   Following: 0

Statistics

Feeds

View by

Answered
I need to adda legend to this code, as tried in the last three lines !
Thank you so much, however, how can I chnage the color of the legend itself to be simialr to the color of the y-axis ?

9 månader ago | 0

Question


I need to adda legend to this code, as tried in the last three lines !
x = categorical({'Present '; 's'}); y = [2363; 2090]; z = [0.19154; 0.17777]; nil = [0; 0]; yyaxis left bar(x, [y nil], 'gr...

9 månader ago | 2 answers | 0

2

answers

Question


The size of X must match the size of Z or the number of columns of Z.
clc clear all close all %Geometry definition L=0.3; %Length of the The rectangular bar in meter W=0.4...

mer än ett år ago | 1 answer | 0

1

answer

Question


I am trying to plot the each value of C at different theta values, but I found an error. Error: Invalid expression. When calling a function or indexing a variable, use parenth
clear all clc c=[0.5,0.75,1,1.1]; theta=[-pi:0.01:pi]; a=zeros(1,629); for k=c G(k)=(1+4*(a(k)).^2-a(k)).*(sin(theta/2...

mer än ett år ago | 2 answers | 0

2

answers

Question


the code print -inf in TT matrix. Please anyone helps
clear all close all clc %Geometry definition L=0.3; %Length of the The rectangular bar in meter W=0.4...

mer än ett år ago | 1 answer | 0

1

answer

Question


error: Index in position 2 exceeds array bounds (must not exceed 31).
clear all clc %Geometry definition L=0.3; %Length of the The rectangular bar in meter W=0.4; ...

mer än ett år ago | 2 answers | 0

2

answers

Question


While I am running this code I get this error, could anyone knows how to solve it ? (Unable to perform assignment because the size of the left side is 1-by-41 and the size of)
clear all clc %Geometry definition L=0.3; %Length of the The rectangular bar in meter W=0.4; ...

mer än ett år ago | 1 answer | 0

1

answer