回答済み
Enclosing Multiple Subplots in a Box
In the figure window, click "Insert", "Rectangle". Or % Create figure figure1 = figure; % Create subplot subplot(4,4,1,'P...

6年以上 前 | 0

回答済み
Interweave two arrays in a specific pattern
%% a=(1:32)'; b=(10:10:320)'; %% c=reshape([a,b],16,[]); d=c(:,[1:2:end,2:2:end]); e=d(:) %% better solution from Gui...

6年以上 前 | 0

回答済み
How can I save a variable to external harddisk
save(FileName, Variables). Specify the full path of your file, e.g. 'd:\mydoc\file.mat'

6年以上 前 | 0

| 採用済み

回答済み
anyone have a clue why roots([1,6,9]) outputs complex numbers?
a is correct. use real(a) to get what you want.

6年以上 前 | 0

回答済み
Simulink.findBlocksOfType for Multiple Types
vdp; Option=Simulink.FindOptions('RegExp',true); Simulink.findBlocks('vdp', 'BlockType','Gain|Outport',Option)

6年以上 前 | 0

| 採用済み

回答済み
Change value of Simulink parameter inside of test harness to test two different variant subsystems
Just change the value of EST_REF_VEL_RBT_MODE_CFG. When its value is 1, ERVRBTModeHandling is activated. When the value is not 1...

6年以上 前 | 0

回答済み
Processing Big Data Files
Split the large file to smaller files and apply Tall Array

6年以上 前 | 0

回答済み
obtain a matrix out of other matrix
transpose(reshape((1:104)',13,[]))

6年以上 前 | 0

| 採用済み

回答済み
Where to manually store a path.m file?
When you start MATLAB, the Command window will show you the current folder (default: \document\MATLAB). That is the startup fold...

6年以上 前 | 0

回答済み
Opening a Matlab GUI as a mask of a Simulink block
Block properties, Callbacks, OpenFcn, put in the function that call your GUI. You need to pass the result back to the block usin...

6年以上 前 | 0

回答済み
Simulink 'To File' Block: How to save simulation outputs as distinct vectors
Use "To Workspace" block and then save those variables to a .mat file using "save" command.

6年以上 前 | 0

| 採用済み

回答済み
simulink undefined funciton or variables
It is a "Mux" block or a "Bus Creator" block.

6年以上 前 | 0

| 採用済み

回答済み
How to set a system constant to be used in multiple blocks in Simulink
The general approach is to define a parameter (e.g. MyPar1) in base workspace or in a data dictionary, then you can use this par...

6年以上 前 | 0

| 採用済み

回答済み
getting incorrect simulinkg port specifier error
I was asked to look into a simple Simulink model in R2016 that has the "incorrect Simulink port specifier" error when updating m...

6年以上 前 | 0

回答済み
How to call functions of a C library by C Caller Block in Simulink
This should help. https://www.mathworks.com/help/simulink/ug/integrate-ccode-ccaller.html

6年以上 前 | 0

回答済み
Scope in Simulink showing impossible waveforms
It's because the "Marker". On the Scope, click View, Style. Change the "Marker".

6年以上 前 | 0

回答済み
Simulink gradually changing a value from its original to desired
Use the "Rate Limiter" block

6年以上 前 | 1

| 採用済み

回答済み
Assign values to a string in Matlab
Y1=X-97

6年以上 前 | 0

回答済み
is it possible to change color of figure ?
a=figure; a.Color='blue'; b=axes; b.Color='red';

6年以上 前 | 1

| 採用済み

回答済み
Finding non-zero 2-D array
a=[1 3 7; 3 6 9; 0 0 0;2 3 8]; b=a(~all(a==0,2),:);

6年以上 前 | 0

| 採用済み

回答済み
array of mean from array
a=rand(400); b=mat2cell(a,40*ones(10,1),40*ones(1,10)); c=cellfun(@mean,b,'uni',false); d=cellfun(@mean,c,'uni',false); e=ce...

6年以上 前 | 1

| 採用済み

回答済み
Why am I getting the complex number in the for loop?
Try not to use variable name i and j. Try this clear all i j or you missed one "*" cos(pi*(2*j+1)/(2*(n+1)))

6年以上 前 | 0

| 採用済み

回答済み
Finding TargetLink inputs and outputs
Yes. It's better to use tl_find().

6年以上 前 | 1

| 採用済み

回答済み
How to add a custom library using add_block?
Your syntax is not correct. open_system('SourceLibFileName') add_block('SourceLibFileName/RADAR','DestModelFileName/BlockName'...

6年以上 前 | 0

回答済み
set a variable equal to the count
numel()

6年以上 前 | 0

| 採用済み

回答済み
I have signal name which is stored in one variable and I want to make that signal as simulink object, could you please help me to create the object
eval([B{1,1},'=mpt.Signal;']); or mptsignal=mpt.Signal; assignin('base',B{1,1},mptsignal)

6年以上 前 | 0

| 採用済み

回答済み
Using two vectors to get the third one
a=[0 1 4 7] b=rand(size(a)) c=0:23 d=nan(size(c)) d(a+1)=b

6年以上 前 | 1

回答済み
I can't open configuration parameter in simulink
Remove that "C:\WINDOWS\system32" from your MATLAB path. It was trying to call the built-in "ver" function but your have ver.dll...

6年以上 前 | 0

回答済み
Model Compilation Through M-Script
sort_slx_files(i).name is a string, that is the cause of the error. use eval([sort_slx_files(i).name,'([],[],[],''compile'');']...

6年以上 前 | 0

| 採用済み

回答済み
How to display Subsystem Input Port Number in Simulink
This might be close. Right click the Subsystem block, click "Signals & Ports"

6年以上 前 | 0

さらに読み込む