回答済み
Merging different position (length) lines ??
Although the two curves look different in length and position, technically, curve one still have values (all zero) at the begini...

6年以上 前 | 0

| 採用済み

回答済み
Matrix element comparision ?
V=[3 0;1 2;1 4]; out=sum(M==min(M))==1

6年以上 前 | 0

| 採用済み

回答済み
Using a column vector of indices to replace values in a matrix
C=[1,2,3]'; M=magic(5); index=setdiff(1:numel(M),C); M(index)=0

6年以上 前 | 2

| 採用済み

回答済み
How to plot a "goal" into my plot?
help rectangle

6年以上 前 | 0

| 採用済み

回答済み
Why is `struct('name', value)` different with dot notation?
It is in the document. Check this example in the document. One creates a 1x2 struct array. The other creates a single struct. >...

6年以上 前 | 0

回答済み
Integer check with a symbolic variable
If you want to check whether (p-1)/2 is an integer, then check whether p is an odd number. But since p is a prime number, it see...

6年以上 前 | 1

回答済み
Corresponding values between two matrices
index=ismember(A(:,2),B(:,1)); A(index,1)

6年以上 前 | 0

| 採用済み

回答済み
How to make pop up suggestion text box for an input field
a=uicontrol; a.Tooltip='input must be between 0 and 10';

6年以上 前 | 0

回答済み
How to colour plot grey
f=figure; f.Color=[0.5, 0.5, 0.5]; %adjust the RGB for your shade of gray

6年以上 前 | 1

| 採用済み

回答済み
How do I dock the workspace window in the command window?
On the tool bar, click Layout then default

6年以上 前 | 6

| 採用済み

回答済み
Find the help for sim command in the MPC Toolbox
There seems to exist a consistency issue. In R2018a, "doc mpc/sim" brings up the correct doc page. The address is web(fullfil...

6年以上 前 | 0

| 採用済み

回答済み
Simulink compare shows false positives
It sounds like a bug. You could contact tech support to confirm. I've seen similar results quite often, even in later versions a...

6年以上 前 | 0

| 採用済み

回答済み
Undefined function or variable 'xlim' Error
run"which -all xlim"?

6年以上 前 | 0

| 採用済み

回答済み
Simulink model crashing when including to workspace block
The "To Workspace" block saves variables to the workspace which needs memory to store the variables. It sounds like that you mig...

6年以上 前 | 0

回答済み
Issue in To workspace block in 2019b
Drag a "To Workspace" block from the library, if you only change the fomat from "Timeseries" to "array", then the variable in th...

6年以上 前 | 0

回答済み
How can I select a specific variable in the .mat file which contains different variables in the user interface?
Use load() with return structure. gongStruct = load('gong.mat'); fieldnames(gongStruct) Use matfile object. Help matfile

6年以上 前 | 2

| 採用済み

回答済み
How to display a matrix in 1 column?
Don't struggle too much. A for-loop will do. Or displaying "column #" would be more helpful when the array size is bigger. for ...

6年以上 前 | 0

| 採用済み

回答済み
how can I read different data types from excel file
[NUM,TXT,RAW]=xlsread(FILE). Get the Raw data.

6年以上 前 | 1

| 採用済み

回答済み
Error 2019b simulink plotting
Open the scope, View, Style, set the "Marker" to be "none".

6年以上 前 | 0

| 採用済み

回答済み
block type "MATLABFcn": not yet supported by simulink coder
Run this in your MATLAB version to bring up the document. web(fullfile(docroot, 'simulink/ug/comparison-of-custom-block-functio...

6年以上 前 | 0

| 採用済み

回答済み
eval and inline function
f3=inline('1/(sqrt(x^2+y^2))'); x=1/2; y=5; f3(x,y)

6年以上 前 | 0

回答済み
Index exceeds the number of array elements (1)
You need to replace z with z(1), z2 with z(2), z6 with z(6). Similarly for v, v2, ... v6. Some fundermental MATLAB basics: z=r...

6年以上 前 | 1

回答済み
Merge of Logical Indexing one dimension matrix from multi dimension?
all(A)

6年以上 前 | 1

| 採用済み

回答済み
Execute subsystem in Simulink if condition is met for 5 seconds?
Do an equal comparison (==) between RC_flag and zero, generate this int_flag. Feed int_flag to an Integrator. If the output of t...

6年以上 前 | 0

| 採用済み

回答済み
How can I fix the error when I open the example 'ACCTestBenchExample'?
It is likely that the data has not been properly loaded. Run the following to bring up the Help page and click "Open Model" to s...

6年以上 前 | 0

回答済み
Indexing a Variable in an Input Prompt
prompt = sprintf('Player %i move x: ', Playerturn)

6年以上 前 | 0

回答済み
What is the correct syntax for save_system for SaveDirtyReferencedModels?
save_system('modelT','modelT','SaveDirtyReferencedModels',true), or replace true with 'on'

6年以上 前 | 1

回答済み
In Simulink, how do I combine 2 function calls into one to trigger a stateflow?
I would create two boolean signals based on those two methods. Then you can do AND or OR operation and then enable the Stateflow...

6年以上 前 | 0

回答済み
How to fit to view custom masked block permanently?
Select All, move all the blocks to the top-left cornor as close as possible.

6年以上 前 | 1

回答済み
how to save lists into mat-file while keeping their original name?
for k = 1:length(myFiles) baseFileName = myFiles(k).name; fullFileName = fullfile(myDir, baseFileName); I{k} = xl...

6年以上 前 | 0

さらに読み込む