Respondida
Erase this character ''←''
double('←') strrep({'←Matlab←←'},char(8592),'') strrep({'←Matlab←←'},'←','')

más de 4 años hace | 0

| aceptada

Respondida
Name of Bus at input or output port of a block
"Inbus" and "Inbus2" here are the tag names of the "From" block. They have nothing to do with the bus name, of curse except that...

más de 4 años hace | 0

| aceptada

Respondida
Open a masked subsystem (look under mask) in command line
open_system(blk,'force') looks under the mask of a masked block or subsystem. It opens the dialog box of the block under the mas...

más de 4 años hace | 0

| aceptada

Respondida
How to code a time delay specified by a value saved in a parameter structure in a Matlab block?
In the MATLAB Function block editor, click the "edit data" button, then add parameter. Define the "myParams" in base workspace a...

más de 4 años hace | 0

Respondida
Create a Simulink model using command Lines
add_line()

más de 4 años hace | 1

Respondida
Creating a Simulink model using command Lines
The property name for Capacitance is 'c' set(gcbh,'c','1e-5')

más de 4 años hace | 1

Respondida
Matlab signal propagation error
Here is the root cause. It is due to the difference between R2020b and earlier versions. You have to figure out how to deal with...

más de 4 años hace | 0

Respondida
Where is Switch (Relay) in Simulink?
https://www.mathworks.com/help/physmod/sps/ref/spdtrelay.html?s_tid=doc_ta https://www.mathworks.com/help/simulink/slref/manual...

más de 4 años hace | 0

| aceptada

Respondida
How do you quickly format plots from the scope in Simulink?
Instead of using Scope, save the signal data using "To Workspace" or "To File" block. Write a M-script function to plot. see pl...

más de 4 años hace | 0

Respondida
MATLAB Puts One space between %'s (Comment)
I think that is the exact reason to add "%" and a space for "Ctrl+R", to avoid making "%%" by pressing "Ctrl+R" twice. Adding "...

más de 4 años hace | 0

Respondida
issue with using a variable for path name
cd(Path). avoid using 'Path' as variable name as path() is a function.

más de 4 años hace | 0

| aceptada

Respondida
How to get current URL from web browser using matlab?
If you are willing to do copy&paste, you can do this in MATLAB txt=clipboard('paste')

más de 4 años hace | 0

Respondida
Libraries equivalent for referenced subsystems
The library option in find_system() 'FollowLinks', 'on' or 'off' Also 'LookInsideSubsystemReference', 'on' or 'off' See doc ...

más de 4 años hace | 0

Respondida
Road Roughness in simulink
It seems normal to me. The acceleration has positives and nagatives, thus the speed shows rising and falling, but because all th...

más de 4 años hace | 0

| aceptada

Respondida
How to change port font color in Matlab Function Block in Simulink
It looks like block mask. Select the block, press Ctrl+M, check the "icon drawing commands".

más de 4 años hace | 0

Respondida
cannot extract data from figure with multiple lines
The other two "curves" are created using stairs(). use findobj(fig,'Type','Stair') to find those. fig = openfig('traj.fig'); >...

más de 4 años hace | 0

| aceptada

Respondida
Not enough input arguments from a row vector
myquad(3,4,5)

más de 4 años hace | 0

Respondida
My matlab can no longer import csv with struct by using dir
dir() is a function yet you use "dir" as a variable name on the first line. Use a different name.

más de 4 años hace | 1

Respondida
How to return information of multiple modules selected in Simulink
I use 'regexp' b=find_system(bdroot,'regexp','on','Selected','on','BlockType','Gain|Outport')

más de 4 años hace | 0

| aceptada

Respondida
How to find specific text in a string?
a="abs(3).def(5).hhh(11)"; regexp(a,'(\d+)')

más de 4 años hace | 0

Respondida
Exporting sampled data from figure to matlab.
t=0:0.01:10 SinCurve=plot(t,sin(t)); XData=SinCurve.XData; YData=SinCurve.YData; NewX=resample(XData,5,3); If you only ...

más de 4 años hace | 1

| aceptada

Respondida
Append apostrophe as a text in a function for a searching tool
Find a .mat file in your current folder and try this: name='MyData.mat'; folder=pwd; filename=fullfile(folder,name); data=lo...

más de 4 años hace | 1

| aceptada

Respondida
Why do we need a File Installation Key?
Good question. I wonder that too. But I think it is probably one of the multiple layers of protection that the Mathworks wants t...

más de 4 años hace | 0

Respondida
How to transfer an M-file to a Smulink block
Use the "MATLAB Function" block

más de 4 años hace | 0

Respondida
Extract data from simulink to excel
blocks=find_system('Model/System','FindAll','On','SearchDepth','0', 'BlockType','Inport'); get(blocks,'Name')

más de 4 años hace | 0

Respondida
why wrapping with anonymous function speeds up?
Don't know the exact reason, but I guess it shows that "annonymous function handle" is faster than "named function handle". It i...

más de 4 años hace | 0

Respondida
How can you save a plot without generating the figure pop up?
f=figure('visible','off') and then do plot and save. Remember to close and delete f

más de 4 años hace | 1

| aceptada

Respondida
Initialize Global Variable in Simulink
In your MATLAB Function block editor, click "Edit Data" icon on the tool strip, add "Gear" as a data. In the Simulink model, ad...

más de 4 años hace | 0

| aceptada

Respondida
Reading files in a specified order
>> sort({'A11_K25-2.txt','A11_K27-1.txt','A11_K25-1.txt'}) ans = 1×3 cell array {'A11_K25-1.txt'} {'A11_K25-2.txt'} ...

más de 4 años hace | 0

Cargar más