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

meer dan 6 jaar ago | 0

| accepted

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

meer dan 6 jaar ago | 0

| accepted

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

meer dan 6 jaar ago | 0

| accepted

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

meer dan 6 jaar ago | 0

| accepted

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

meer dan 6 jaar ago | 1

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

meer dan 6 jaar ago | 0

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

meer dan 6 jaar ago | 0

| accepted

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

meer dan 6 jaar ago | 1

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

meer dan 6 jaar ago | 1

| accepted

Answered
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

meer dan 6 jaar ago | 0

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

meer dan 6 jaar ago | 0

| accepted

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

meer dan 6 jaar ago | 0

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

meer dan 6 jaar ago | 1

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

meer dan 6 jaar ago | 0

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

meer dan 6 jaar ago | 0

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

meer dan 6 jaar ago | 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...

meer dan 6 jaar ago | 0 answers | 0

0

answers

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

meer dan 6 jaar ago | 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 ...

meer dan 7 jaar ago | 0 answers | 0

0

answers