已回答
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...

5 years 前 | 0

| 已接受

已回答
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) ...

5 years 前 | 0

| 已接受

已回答
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...

5 years 前 | 0

| 已接受

已回答
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...

5 years 前 | 0

| 已接受

已回答
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:...

5 years 前 | 1

已回答
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...

5 years 前 | 0

已回答
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 == ...

5 years 前 | 0

| 已接受

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

5 years 前 | 1

已回答
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, ...

6 years 前 | 1

| 已接受

已回答
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

6 years 前 | 0

已回答
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...

6 years 前 | 0

| 已接受

已回答
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...

6 years 前 | 0

已回答
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...

6 years 前 | 1

已回答
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(...

6 years 前 | 0

已回答
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) ...

6 years 前 | 0

已回答
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...

6 years 前 | 0

提问


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

6 years 前 | 0 个回答 | 0

0

个回答

已回答
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 ...

6 years 前 | 0

提问


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

6 years 前 | 0 个回答 | 0

0

个回答