已回答
How can I convert the y-axis values to percentage from (0%-100%)?
Do you mean Z matrix values you plotted using contourf or similar function ? In that case, you normalize the Z matrix by divi...

5 years 前 | 0

| 已接受

已回答
Reading multiple editable text boxes and writing them into a single array
p1vals{K} = get(editp1(K), 'String' ); Why do you like to use complex variable,1i as cell array index, p1vals ?

5 years 前 | 0

| 已接受

已回答
I am lost. I need to be able to show the iterations to find the root with given a and b values. Values for a and b should be user inputted. Convergence tolerance of abs(b-a) < 0.0001. fprint used to output the results from each iteration.
clc; close all; f= @(x) x.^3 + 12*x.^2 - 100*x -6; %a = -1.0; %b = 0.0; a = input('enter value for a: '); b = input('en...

5 years 前 | 0

| 已接受

已回答
Matlab how to make a 3d plot of the following data
%if true mesh(0:30,0:30,solution) Try the above. If you have used %if true mesh(a,b,solution); It won't wor...

5 years 前 | 0

| 已接受

已回答
How can I fix this error: "Index exceeds the number of array elements (1)."?
%if true % The Aggregated Dead Zone (ADZ) Model, used to model transport between % two locations in a river system at a ...

5 years 前 | 0

| 已接受

已回答
Help placing user input into an element in a row vector
%if true for i = 1 : data x(i) = input('Input a number: '); end Change the for loop structure as above

5 years 前 | 1

已回答
Multiples traces overlapping on multiple subplots
clear clc K = rand(16,800,40); for i = 1:16 subplot(16,1,i) % subplot(4,4,i) for j = 1:40 plot(K(i,:,j),'b-','linewi...

5 years 前 | 1

| 已接受

已回答
How to fill grids?
clear clc x = 0:30; y = ones(1,length(x))*202 ylim(([0 1600])) plot(x,y,'b--','linewidth',4) xx = [0 30 30 0]; yy = [0 0 ...

5 years 前 | 0

| 已接受

已回答
How do I integrate two columns of discrete data?i need do operations between the data
for i=1:n % step=1 % F=x/y*(x+y); p(i)=(x(i)/y(i)*(x(i)+y(i)))/20;% frenquency=20 end P = sum(p); % use sum outside of loop ...

5 years 前 | 0

| 已接受

已回答
How to create a column table
vel=linspace(60,140,5); time=[1:0.5:3]; table(time.',vel.','VariableNames',{'Time','Velocity'}) Use transpose .' operator

5 years 前 | 1

| 已接受

已回答
Merge Three Figures Into One
clear all; clc; hi=5.5*1e6; %heat input=5.5*10^(-6) Btu/h time=4200; %time=4200 hours cost=[4*1e-6,5*1e-6,6*1e-6]; %cost is ...

5 years 前 | 1

| 已接受

已回答
How to display the correct output of the product of matrix correctly when i wanted to conver degrees to radians
prompt = 'Enter the numbers for conversion? '; x = input(prompt) y = x*(pi./180); % formula to convert degrees to radians fpr...

5 years 前 | 0

| 已接受

已回答
How can I plot the uploaded csv file for each X value there are different Y values. as X = row 1 and Y = column 2 to 6? shown that in color waves .
clear A= xlsread('work.csv') plot(A(1,:),A(2:end,:),'linewidth',2)

5 years 前 | 0

| 已接受

已回答
How to change the answer into decimals
_poly2sym_ converts numeric vector to vector of symbolic equation and by default it uses the variable x. The values in vector ...

5 years 前 | 0

| 已接受

已回答
nested loops for 2 different variables
%if true clc;clear; a=0; c= linspace(200,1200,20); l= linspace(1,7,length(c)); for i=1:length(c) Cc(i) = (10*c(i))...

5 years 前 | 0

| 已接受

已回答
Why the legend color is wrong?
plot(inputX(:,2),inputY(:,2),'r',tcmxt,YM,'b',tcmxt,YS,'g'); inputX and inputY has multiple columns try the above

5 years 前 | 0

| 已接受

已回答
How to remove the brother top and right axes?
plot(1:10) ax = gca box(ax,'off')

5 years 前 | 1

已回答
How can set the starting point of X-axes while using string in the x-axes?
%if true % if true x_axes={'Case-1','Case-2','Case-3','Case-4'} Y_axes=[4,5,6,7] figure('name','sample','PaperSize',[3....

5 years 前 | 0

| 已接受

已回答
Plotting subplots in a for loop
clear all clc %% Rubber Material at different nodes data1 = importdata ('acc_1_rubber.mat'); data2 = importdata ('acc_2_rubb...

5 years 前 | 0

| 已接受

已回答
Fill a matrix using a for loop
Non_stim(k,m)=Cz_channel(Non_stim_index(n+k)); Use for loop index to store different values

5 years 前 | 0

| 已接受

已回答
help with integral2
%true fun = @(x,y) (2*x+sqrt(6)*y).*2.*x; % use dot polarfun = @(r,theta) fun(r.*cos(theta),r.^2.*cos(2.*theta)); q = ...

5 years 前 | 0

| 已接受

已回答
Why the loop is not running?
%rue a =wt{i}; Use curly braces for strings

5 years 前 | 0

| 已接受

已回答
Setting threshold in my plot
%true ylim([111 150]) Use this after plot command

5 years 前 | 1

已回答
how to sum specific matrix elements?
%true Total=sum(A(A(:,2)<0))

5 years 前 | 1

提问


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

5 years 前 | 1 个回答 | 0

1

个回答

已回答
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...

5 years 前 | 2

| 已接受

已回答
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-...

5 years 前 | 0

| 已接受

提问


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

5 years 前 | 1 个回答 | 0

1

个回答

已回答
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...

5 years 前 | 0

| 已接受

已回答
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));

5 years 前 | 1

| 已接受

加载更多