Question


How can add minimize or maximize button feature in GUI figures or tables ?
I have GUI built in Guide environmen. The GUI has a region where the plot figures and tables can be displayed using pushbutton/s...

plus de 5 ans il y a | 1 réponse | 0

1

réponse

Réponse apportée
How to make a graph of an equation if part of it is an array?
%i h = 1; t = 1 : h : 100; r = 88 - 3.5*t; f = @(t,N) (r)*N*(1-N/51000000000); y = zeros(length(t),length...

plus de 5 ans il y a | 2

| A accepté

Réponse apportée
Nested if statements not correctly calculating?
if u(i,j)==0 if u(i+1,j)==0 if u(i,j+1)==0 if u(i-1,j)==0 if u(i,j-...

plus de 5 ans il y a | 0

| A accepté

Question


How can i upload my profile picture in MATLAB account ?
Wheni login to my MATLAB account, i could not upload the profile picture It always shows Unable to upload image, Mathworks sy...

plus de 5 ans il y a | 1 réponse | 0

1

réponse

Réponse apportée
How to find the delta cycles (change in the number of cycles) in two sine signals with nearly identical frequencies?
%ue plot(t,(sig1_with_noise-sig2_with_noise)./(2*pi)) As you said, you can take the difference between two signals and div...

plus de 5 ans il y a | 0

| A accepté

Réponse apportée
add two elements from diffrent matrices and store it into new matrix.
QtA(t)=max(0,QtA(tp)+LAMtA(t)-OtA(t)-LtA(t-1));

plus de 5 ans il y a | 1

| A accepté

Réponse apportée
how do i plot control polygon?
%true plot3(Gx,Gy,Gz); hold on; plot3(Gx1,Gy1,Gz1) Use plot3 command

plus de 5 ans il y a | 0

| A accepté

Réponse apportée
My plot won't show any graph
clear %%Given : T= 5; del_t=3; t=linspace(0,T,del_T); E=5; v=0.3; Sya=25; Sy=15; d=0.4; vis=0; gamma=0; %Assume...

plus de 5 ans il y a | 0

| A accepté

Réponse apportée
Undefined operator '/' for input arguments of type 'cell'.
%rue width = 20; % width = num2cell(width); Comment the num2cell line and try again

plus de 5 ans il y a | 1

Réponse apportée
Update the Legend dataN value in GUI
%rue legend(sprintf('\zeta = %d',zeta)); Use sprintf in legend in pushbutton callback function

plus de 5 ans il y a | 1

Réponse apportée
i want to plot an log function
%true r = 0.01:0.001:1; y = (r.^3).*log(1./r); %element wise plot(r,y);grid on

plus de 5 ans il y a | 1

Réponse apportée
SUBPLOT : UPPER & LOWER PLOT
%true for i = 1: 6 subplot(6,2,i) y = cos(i*x); plot(x,y) title(sprintf('y = cos(%dx)', i)); end

plus de 5 ans il y a | 0

| A accepté

Réponse apportée
Sum of elements in 2D matrix greater tha 150
for a = 1:254 for b = 1:318 if (R_10M(a,b) > 150) value(a,b) = R_10M(a,b); % use row and column indic...

plus de 5 ans il y a | 0

| A accepté

Réponse apportée
How to plot multiple lines groups in 3D graph as in picture ?
Use _plot3_ function https://in.mathworks.com/help/matlab/ref/plot3.html

plus de 5 ans il y a | 1

| A accepté

Réponse apportée
Array indices must be positive integers or logical values.
%true a=exp(-1); o=0.009931621960609; x2=-2.5:0.1:9.5; y2=0.5*exp(-a*(x2-(0.5*o^2*a))).*(1+erf((x2-o^2*a)/sqrt(2)*o));...

plus de 5 ans il y a | 1

| A accepté

Réponse apportée
How can I create sine wave with varying amplitude between certain range?
%if amp = 1:2:5; data = amp.*abs(sin(2*pi*F*t)) Use _abs_ to plot only the fixed amplitude range

plus de 5 ans il y a | 0

| A accepté

Réponse apportée
How to create and plot a Gaussing function?
%true sigma=0.7; nx=9; ny=9; [x,y]=meshgrid(-nx:0.5:nx,-ny:0.5:ny); G=(0.5./(pi.*(sigma.^2))).*exp(-0.5.*((y.^2+x.^2)./(...

plus de 5 ans il y a | 0

| A accepté

Réponse apportée
I can combine for loop outputs
k = 0; for i = 1:m for j = 1:n if A(i,j) > limit k = k+1; end end end disp(k)

plus de 5 ans il y a | 0

| A accepté

Réponse apportée
Plotting in app designer doesn´t shows anything
%if true beta = ((1-((m*lf)/(2*l*lr*Kr))*v.^2)./(1-(m/(2*l^2))*((lf*Kf-lr*Kr)./(Kr*Kf))*v.^2))*(lr/l)*d Do element wise...

plus de 5 ans il y a | 0

| A accepté

Réponse apportée
GUI Work with plotting time v temp
You can change the for loop structure to below and plot time vs emp for k = 1:numel(dens) if dens(k) == 1.940 vi ...

plus de 5 ans il y a | 1

Réponse apportée
How to plot amplitude of phasor from complex number?
semilogx(10*log10(w), abs(Vc(w))); use abs if you want resultant of real and complex values or semilogx(10*log10(w), rea...

plus de 5 ans il y a | 0

| A accepté

Réponse apportée
Storing the maximum value in each iteration
%rue v0 = 0:2:50; for i = 1:length(v0) ... X(i) = max(Ccstr(:,3)) end plot(v0,X) Use the for loop index a...

plus de 5 ans il y a | 0

| A accepté

Réponse apportée
How to run this code with some values of k?
%true syms t k F= @(t,k) 3*dirac(t-3*k*pi)+2*dirac(t-3*k*pi-pi)+dirac(t-3*k*pi-2*pi) f = abs(fourier(F,t,k)); a = angle(fo...

plus de 5 ans il y a | 0

| A accepté

Réponse apportée
Need help graphing this
x = 0:0.01:4*pi; plot(x,cos(x));hold on; plot(x,5+cos(x)); ylim([-2 7])

plus de 5 ans il y a | 0

| A accepté

Réponse apportée
Array indices must be positive integers or logical values
clc; clear; clc; h= linspace(0.00001,0.12,12) rtanque=.1 rsalida=.005 g=9.806; for i = 1:length(h) Vol=(pi.*rtanque.^2...

plus de 5 ans il y a | 0

Réponse apportée
Error using + Matrix dimensions must agree.
%t = dt*(0:200); %data window COMMENT THIS LINE IN YOUR PROGRAM fi=50; %Frequency test ww=wgn(201,1,-40); size(transpose(ww...

plus de 5 ans il y a | 0

| A accepté

Réponse apportée
how to normalize output for plotting
o=A./sum(A) %S=sum(normalizedvector,'all') %l=sum(normalizedvector(f)) %l=normalizedvector(f); polarplot(theta,o,'*'); Norm...

plus de 5 ans il y a | 1

| A accepté

Réponse apportée
ERROR Subscript indices must either be real positive integers or logicals.
for j=2:j_max+1 x=v((j-1:j+N0-2)*dt); Use a positive non zero integer subscripts. In your case it is zero

plus de 5 ans il y a | 0

| A accepté

Réponse apportée
Index loop into matrix
triCoord= zeros(10,9); ntri = 10 qTop = zeros(ntri,3); for n=1:ntri qTop(n,:) = [mean(triCoord(n,[1 4 7])),mean(triCoord(n...

plus de 5 ans il y a | 0

| A accepté

Réponse apportée
How can I plot graphs of the following variables?
%Program to solve the Euler equations clear all; clc; %Time Step h = 0.01; %Key Parameters mb = 100; %Mass of Quarter ...

plus de 5 ans il y a | 0

| A accepté

Charger plus