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

más de 5 años hace | 0

| aceptada

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

más de 5 años hace | 0

| aceptada

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

más de 5 años hace | 0

| aceptada

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

más de 5 años hace | 0

| aceptada

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

más de 5 años hace | 1

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

más de 5 años hace | 0

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

más de 5 años hace | 0

| aceptada

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

más de 5 años hace | 1

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

más de 5 años hace | 1

| aceptada

Respondida
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

más de 5 años hace | 0

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

más de 5 años hace | 0

| aceptada

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

más de 5 años hace | 0

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

más de 5 años hace | 1

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

más de 5 años hace | 0

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

más de 5 años hace | 0

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

más de 5 años hace | 0

Pregunta


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

más de 5 años hace | 0 respuestas | 0

0

respuestas

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

más de 5 años hace | 0

Pregunta


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

alrededor de 6 años hace | 0 respuestas | 0

0

respuestas