
VBBV
PEC
Programming in MATLAB applied to interdisciplinary engineering fields
Statistiche
RANK
63
of 277.778
REPUTAZIONE
2.694
CONTRIBUTI
26 Domande
995 Risposte
ACCETTAZIONE DELLE RISPOSTE
92.31%
VOTI RICEVUTI
222
RANK
4.538 of 18.795
REPUTAZIONE
282
VALUTAZIONE MEDIA
3.00
CONTRIBUTI
12 File
DOWNLOAD
57
ALL TIME DOWNLOAD
2723
CONTRIBUTI
0 Post
CONTRIBUTI
0 Pubblico Canali
VALUTAZIONE MEDIA
CONTRIBUTI
0 Punti principali
NUMERO MEDIO DI LIKE
Content Feed
why is the lamp changing color?
Hi Mauzmi Ali , In the app designer code, the editField component accepts numeric inputs. By default the Matlab editField com...
circa 20 ore fa | 0
| accettato
How to do a "for-loop"?
Hi Matrix, What you need in this case is not for loop but a while loop which can avoid writing a loop 600 times and hence mu...
1 giorno fa | 0
Array indices must be positive integers or logical values.
x = 0:0.1:4; f = x; g = -2*log10(0.01+10e-4*x); plot(x,f,x,g); func = @(x) 2*log10(0.01+10e-4*x) + x; res = bisect(func, 0,...
1 giorno fa | 0
Partitioning and putting titles in a subplot
If you want partioning using subplot titles then below is one method clc; close all; clear all; x = [0 1 2 3 6 4 5 8 5]; y ...
1 giorno fa | 0
How to adjust plots with several subplots with different loops?
You can modify the for loop something like this as shown below x = rand(1,10); z = rand(1,10); w = rand(1,10); k = 0; fi...
2 giorni fa | 0
| accettato
How to flip an ordered X-axis that is half half separated for data?
Use xticklabels function to modify the order of axis labels x1 = {'6','5','4','3','2','1'}; x2 ={'12','11','10','9','8','7'}...
2 giorni fa | 0
Surface plot generation for a 3-variable function
Try to use a for loop to plot the resulting expression in 3rd dimension as shown below since surf function plots 2D matrices o...
2 giorni fa | 0
xlswrite different columns into excel each run
writematrix (x.','testxxx.xlsx','WriteMode','append') Use the transpose for x
3 giorni fa | 0
How to calculate the predicted ellipse area and draw the graph?
chisquare = chi2inv(0.95,2); %inverse of the chi-square cumulative distribution function with 2 degrees of freedom at P = 0.95 ...
3 giorni fa | 2
| accettato
Axis labels dont show after text command
Did you write custom function with name contours or you wanted to use Matlab's built-in function contour .? % custom function...
4 giorni fa | 0
solving symbolic array to output a numerical solution
From the reference link given by @madhan ravi, you can use struct2cell function and later convert the cell to double array usi...
5 giorni fa | 0
1×0 empty double row vector using find
clc; clear; close all x=[0 0.1 0.2 0.3 0.4 0.5]; y=[1 7 4 3 5 2]; h=0.1; n=(max(x)-min(x))/h suma=0; for i=2:n aux=h*...
5 giorni fa | 0
Trouble with the "double" numeric data type
The below version of code runs without errors. clear; syms x t % r=24; deltamu = 0.5; sigma = 5; lambda = 1; Cstar = 7;...
5 giorni fa | 0
Plotting multiple graphs in one plot
% PR = (Md_MSF_seclatent_steam)./(Ncqsum); % Performance Ratio PR = rand(365,1); PR_ave=sum(PR)/365; ...
5 giorni fa | 0
Matrix double and complex double
If you do a check before the if-elseif-else-end statement, the values of m, m1 and n , n1 are same That leads to the if-elsei...
6 giorni fa | 0
| accettato
How to solve a simple symbolic identity?
syms w0 a b t m F0 eqn = 2*b*w0*cos(w0*t) - 2*a*w0*sin(w0*t) == (F0*cos(w0*t))/m; sol = solve(eqn, [b]) b = subs(sol,t,0)
7 giorni fa | 1
Hi everyone...I am getting transient peak in the signal from 0 to 6000 hz in the sound pressure level plot. Can anyone suggest me how to remove it?
Use smoothdata function for that frequency range, or apply A-weighting filter for the SPL data
8 giorni fa | 0
Conditional if loop for addition of three consecutive numbers in app designer interface
if (x1+x2+x3)>75 app.EditField_5.Value=disp('OK'); elseif (x2+x3+x4)>75 You need to use parenthesis ( ) in the if-...
9 giorni fa | 0
Why contourf and fcontour gives different images for the same matlab code?
If you change the meshgrid limits in the below line [x, y] = meshgrid(-1/10:0.005:1/10); and de-normalize the I variable in t...
9 giorni fa | 0
| accettato
Arrow lengths don't represent the ratio of velocities for 2 Quiver Plots
D = load('Data.mat'); figure quiver(D.xposition,D.yposition,D.uvelocity,D.vvelocity,'b','AutoScaleFactor',2.5) hold on quive...
9 giorni fa | 0
not enough input arguments
syms x f=inline('(4*exp(-x/10))*rectangularPulse((x-4)/3)','x'); int((f(x))^2,x)
9 giorni fa | 0
| accettato
Taylor's series method to solve first order first degree ODE
Use taylor function clear clc syms x y(x) x0 = 0; y0 = 1; y1 = x^2*y-1; y2 = diff(y1); y3 = diff(y2); y4 = diff(y3); ...
10 giorni fa | 0
How to use Runge-Kutta orde 4 in sigmoid equation. I want to plot sigmoid equation with Runge kutta orde 4th but my graph is linear. I need help
You need to pass both t & S parameters to function fRK4S according to Runge-Kutte 4th order scheme %This is my Runge Kutta f...
10 giorni fa | 1
| accettato
Invalid array indexing. Column 77. Help
delete the (1), (2) & (3) after cross function and place it inside as shown quiver3(position(1), position(2), position(3), .....
11 giorni fa | 0
Bar graph in app designer interface
bar(app.histo,x,y) Try only using the above arguments. I think you want some histogram to be plotted , in that case use *hi...
11 giorni fa | 0
| accettato
I can't find what's wrong with my code
clc clear close all %input data D_AB=1.5e-07; D=0.1; t=5058.85; n=5; c=0.02; y=0; %because as n increases, series ...
13 giorni fa | 0
Domanda
Is it possible to Merge points from two accounts for same user ?
Hello , Suppose if a user has multiple Mathworks accounts and wants to merge both accounts. If yes, how does it work? Is it ...
13 giorni fa | 0 risposte | 0
0
risposteInf or NaN whilst trying to run a function
T_datum_K = 25+273.15; T_in_K = 199.3 + 273.15; T_out_K = 359 + 273.15; %Ar C1_Ar = 20786; C2_Ar = 1; C3_Ar = 0.1; C4_Ar ...
14 giorni fa | 0