Answered
how to fix the scale in the output window
You need to be more specific for a better answer but here is my attempt: If you just want to see x axis from -0.1 to 0.1 then ...

2 years ago | 0

| accepted

Answered
How to set continue function?
You are looking for assert() function. When you condition is satsified assert(1>0,'STOPPED THE CODE!') fprintf('Code continue...

2 years ago | 0

| accepted

Answered
Foor loop; iteration
You set your tolerance to 1e-2 so your for loop terminates when abs(V-V_Check) becomes less than 1e-2. % here you basically def...

2 years ago | 0

Answered
Figure Output blank but no errors
When you call freqz with outputs, it does not draw a plot as written on the description of the function. So you need to do [h,w...

2 years ago | 0

Answered
How to modify the code to compute data on multiple inputs?
Next time please copy paste the code, not screen shot :D You did not provide full info to get an answer since I have no idea h...

2 years ago | 0

Answered
How to find all the intersecting points between 4 spheres ?
You can use symbolic toolbox for this. However I dont think your 4 spheres intersect. S1 = [1;1;1]; S2 = [2;1;1]; S3 = [1.5; ...

2 years ago | 0

Answered
Understanding the following lines of code
My guess is the code is used to generate a name for a mat file after performing some postprocessing on raw data from 'file_px'. ...

2 years ago | 0

Answered
With ischar usage - I get two different answers
"a" is a string not a char. You use double quotes for strings single quote for char. isstring("a") ischar("a") isstring('a') ...

2 years ago | 0

| accepted

Answered
Why does my Nx2 matrix turn into a 1x1 when I pass it into a MATLAB Function block
Your matrix you are getting from workspace needs to be Nx3 in your case, where the 1st colum is time, 2nd and 3rd column are you...

2 years ago | 0

Answered
Two colormaps in a figure
This answer might help.

2 years ago | 0

Answered
Defining an improper function in Simulink
Firstly, I do not think you understand the viscous friction model. Ms2+Ws is probably not what you think it is. To answer your...

2 years ago | 0

Answered
How can I plot the graph with the highest, lowest and middle values?
do you know of functions min(), max() and mean()? Example % generate random data t = (0:0.01:10)'; x = exp(-.2*t).*(2+(2*rand...

2 years ago | 0

Answered
How to remove the third to last element of an array?
% put the index to be removed in paranthesis, if you want to remove 99th % index, put 99, otherwise you can use 'end' to mean '...

2 years ago | 0

Answered
how to make input to the system time variable?
You can create your own numeric integration to solve the equation and provide the desired input in each time step. Here is an ...

2 years ago | 0

Answered
How can i plot P-H Diagram with two parameter are: Pressure and Temperature( With refrigerantion system)?
You can use 'text' function to add descriptions on a plot.

2 years ago | 0