Yasasvi Harish Kumar
Followers: 0 Following: 0
Statistiques
RANG
964
of 295 467
RÉPUTATION
76
CONTRIBUTIONS
2 Questions
32 Réponses
ACCEPTATION DE VOS RÉPONSES
0.0%
VOTES REÇUS
8
RANG
of 20 234
RÉPUTATION
N/A
CLASSEMENT MOYEN
0.00
CONTRIBUTIONS
0 Fichier
TÉLÉCHARGEMENTS
0
ALL TIME TÉLÉCHARGEMENTS
0
CONTRIBUTIONS
0 Publications
CONTRIBUTIONS
0 Public Chaîne
CLASSEMENT MOYEN
CONTRIBUTIONS
0 Point fort
NOMBRE MOYEN DE LIKES
Feeds
Running Simulink model in a loop
Hi, You can use data store memory block and log the value in the workspace as well. Read more here. Regards
plus de 5 ans il y a | 0
| A accepté
A résolu
Alternating sum
Given vector x, calculate the alternating sum y = x(1) - x(2) + x(3) - x(4) + ...
plus de 5 ans il y a
A résolu
Fibonacci-Sum of Squares
Given the Fibonacci sequence defined by the following recursive relation, * F(n) = F(n-1) + F(n-2) * where F(1) = 1 and F(1)...
plus de 5 ans il y a
Using vpasolve in a for loop ERROR
Hi, You have an error in your for loop definition and in using vpasolve. I think this should solve it. syms M gamma=1.4; al...
plus de 5 ans il y a | 0
Missing Vector Scope Block in Simulink Matlab 2018b
Hi, I think you are looking for array plot. Read more Here. Regards
plus de 5 ans il y a | 1
| A accepté
How to clear the workspace from within a program?
Hi, You can have clear all as part of your function or script. Example: clear all; a = 10; b = 5; sum = a + b; Regards
plus de 5 ans il y a | 1
maximum value of a function
Hi, clear clc syms a; kh=0.1; kv=0; d=26*(pi/180); p=39*(pi/180); lf=0.2; l=0.1; nq=1.35; g=18.4; H=4; kagq=((1+(k...
plus de 5 ans il y a | 0
A résolu
Make a checkerboard matrix
Given an integer n, make an n-by-n matrix made up of alternating ones and zeros as shown below. The a(1,1) should be 1. Examp...
plus de 5 ans il y a
A résolu
Find all elements less than 0 or greater than 10 and replace them with NaN
Given an input vector x, find all elements of x less than 0 or greater than 10 and replace them with NaN. Example: Input ...
plus de 5 ans il y a
A résolu
Triangle Numbers
Triangle numbers are the sums of successive integers. So 6 is a triangle number because 6 = 1 + 2 + 3 which can be displa...
plus de 5 ans il y a
A résolu
Column Removal
Remove the nth column from input matrix A and return the resulting matrix in output B. So if A = [1 2 3; 4 5 6]; ...
plus de 5 ans il y a
A résolu
Select every other element of a vector
Write a function which returns every other element of the vector passed in. That is, it returns the all odd-numbered elements, s...
plus de 5 ans il y a
A résolu
Pizza!
Given a circular pizza with radius _z_ and thickness _a_, return the pizza's volume. [ _z_ is first input argument.] Non-scor...
plus de 5 ans il y a
A résolu
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:...
plus de 5 ans il y a
A résolu
Determine if input is odd
Given the input n, return true if n is odd or false if n is even.
plus de 5 ans il y a
A résolu
Find the sum of all the numbers of the input vector
Find the sum of all the numbers of the input vector x. Examples: Input x = [1 2 3 5] Output y is 11 Input x ...
plus de 5 ans il y a
A résolu
Interpolator
You have a two vectors, a and b. They are monotonic and the same length. Given a value, va, where va is between a(1) and a(end...
plus de 5 ans il y a
A résolu
Make the vector [1 2 3 4 5 6 7 8 9 10]
In MATLAB, you create a vector by enclosing the elements in square brackets like so: x = [1 2 3 4] Commas are optional, s...
plus de 5 ans il y a
i am getting only the last figure as output but i need all the 4 of them separately
Hi, Try using subplot. You can read more about it Here. Regards
plus de 5 ans il y a | 0
How to change values in an array based on certain rules?
Hi, Something like this should fix your problem. f = 1; for i = 1:length(x) if x(i) == f xx(i) = f; f...
plus de 5 ans il y a | 0
| A accepté
how can i create a simulink model for any algorithm?
Hi, Based on what you want to do, you can use the different libraries on simulink. If you are new, I would suggest you start wi...
plus de 5 ans il y a | 0
| A accepté
please, how can I fix this error; Index in position 1 exceeds array bounds (must not exceed 10001)
Hi, This is the reason for your error. The condition is always true and f becomes 1002. f=1; while (Root_array(f,1)==0 && Roo...
plus de 5 ans il y a | 1
How can I plot a graph within a certain range?
Hi, This should fix your problem, y=[20.50,20.50,20.50,20.50,20.50,20.50,20.60,20.60,20.60,20.60,20.60,20.60,20.60,20.60,20.60...
plus de 5 ans il y a | 1
| A accepté
Problem with accurate conversion of signal from simulink to simscape.
Hi, Try changing the units in the Simulink - PS block. That might help fix your problem. Regards
plus de 5 ans il y a | 0
how can i shrink my plot to fit into a given range on the x axis
Hi, Say you have y data and x data. count = 0; for i = 1:length(y) if y(i) == 0 count = count + 1; xli...
plus de 5 ans il y a | 0
Help with axis on a plot
Hi, All you have to do is divide your x-axis by 12. For example: plot(x,y) %gives you the axis in months Change this to, x ...
plus de 5 ans il y a | 0
| A accepté
overlaying 2 plot in one graph
Hi, You can use the command 'hold on' after your first plot command to have the plot overlay. Example: plot(x,y) hold on pl...
plus de 5 ans il y a | 0
| A accepté
Iteration of a formula
Hi, All you need is a loop. This should fix your problem. maxIter=100'; %number of iterations i = 1; x(i)=4; %initial guess ...
plus de 5 ans il y a | 0
| A accepté