Community Profile

# Vasishta Bhargava

### PEC

170 total contributions since 2017

View details...

Contributions in
View by

How to plot an equation that uses multiple files of data
I see the graph with log scale on x axis See the code clear all; clc; load freq1.txt; load Rzero1.txt; load Lzero1.txt;...

2 hours ago | 0

NUMERICAL INTEGRATION USING SIMPSONS
In the for loop use % if true % code %end y(k) = f1(k); Use a space btw @(x) ((1-x) ...) for the anonymous f...

4 hours ago | 0

Plot columns against each other depending on user input from imported excel file.

4 hours ago | 0

Unable to perform assignment because the left and right sides have a different number of elements.
%if true % code %end for i = 2: 21 IRF_y1(i)= c +phi *IRF_y1 (i-1); end Then plot it again to see the result.

5 hours ago | 0

How to plot this phase gradient function?
The results are not accurate, but you can work with wavlength and frequency vectors to workaround the shapes on left and right ...

7 hours ago | 0

How to plot this phase gradient function?
The equation you are using may not be right one. In the figure phase 2.jpg, there is an eqn lgend . ?? May be you should try t...

10 hours ago | 0

Multiplication of very large 2D and 3D matrices
Use symsum function for summing series https://in.mathworks.com/help/symbolic/symsum.html

10 hours ago | 0

Cannot view plotted graph after running script
It runs without errors. Are you showing right figure window ? Is it figure window generated by another script with an error ...

11 hours ago | 0

Setting up a Deflection Plot
Try this, the way to plot F vs deflection clearvars clc r = 0.005 ; % [m] radius of bar P = 0.4; % [m] load app...

1 day ago | 0

a circle is divided using 2 by inscribing 2 circles how can we divide three regions obtained from it into equal 15 zones
See the fig attached, is the same figure you want, if i understand it right N = 4; % divides to 4 parts N1 = 10; a = lins...

1 day ago | 0

| accepted

a circle is divided using 2 by inscribing 2 circles how can we divide three regions obtained from it into equal 15 zones
Try this . it works , change the value of N to number of equal parts you want N = 15; % divides to 15 parts a = linspace(0...

1 day ago | 0

fluid mechanics: cylindrical flow in elliptical vortex
use the quiver plot to evaluate stream function, see resource below https://in.mathworks.com/help/matlab/ref/quiver.html

1 day ago | 0

How to customize Legends?
Try this.. use handle structure as below figure p1 = plot(datax1,datay1 , 'ro') hold on plot(datax2,datay2, 'ro') plot(data...

1 day ago | 0

| accepted

generate wind rose with frequencies
Use the polarplot version or polarhistogram functions whichever is applicable clearvars clc close all ws1 = 0.5:0.1:1.54; ...

1 day ago | 0

Plotting help. No line or points appearing on plot
You need to make time as vector. Then you can plot the trajectory, if i understand it right. See the code below, it plots xe v...

2 days ago | 0

| accepted

Unable to build the regression model.
Pass the second argument in *fitlm* function as matrix. % if true % code % end T = rand(2,3) lm = fitlm(train,T); ...

2 days ago | 0

how to make given plot smooth
Change the step size of vector yy yy=0:0.2:5*(length(final_integrand)-1); But ensure that final_integrand is also the same s...

2 days ago | 0

| accepted

How to convert Time function to Laplace function easily
see this resource for computing transfer function https://in.mathworks.com/help/control/ref/tf.html

2 days ago | 0

Need Help plotting things from a table
Try this clearvars clc data = readtable('RiskFactorAnalysis (1).csv'); userinput = input('Enter a Country: ','s'); Coun...

2 days ago | 1

| accepted

How to take all results from for loop?
use the for loop index to store them in array and write them to excel sheet. You are trying to change table value by 2 times i...

3 days ago | 0

How can I fix the if statement issue in my code?
So many syntax errors in your code Use code section for better readability Try this, it works without errors day = 40; ang...

3 days ago | 0

Tryng to graph with for loop
Dont use fractional increments for loops, Try this Mean=3; Lamda=.33; for i=1:10 % integer increments only s(i)=exp(-Lamda*...

3 days ago | 0

| accepted

For loop going beyond my stated limit, did I find a glitch?
You are using _linspace_ function inside the for loop. Declare or initalize it outside the for loops. The size of _a_ matrix wil...

3 days ago | 0

Fprintf not showing up in function output
You are closing the end differently. Try this %if true % code % end function(D) = areavol(A) R = rank(A); [rows...

3 days ago | 0

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

5 days ago | 0

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

5 days ago | 0

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]); ...

5 days ago | 1

Set it higher limits or explicitly

5 days ago | 0

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

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

5 days ago | 0 answers | 0