Beantwortet
How to check the value of simscape signal?
Hi, Simscape has sensors that can be connected to a PS-Simulink converter. This will help you log the required data using scope...

mehr als 5 Jahre vor | 0

| akzeptiert

Beantwortet
Finding common x values along with the corresponding y values.
Hi, Try something like this, t = 1; for i =1:length(x_exp) for j = 1:length(x_sim) if x_exp(i) == x_sim(j) ...

mehr als 5 Jahre vor | 0

| akzeptiert

Beantwortet
My plot for directivity is not showing?
Hi, Your xlabel and ylabel need to be in quotes which is missing in your script. % Setting up variables theta and phi. % phi...

mehr als 5 Jahre vor | 0

| akzeptiert

Beantwortet
Array comparision and replacement
Hey, From what I understand, for each element of A that is compared with C, there is a maximum occurance of one replacement. Yo...

mehr als 5 Jahre vor | 0

| akzeptiert

Beantwortet
How can I plot a line with just a slope
Hi, So, you can write the equation of the line as y = m*x+c. m = 3.374933333e-6, c = 1. m = 3.374933333e-6; c = 1; x = 0:10:...

mehr als 5 Jahre vor | 1

Beantwortet
how can I shift the columns of a matrix with the for loop?
Hi, Say your input matrix(t) is an n*m matrix. for i = 1:n for j = 1:m s = t(i,j); t(i,j) = t(i,j+1); t(i...

fast 6 Jahre vor | 0

Beantwortet
How to create a matrix of coordinates
Hi, Try something like this. n = input('Enter value') for i = 1:2 for j = 1:n for k = 1:n if i == ...

fast 6 Jahre vor | 0

| akzeptiert

Beantwortet
Plotting Results of a While Loop
Hi, Use an array to store the values so that you can plot them. % --------------------------------------------------------- %...

fast 6 Jahre vor | 1

Beantwortet
While Loop Running forever (Draining Cylinder Question)
Hi, There are a few problems in your code. Firstly, using a . before an operation indicates element wise operation. Secondly, ...

fast 6 Jahre vor | 1

| akzeptiert

Beantwortet
how to use mat file as a input to simulink
Hi, You can have the file saved in the model workspace from which you can access the data in the mat file. Regards

fast 6 Jahre vor | 0

Beantwortet
Strange behavior of diff function with symbolic variables
Hi, Your expression, D contains only 2 theta1 terms(in bold) whose derivatives cancel each other. Differentiation of theta2 and...

fast 6 Jahre vor | 0

| akzeptiert

Beantwortet
creating a nested loop to change values within a for loop
Hi, I think something like this should help. I am not too sure if I understood your question right, please let me know if you w...

fast 6 Jahre vor | 0

Beantwortet
How obtain the Y value that corresponds to the largest X value for a number of plots?
Hey, I think the following should help. The variable big is an array of the largest x value in each row and the variable bigy i...

fast 6 Jahre vor | 1

Beantwortet
Number of leap years in a range
Hi, The following should be able to solve your problem. The variable count stores the number of leap years. startYear=input(...

fast 6 Jahre vor | 0

Beantwortet
Any suggestion on how to solve this problem using Matlab?
The below code should be able to plot the required. m = 25; mu = 0.55; g = 9.81; for t = 0:90 F(t+1) = mu*m*g/(cosd(t) ...

fast 6 Jahre vor | 0

Beantwortet
How to get the values of f at different x
Try using the subs command to substitute values of x in your expression. syms x P(1)=x^0; P(2)=x; for n=1:d P(n+2)=expa...

fast 6 Jahre vor | 0

Frage


Accuracy of the Local Restriction in the gas library
The simscape gas library local restriction accounts for choking condition as seen in its documentation while the documentation a...

fast 6 Jahre vor | 0 Antworten | 0

0

Antworten

Beantwortet
While Loop Question (Ungraded)
You have started with F as an array but use it in the while loop and if condition as a variable. The solution to your problem ...

fast 6 Jahre vor | 0

Frage


Initial conditions solve failed to converge thermal simscape
I have set up a constant volume gas chamber to model the flow and I'm studying the variation of pressure and temperature within ...

mehr als 6 Jahre vor | 0 Antworten | 0

0

Antworten