Community Profile

photo

Vasishta Bhargava


Last seen: Today

PEC

146 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

Answered
Title for a column of subplots
% if true % code % end subplot(221);[t s] = title('','x=1,y =2');ylabel('part');subplot(222);[t s] = title('','x=1,y=2'...

1 day ago | 0

Answered
Align time axes of two plots?
Set the font size of axes to 6 or 8 %if true % code %end ax = gca ax.Fontsize = 6 Use subplot(121) and subplo...

1 day ago | 0

Answered
Partial derivative of a time derivative
I don't get any error It shows the result as T = 1 as you mentioned. %if true % code % end syms('qxy(t)',[2,1]); ...

1 day ago | 1

Answered
x-axis label adjustment (negative value)
Set it higher limits or explicitly

1 day ago | 0

Answered
Making graph for quadratic function
Use the following code inside the function %if true % code %end Xvector = input('enter X value of vector with inc...

2 days ago | 0

Question


Mathworks account login problems, anonymous user
My Mathworks account seems to be corrupted or hacked. At the time of login, i could see the initials of another anonymous per...

2 days ago | 0 answers | 0

0

answers

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:...

22 days 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...

23 days 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>

29 days 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))

29 days 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...

29 days 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...

29 days 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...

30 days 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

30 days 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...

1 month 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

1 month ago | 0

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

1 month 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...

1 month ago | 1

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

1 month 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

1 month 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)

1 month 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...

1 month 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);

1 month 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...

1 month 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;...

1 month 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 = ...

1 month 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);

1 month 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.

1 month 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...

1 month 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...

1 month ago | 0

Load more