Community Profile

photo

VBBV


PEC

Last seen: Today Active since 2017

MATLAB enthusiast , Mechanical engineer (MeMe) :-)

Statistics

All
  • MATLAB Central Treasure Hunt Finisher
  • 36 Month Streak
  • Guiding Light
  • Promoter
  • Solver
  • Personal Best Downloads Level 2
  • First Review
  • Thankful Level 5
  • Knowledgeable Level 5
  • Revival Level 3
  • First Answer
  • 5-Star Galaxy Level 1

View badges

Content Feed

Answered
Generate list of frequencies evenly spaced in logarithmic plot
F = linspace(0.2,628,100) semilogy(F)

12 hours ago | 0

Answered
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

Answered
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

Answered
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

Answered
"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

Answered
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

Answered
Why won't my function display any of the required text?
%FinalGrade = FinalMark;

7 days ago | 0

| accepted

Answered
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

Answered
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

Answered
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

Answered
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

Answered
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

Answered
I keep getting the error using '/'.
condition=readmatrix('cases.xlsx','Sheet',1,'Range','A2:C65');

11 days ago | 0

Answered
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

Answered
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

Answered
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

Answered
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

Answered
pause() function not running in realtime
dt = 0.05 change the timestep size and try

16 days ago | 0

Answered
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

Answered
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

Answered
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

Answered
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

Answered
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

Answered
trrapz function not working in matlab R2023b, how can I fix this?
totalA = trapz(x,lift,1);

17 days ago | 0

Answered
str2double with long string seems to give wrong answer
fprintf('%d',num)

18 days ago | 0

Answered
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

Answered
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

Load more