
VBBV
PEC
Programming in MATLAB applied to interdisciplinary engineering fields
Statistics
RANK
63
of 277 637
REPUTATION
2 670
CONTRIBUTIONS
26 Questions
984 Answers
ANSWER ACCEPTANCE
92.31%
VOTES RECEIVED
220
RANK
4 547 of 18 784
REPUTATION
281
AVERAGE RATING
3.00
CONTRIBUTIONS
12 Files
DOWNLOADS
56
ALL TIME DOWNLOADS
2719
CONTRIBUTIONS
0 Posts
CONTRIBUTIONS
0 Public Channels
AVERAGE RATING
CONTRIBUTIONS
0 Highlights
AVERAGE NO. OF LIKES
Content Feed
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...
ungefär 22 timmar ago | 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*...
en dag ago | 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;...
en dag ago | 0
Plotting multiple graphs in one plot
% PR = (Md_MSF_seclatent_steam)./(Ncqsum); % Performance Ratio PR = rand(365,1); PR_ave=sum(PR)/365; ...
en dag ago | 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...
2 dagar ago | 0
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)
3 dagar ago | 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
4 dagar ago | 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-...
5 dagar ago | 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...
5 dagar ago | 0
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...
5 dagar ago | 0
not enough input arguments
syms x f=inline('(4*exp(-x/10))*rectangularPulse((x-4)/3)','x'); int((f(x))^2,x)
6 dagar ago | 0
| accepted
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); ...
6 dagar ago | 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...
7 dagar ago | 1
| accepted
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), .....
7 dagar ago | 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...
8 dagar ago | 0
| accepted
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 ...
9 dagar ago | 0
Question
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 ...
9 dagar ago | 0 answers | 0
0
answersInf 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 ...
10 dagar ago | 0
I am having issues concatenating arrays
In the below line you have several variables, C2m, Fc, Am which may be multidimensional matrices KIc0 = sqrt(1e-3 * (1 - Vv(k...
11 dagar ago | 0
| accepted
for generation of 10 i nput in each sequence for a sinusoidal signal
clearvars % size or range of iteration k = 4:1000; x = 1.05 * sin(pi*k/45) for J = 1:length(k)-9 X(J,:) = x(J:J+9); en...
12 dagar ago | 1
Inconsisent(?) behaviour of str2num() with a particular usage
The function *str2num* can be used to convert the strings that inherently contain numbers to double class. In your case ther...
12 dagar ago | 1
| accepted
how to plot in matlab a formula with multiple summation ?
% parameters dH = 0.5; M = 100; K_UE = 1:20; SNR0_dB = 0; SNR0 = 10^(0/10); beta_bar_dB = -10; beta_bar = 10^(-10/10); n...
13 dagar ago | 0
Using variable legend in a for loop
n0 = 1; lam = 3:0.01:7; a1 = 3.263; b1 = 0.1644; n1 = sqrt(1 + (a1.*(lam.^2))./((lam.^2) - (b1^2))); ns = 1.5; th = 0; i...
14 dagar ago | 0
| accepted
I got a blank figure while trying to plot the phase space
Choose better initial conditions e.g. for q1 and q2 they are both zero close all D=0.02; r=0.04; A=2.5; B=0.01; z=3.0; C...
15 dagar ago | 1
| accepted
How can I set the NaN values to black in a pcolor plot?
% Generate sample data data = rand(10, 10); data(3, 3) = NaN; % Set a specific value as NaN % Create the pcolor plot figur...
15 dagar ago | 1
App Designal : write string in a culumn "A" in the table
Try below app.UITable.Data = ["fdgfdg" "gg" "ghh" "jjj"] in place of app.UITable.Data = ["fdgfdg" ;"gg" ;"ghh"; "jjj"]
15 dagar ago | 1
How to Italicize either of the axis tick labels ?
Use '\it label text' % italic font xticklabels({'\it text1','\it text2'}) % normal (plain) font xticklabels({'text1','tex...
17 dagar ago | 0
| accepted
Generating an error bar plot with a custom equation fit
If you want to add multiple lines for errorbars i.e. both y data and y data fitted along with their deviations, you can plot the...
17 dagar ago | 0
Bringing plots to the "front" to make them more visible?
Use a marker and increase fontsize p2 = plot(x, data, 'k'); p2.Color(4) = 0.2; hold on plot(x, means,'ro','MarkerSize',12,'...
17 dagar ago | 0