回答済み
User input in a struct
You cannot have space in structure field name. And also as @Dyuman Joshi mentioned you should not use quotes when you assign it....

2年弱 前 | 1

| 採用済み

回答済み
write the results of two for loops with different indexes into an matrix
You need to provide more info for a better help. However here is my attempt with the limited info. There are a couple reasons ...

2年弱 前 | 0

回答済み
how to find out the index of a cell array that cell contains my substring?
Using the @Fangjun Jiang example, how about myCellArray = {'John','Mike','foo','Jonathan','Stuart','Martha','Jo'}; substring =...

2年弱 前 | 1

回答済み
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年弱 前 | 0

| 採用済み

回答済み
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年弱 前 | 0

| 採用済み

回答済み
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年 前 | 0

回答済み
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年 前 | 0

回答済み
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年 前 | 0

回答済み
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年 前 | 0

回答済み
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年 前 | 0

回答済み
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年 前 | 0

| 採用済み

回答済み
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年 前 | 0

回答済み
Two colormaps in a figure
This answer might help.

約2年 前 | 0

回答済み
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年 前 | 0

回答済み
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年 前 | 0

回答済み
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年以上 前 | 0

回答済み
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年以上 前 | 0

回答済み
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年以上 前 | 0