VBBV
PEC
MATLAB enthusiast , Mechanical engineer (MeMe) :-)
Statistics
RANK
59
of 288,438
REPUTATION
3,090
CONTRIBUTIONS
27 Questions
1,181 Answers
ANSWER ACCEPTANCE
92.59%
VOTES RECEIVED
282
RANK
4,403 of 19,480
REPUTATION
308
AVERAGE RATING
3.00
CONTRIBUTIONS
12 Files
DOWNLOADS
51
ALL TIME DOWNLOADS
2987
CONTRIBUTIONS
0 Posts
CONTRIBUTIONS
0 Public Channels
AVERAGE RATING
CONTRIBUTIONS
0 Highlights
AVERAGE NO. OF LIKES
Content Feed
Generate list of frequencies evenly spaced in logarithmic plot
F = linspace(0.2,628,100) semilogy(F)
12 hours ago | 0
Face Error "Input arguments must be numeric or objects which can be converted to double' while plotting Contour
contour(x1,x2,S11(x1,x2))
2 days ago | 0
| accepted
Not enough input arguements
anz=height(matrix) Put this line after *readtable* function where you read the data from Excel. The input to the function h...
4 days ago | 0
How can I use custom equation in cftool?
In the custom equation, function box , replace the x with z and define the equation as in your case in the box below
4 days ago | 0
| accepted
can someone assist I am struggling to convert the DHI DNI and GHI from W/m^2 to kWh/m^2
% solar irradiation on a HORIZONTAL SURFACE Cn = 0.7; % Clearance index I0 = 1353; % Solar constant latit...
5 days ago | 0
"Arrays have incompatible sizes for this operation" with for loop in integral2
input = @(y,s) y; N_it=10; output=cell(1, N_it); output{1}=input; density = @(z,t,s) exp( -(z.^2)./(2.*(s-t)) ./ (sqrt(2...
6 days ago | 0
Too many input arguments error when cell2mat and mean functions are used
bb = cell2mat(iniclu(i,1:count(i))); Use a ( ) in place of { }
6 days ago | 1
I want to build a system that can find and display the polynomial equation for degree 1 and 2 using Newton Forward Divided Difference Interpolation Method but I got an error.
Replace *Text* with *Value* as Value is recognised property
6 days ago | 0
Why won't my function display any of the required text?
%FinalGrade = FinalMark;
7 days ago | 0
| accepted
I I wrote a command but for some reason it only prints the enthalpy value of water
There is a missing semicolon in this line, which makes it to print for each iteration in for loop H_water = (hf_w + hs_w); % a ...
7 days ago | 1
Need help to solve following problem.
X_ISMD = 995152.969208341; Y_ISMD = 996113.117131325; X_WGS84 =randn(172,1); Y_WGS84 =randn(172,1); for i = 1:172 D1(i...
7 days ago | 1
| accepted
How to simplify this script
Use abs percentage for error calculation percentage = abs((delta_y_ori-delta_y_raw)/delta_y_ori)*100;
7 days ago | 0
| accepted
how to make the contour line more curvy
xdata % your x data ydata % your y data zdata % your z data v = min(min(zdata)):1:max(max(zdata)) % add finer step size for ...
9 days ago | 0
Error code: "Index in position 2 exceeds array bounds (must not exceed 1)." when running code for two-element spring system
K(i,i) = K(i,i) + y(1,1); K(i,j) = K(i,j) + y(1,2);
10 days ago | 0
Please I need help on Translating the following formulae into statements: 1) V=10(1− e0.2t ) (2) y =[e3t +t2 sin(4t)]cos2 (3t) Assume t as the row vector
t = 0:0.1:10; x = 10*exp(-0.5*t).*sin(3*t+2); y =exp(3*t)+t.^2 .* sin(4*t).*(cos(3*t)).^2 v = 10*(1-exp(0.2*t))
11 days ago | 0
I keep getting the error using '/'.
condition=readmatrix('cases.xlsx','Sheet',1,'Range','A2:C65');
11 days ago | 0
Indexing Error Using 'dsolve'
syms t k1 k2 M A0 A(t) dA_dt = 1 * (20 - A) - 3 * diff(A,t) == 0; % Solving for A(t) with different initial conditions A_s...
11 days ago | 0
I wrote a piece of code about Calculating the Enthalpy of H2, O2, and Water and the machine reports the error "Array indices must be positive integers or logical values".
R = 8.314; % Ideal Gas Constant T = 300 : 50 : 1000; % Temperature range from 300 K to 1000 K with increments of 50 % Create T...
14 days ago | 1
How to workaround this problem with angle?
You have real and imaginary componens for variable Fi, so use only real angles %total range of omega delta_omega=20; %interv...
14 days ago | 1
Error that X is used but not initalized.
syms I O = 14.6*10^(-3)*I % define this way O(I) = 14.6*10^(-3)*I
15 days ago | 0
pause() function not running in realtime
dt = 0.05 change the timestep size and try
16 days ago | 0
Why the last err is a row vector of all zeros instead of a single zero?
clear;clc u=[1 2 0.1 0.2 3 4 30 40 50 60]; b=[1.1 1.2 0.11 0.21 33 44 31 41 51 61]; a1 = u(1:2); r1 = u(3:4); f1 = ...
16 days ago | 0
| accepted
equation code not getting right answer
% Given values %AInfinity = 1; %AInlet = 6.5; MInlet = 0.5; MInfinity = 2; gamma = 1.4; a = (1 + ((gamma-1)/2)* MInfinit...
16 days ago | 0
| accepted
How to apply loop on following case?
Try using the cell array for the testdata you gave data = load('datatest.mat'); X_p = {data.IP_OPT, data.IS_OPT, data.RH_OPT}...
17 days ago | 1
| accepted
the matrix only works till days= 16 then when the days=17 or bigger the output is 0 on all the values in the matrix
Cn = 0.7; % Clearance index I0 = 1353; % Solar constant latitude = -34.005133; % Latitude of the location...
17 days ago | 0
Any way to remove the for loop and make the code more efficient here?
N=400; pair = rand(10,4); [I,J] = meshgrid(1:N,1:N); for r = 1:10 n = pair(r,1); m = pair(r,2); p = pair(r,3);...
17 days ago | 1
| accepted
trrapz function not working in matlab R2023b, how can I fix this?
totalA = trapz(x,lift,1);
17 days ago | 0
Plotting multiple figures using subplot
subplot(3,2,1) plot(rand(2),rand(2)); title('figure 1') subplot(3,2,2) plot(rand(2),rand(2));title('figure 2') subplot(3,2,3...
22 days ago | 0
Need help with resolving the error sym>tomupad
<https://in.mathworks.com/matlabcentral/answers/310042-how-to-convert-symbolic-expressions-to-transfer-functions> Go through ...
22 days ago | 0