A répondu
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...

environ 5 ans il y a | 0

| A accepté

A répondu
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) ...

environ 5 ans il y a | 0

| A accepté

A répondu
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...

environ 5 ans il y a | 0

| A accepté

A répondu
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...

environ 5 ans il y a | 0

| A accepté

A répondu
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:...

environ 5 ans il y a | 1

A répondu
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...

environ 5 ans il y a | 0

A répondu
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 == ...

environ 5 ans il y a | 0

| A accepté

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

environ 5 ans il y a | 1

A répondu
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, ...

environ 5 ans il y a | 1

| A accepté

A répondu
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

environ 5 ans il y a | 0

A répondu
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...

environ 5 ans il y a | 0

| A accepté

A répondu
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...

environ 5 ans il y a | 0

A répondu
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...

environ 5 ans il y a | 1

A répondu
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(...

environ 5 ans il y a | 0

A répondu
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) ...

environ 5 ans il y a | 0

A répondu
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...

environ 5 ans il y a | 0

Question


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

environ 5 ans il y a | 1 réponse | 0

0

réponse

A répondu
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 ...

environ 5 ans il y a | 0

Question


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

presque 6 ans il y a | 1 réponse | 0

0

réponse