randerss simil
Followers: 0 Following: 0
Mathematical computing
統計
All
Feeds
回答済み
Box plot labels not working for hold on
Tab = readtable("Validation.txt"); TABLE=table2array(Tab); Data=TABLE(:,:); X1= [1 2 3]; X2=[4 5 6]; X3=[7 8 9]; hold ...
Box plot labels not working for hold on
Tab = readtable("Validation.txt"); TABLE=table2array(Tab); Data=TABLE(:,:); X1= [1 2 3]; X2=[4 5 6]; X3=[7 8 9]; hold ...
4年弱 前 | 0
回答済み
Fourier series sawtooth wave
T=input('what is the period'); p=input('how many coefficients'); t=linspace(0,3*T,100); N=10; bp=sin(90)/90 - cos(0); ap...
Fourier series sawtooth wave
T=input('what is the period'); p=input('how many coefficients'); t=linspace(0,3*T,100); N=10; bp=sin(90)/90 - cos(0); ap...
4年弱 前 | 0
回答済み
How to correctly use MONTHS function?
Type which months at the command window If you see more than two functions with filenames months then it may be due to cust...
How to correctly use MONTHS function?
Type which months at the command window If you see more than two functions with filenames months then it may be due to cust...
4年弱 前 | 0
回答済み
How to plot months on x-axis with different length of values on y-axis?
%if true M = {'January' 'February' 'March' 'April' 'May' 'June' 'July' 'August' 'September' 'October' 'November' 'Decembe...
How to plot months on x-axis with different length of values on y-axis?
%if true M = {'January' 'February' 'March' 'April' 'May' 'June' 'July' 'August' 'September' 'October' 'November' 'Decembe...
4年弱 前 | 0
回答済み
average over a certain range of index ?
clear clc A = [1 7 12 20 23 31]; B = [6 11 19 22 30 35]; C = rand(1,35) for i = 1:numel(A) kk(i) = mean(C(A(i):B(i)));...
average over a certain range of index ?
clear clc A = [1 7 12 20 23 31]; B = [6 11 19 22 30 35]; C = rand(1,35) for i = 1:numel(A) kk(i) = mean(C(A(i):B(i)));...
4年弱 前 | 1
回答済み
Negative range in range-doppler plot for FMCW radar
%if true [X Y] = meshgrid(-10:10,0:30) Use the range in _meshgrid_ while generating contour plot like above. Changing axis...
Negative range in range-doppler plot for FMCW radar
%if true [X Y] = meshgrid(-10:10,0:30) Use the range in _meshgrid_ while generating contour plot like above. Changing axis...
4年弱 前 | 0
回答済み
Plotting in Matlab appdesigner
%if true function GenerateButtonPushed(app,eventData) It's eventdata instead of event
Plotting in Matlab appdesigner
%if true function GenerateButtonPushed(app,eventData) It's eventdata instead of event
4年弱 前 | 0
回答済み
Trying to take mean of group of values and exclude one value, receiving error: Index exceeds the number of array elements (0)
%if true q01=xlsread('Lab2Data.xlsx', 'B6:B41'); Can you Check if the Lab2Data.xlsx has any empty cells between B6:B41?...
Trying to take mean of group of values and exclude one value, receiving error: Index exceeds the number of array elements (0)
%if true q01=xlsread('Lab2Data.xlsx', 'B6:B41'); Can you Check if the Lab2Data.xlsx has any empty cells between B6:B41?...
4年弱 前 | 0
回答済み
Global legend for all subplots in a figure placed ON the figure (not outside the figure)?
figure ax1 = subplot(2,1,1); ...% your code .... xlabel('Time [min]','Interpreter','latex') ylabel('Surface temperature [...
Global legend for all subplots in a figure placed ON the figure (not outside the figure)?
figure ax1 = subplot(2,1,1); ...% your code .... xlabel('Time [min]','Interpreter','latex') ylabel('Surface temperature [...
4年弱 前 | 0
回答済み
Fitting data into a required function
%if true m = 2 n = 1.5 Y = m*x.^n; k = polyval(x,Y) First use _polyval_ for the equation and then apply pol...
Fitting data into a required function
%if true m = 2 n = 1.5 Y = m*x.^n; k = polyval(x,Y) First use _polyval_ for the equation and then apply pol...
4年弱 前 | 0
回答済み
how to make both graphs x and y axis identical?
subplot(211) t = linspace(0,3,1200) stem(1:100:1200,3*cos(t(1:100:1200))) xlim([1 1200]) xticks([0 200 400 600 800 1000 1200...
how to make both graphs x and y axis identical?
subplot(211) t = linspace(0,3,1200) stem(1:100:1200,3*cos(t(1:100:1200))) xlim([1 1200]) xticks([0 200 400 600 800 1000 1200...
4年弱 前 | 0
回答済み
Storing the value of an Array from a For loop with an If statement
tss(i)=t; %records time enter steady state. Use the index to record the time entered
Storing the value of an Array from a For loop with an If statement
tss(i)=t; %records time enter steady state. Use the index to record the time entered
4年弱 前 | 0
回答済み
Unable to store matrix array in for loop
t = linspace(10^-4,10^12,17) for i = 1:17 m{i} = inv((At * Cd * A) + (t(i) * Ht * H)) * At * Cd * do ; % use cell array ...
Unable to store matrix array in for loop
t = linspace(10^-4,10^12,17) for i = 1:17 m{i} = inv((At * Cd * A) + (t(i) * Ht * H)) * At * Cd * do ; % use cell array ...
4年弱 前 | 0
回答済み
dsolve code is not running
M2 M3 a1 k K L A Rd Br Pr Nb Nt G Le H Assign values for above variables instead of symbolic variables, As you are using on...
dsolve code is not running
M2 M3 a1 k K L A Rd Br Pr Nb Nt G Le H Assign values for above variables instead of symbolic variables, As you are using on...
4年弱 前 | 0
回答済み
plot zero input response
%if true syms y n=0:99; a_1=3; a_2=4; x=(-1/5*y+4/5*y)*(-1).^n+(16/5*y+16/5*y)*(4).^n; fplot(x,[-2,-1]) Use fplot...
plot zero input response
%if true syms y n=0:99; a_1=3; a_2=4; x=(-1/5*y+4/5*y)*(-1).^n+(16/5*y+16/5*y)*(4).^n; fplot(x,[-2,-1]) Use fplot...
4年弱 前 | 1
| 採用済み
回答済み
Index Exceeds Matrix Dimensions error in For Loop
%if true L = 10; F1 = zeros(1,L) F2 = zeros(1,L) F3 = zeros(1,L) T1(1)=200; T2 = zeros(1,L); T3 = zeros(1,L); T3(3)=40...
Index Exceeds Matrix Dimensions error in For Loop
%if true L = 10; F1 = zeros(1,L) F2 = zeros(1,L) F3 = zeros(1,L) T1(1)=200; T2 = zeros(1,L); T3 = zeros(1,L); T3(3)=40...
4年弱 前 | 1
回答済み
plotting line parallel to the x-axis instead of the y-axis
%if plot([wl-0.01,0],intt,'b',wl,intt,'b',[wl+0.01,0],intt,'b') Use [] for adding elements and _int_ is standard function...
plotting line parallel to the x-axis instead of the y-axis
%if plot([wl-0.01,0],intt,'b',wl,intt,'b',[wl+0.01,0],intt,'b') Use [] for adding elements and _int_ is standard function...
4年弱 前 | 0
回答済み
If statement in for loop does not work
%if true x = 0.5; for i=1:6 x = (x)+0.1 if strcmp(num2str(x),'1') disp('yes') end end Try the above
If statement in for loop does not work
%if true x = 0.5; for i=1:6 x = (x)+0.1 if strcmp(num2str(x),'1') disp('yes') end end Try the above
4年弱 前 | 0
回答済み
How to use eval() command to save the workspace variables in different working directory?
%% pwds - different working directory - D:\matlabfiles\ACTIVITY\Itr 3\Script eval(['save(fullfile(' pwds 'Batch_' num2str(i) '_...
How to use eval() command to save the workspace variables in different working directory?
%% pwds - different working directory - D:\matlabfiles\ACTIVITY\Itr 3\Script eval(['save(fullfile(' pwds 'Batch_' num2str(i) '_...
4年弱 前 | 0
回答済み
Why is the following numerical integration not working?
TMD = integral2(area,0,2,0,2*pi); Alternate way
Why is the following numerical integration not working?
TMD = integral2(area,0,2,0,2*pi); Alternate way
4年弱 前 | 0
解決済み
Pizza!
Given a circular pizza with radius _z_ and thickness _a_, return the pizza's volume. [ _z_ is first input argument.] Non-scor...
4年弱 前
回答済み
Stress-strain graph
To delete 1st column AluminumW(1:75,1) = []; % to delete 1st column
Stress-strain graph
To delete 1st column AluminumW(1:75,1) = []; % to delete 1st column
4年弱 前 | 0
回答済み
How to convert a matrix into a vector that has each row as an array?
C = {{[a b c d]} {[ e f g h]} {[ i j k l]}}
How to convert a matrix into a vector that has each row as an array?
C = {{[a b c d]} {[ e f g h]} {[ i j k l]}}
4年弱 前 | 0
回答済み
Slope equation for plot of best fit line
Use the function diff and see if the difference values are constants or varying https://in.mathworks.com/help/matlab/ref/diff....
Slope equation for plot of best fit line
Use the function diff and see if the difference values are constants or varying https://in.mathworks.com/help/matlab/ref/diff....
4年弱 前 | 0