Community Profile

photo

Vasishta Bhargava


Last seen: Today

PEC

140 total contributions since 2017

Contact

Vasishta Bhargava's Badges

  • Solver
  • Revival Level 2
  • Knowledgeable Level 2
  • First Answer
  • Personal Best Downloads Level 2
  • First Review
  • 5-Star Galaxy Level 1
  • First Submission
  • Thankful Level 2

View details...

Contributions in
View by

Solved


Times 2 - START HERE
Try out this test problem first. Given the variable x as your input, multiply it by two and put the result in y. Examples:...

2 días ago

Answered
Dot Product Doubt, don't get the result I expected.
% This is the MATLAB code mass_sph = 23.4572; RIMatrix_sph = [0.0938 0 0; 0 0.0938 0; 0 0 0.0938] RIMatrix_sph1 = RIMatrix_sp...

2 días ago | 1

Answered
How do I plot a model of two systems of ODE?
You can use _ode_ solver resource below link <https://in.mathworks.com/help/matlab/math/choose-an-ode-solver.html>

9 días ago | 0

Answered
How to reshape an array horizontally
%if true % code % end k = append(text(1,1:end),text(2,1:end),text(3,1:end))

9 días ago | 0

Answered
Plotting graph in a certain range
Use subplot and findpeaks functions to plot it % if true % code % end Intensity = [...]; [Pk,Lc] = findpeaks(Inten...

9 días ago | 0

Answered
Dot product not working for 2d matrix
Matrices must be of same size to perform dot product. _size_of A must be same as _size_ of B. You have A = 2x1 and B as 3x2. I...

9 días ago | 0

| accepted

Answered
Found unsupported type in switch expression; switch expression must be of discrete type
_switch_ statement needs a scalar or character value to evaluate the statements inside it. You have declared _curr_state_ as...

9 días ago | 0

Answered
While Loop regarding user input type stuck on infinite else loop
Use a break statement in if loop as below if condition ... else ... break; end

10 días ago | 0

Answered
Wind Farm (DFIG Phasor Model) - Negative active power;
DFIG generators draw reactive power from the grid In order to start the generator and produce active power to grid like you said...

10 días ago | 0

Answered
How can I get the slope of the peak?
% if true % code %end F = gradient(segline); % w.r.t x [Fx Fy] = gradient(segline); % w.r.t x & y

10 días ago | 0

Answered
How to use "dir"?
Type finfo.name Or use finfo=dir('*Inst**');

10 días ago | 0

Answered
Unrecognized function or variable when reading an excel file.
You have initialized last = 0; but you used a if condition as if (last>0) ... p = 100*t/60; % end Which Is not sat...

11 días ago | 1

Answered
Error with ODE and nargin
% if true % code %end [t,x] = ode45(@glucoseff,[0 10],x0)

12 días ago | 0

Answered
HOW can I change Matlab language in English.
<https://in.mathworks.com/help/matlab/matlab_env/setting-locale-on-windows-platforms.html> See the info in the link above

12 días ago | 0

Answered
Numerical integration in Matlab
% if true % code % end t = 2; fun = @(x,t) (1./exp(0.014342./(x*t))).*(1./x.^4) A = integral(@(x) fun(x,t),0,2)

12 días ago | 0

Answered
How to read rows until I find blank row in csv file and copy to another cell?
fid = fopen('C:\path\file.csv', 'rt');% opens the file in text mode numdata = textscan(fid,'%f %f....', 'headerlines', 1, 'de...

12 días ago | 0

Answered
Jagged Sine Wave Results
%if true % code % end t = 0:0.005:1; theta = 0.1*sin((20*t)+(pi/2)); plot(t,theta);

12 días ago | 1

Answered
How to solve an equation with a variable that has multiple values?
% if true % code % end W = 13122.25; S = 16.16; P = 1.225; V = [20 30 40 50 60 70 75]; C = 2*W./(P*V.^2*S); plot(V...

13 días ago | 0

Answered
Drawing polygon from lines
Try this %if true % code %end clear all Vertex_X=[30;43;49;45;22;19;30;43;89;28;30;28;0;19;54;45;49;89;54;89;96;...

13 días ago | 0

Answered
Two Stem Plots with Different Base Values on the Same Graph
%if true % code % end for k = 1:10:m % for faster animations i.e. skip frame z0 = u_approx_dirac(k,:); z1 = ...

13 días ago | 0

Answered
How do you input f(x)=e^-0.5cos(4x)?
% if true % code % end x= 1:1:45; f = exp(-0.5*x).*cos(4*x);

13 días ago | 0

Answered
can't save a any simulink model
This appears to be software corruption error. Try to disable the firewall and save it.

14 días ago | 0

Answered
Set aspect ratio in tilelayout
%if true % code % end tiledlayout('flow') For keeping the aspect ratio uniform. Don't use handles to the plot funct...

14 días ago | 0

Answered
text arrow annotation applying in axes in GUI
% if true % code % end set(0,'showHiddenHandles','on') plottools('on') Use this to make the GUI figure handles appe...

14 días ago | 0

Answered
How to import data from .csv file, from specific columns of a row, into an array
% if true % code % end GDPperCapita = importdata('GDP.csv') array = GDPperCapita(263,5:end) The highlighted box arr...

15 días ago | 0

Answered
How do I get a histogram of values from within a table?
%if true % code %end table1 = table(table.column1=="CAT", :); histogram(table1(:,1))

15 días ago | 0

Answered
Legend position changed after saving a picture
% if true % code %end saveas(gcf, savePath,'Renderer','pdf'); Use the saveas with renderer argument and file extens...

16 días ago | 0

Answered
Legend Color doesn't Match the Curves Color
% if true % code %end ph = semilogy(z,PDF_Hp,'LineWidth',4); xlabel('The Distance Z') ylabel('The Probability Densit...

16 días ago | 0

Answered
When I plot a curve the lines have little "nicks" in them. How do I fix that?
Reduce the linewidth to 2 or 3 You seem to be using 7 which is very thick

16 días ago | 0

| accepted

Answered
Plot one row of x with multi rows of Y
X= 25:25:100; Y = [646 490 700 669;1530 1388 1500 1666;2586 3260 882 1704;4411 4415 2419 2142]; bar(X,Y,'stacked'); I just sh...

17 días ago | 1

Load more