Beantwortet
Issue in executing command containing single quote using Plink
I would suggest putting all the commands in a M-script and then run "fullpath\bin\matlab.exe" -r "MyScript" Notice the dou...

fast 8 Jahre vor | 0

Beantwortet
Simulink 2017b Configuration Parameters Save Setup
That is not right. Your model must have some pre-load function or other callback functions that automatically change the setting...

fast 8 Jahre vor | 0

Beantwortet
How to reverse a subarray of an array
A([1:min(idx)-1,max(idx):-1:min(idx),max(idx)+1:10])

fast 8 Jahre vor | 1

| akzeptiert

Beantwortet
Binary Bit Masking
>> dec2bin(7,8) ans = '00000111' >> bitget(7,1:8) ans = 1 1 1 0 0 ...

fast 8 Jahre vor | 0

Beantwortet
How i can call matlab basic function if that name is accotiated with couple of functions?
I thought it is automatic as long as you specify your symbolic variable is properly specified. >> diff(1:3) ans = ...

fast 8 Jahre vor | 0

Beantwortet
listing folders in directory with specific strings
dir() does not have the regexp option. I can think of this way a=dir; b=char({a([a.isdir]).name}); len=sum(isstrprop(...

etwa 8 Jahre vor | 0

Beantwortet
How do I make a random matrix with specific parameters of what numbers, how many of each, and what can be associated with other values?
This isn't completely random but it meets your other criteria and is something to start with. a=randperm(24); aa=repmat(...

etwa 8 Jahre vor | 0

Beantwortet
How to import flow rate wrt time data from workspace to simulink to use in variable flow rate?
"From Workspace" block, run the following to bring up the document web(fullfile(docroot, 'simulink/slref/fromworkspace.html')...

etwa 8 Jahre vor | 0

Beantwortet
how define in matlab like c++
even easier >> g=9.8 g = 9.8000

etwa 8 Jahre vor | 0

Beantwortet
How can I run a control loop faster than other on the simulation in Simulink?
This is pretty common. You just explicitly specify how different part of your model is executed. Run the following in MATLAB ...

etwa 8 Jahre vor | 0

Beantwortet
How to programm a app which selects files from a file folder
uigetfile()

etwa 8 Jahre vor | 0

Beantwortet
Getting output from Simulink using m-file (link for m-file in simulink)
Double click the annotation box to enter the "edit" mode, hover over the hyper link and right click, select "Hyperlink ..." and ...

etwa 8 Jahre vor | 1

| akzeptiert

Beantwortet
Run exe with an input file and close upon process exit
Try to run system() manually first or open a command window and then type in line by line cfd.exe <exp.in exit

etwa 8 Jahre vor | 0

Beantwortet
Hello, I am new to Matlab and want help to count number of rows in a matrix that belong to data subset.
a=[4 7 6 8 NaN NaN 0.2 0.5 0.3 0.9 0.1 0.7 0.6 0.4 -999 -999 1.6 1.9 2.8 6.4 5.1 8.3 2.3 4.7]...

etwa 8 Jahre vor | 1

Beantwortet
How can I refer to a variable, defined in one .m file, within a function defined in another?
Define it as an input argument and pass the value in function [R,M,T,SOI] = KSP_bod(bodies) call using the syntax [R,...

etwa 8 Jahre vor | 1

| akzeptiert

Beantwortet
extract numbers from time series
a=1:156; b=reshape(a,6,[]); c=b(:,1:2:end)

etwa 8 Jahre vor | 0

Beantwortet
how to store cells values of multiple images into a single file ?.
cell2mat() reshape()

etwa 8 Jahre vor | 0

Beantwortet
Loop is not reading from the first value in the array?
It is because third column in B has duplicated values. For example, the result of the first loop (b=1) in the "for b = 1:length(...

etwa 8 Jahre vor | 0

| akzeptiert

Beantwortet
In the "model data - > Inports/Outports" panel in simulink, there is a "Source" column, how do I access this through the API.
I think that "Source" column just shows the Inport block name. Change the Inport block name in the model to see if it changes.

etwa 8 Jahre vor | 0

Beantwortet
Keep certain rows and deleting certain rows in excel using matlab coding
Assume your Excel file contains one column of numeric data, a=xlsread('MyExcel.xlsx'); a=a(1:10:length(a));

etwa 8 Jahre vor | 0

Beantwortet
I want to generate all possible combinations of 3*3 matrix, where the sum of all elements of this matrix equal 10.
Then you probably mean "one way" to generate the matrix, not "all possible combinations". The one way below does not even consid...

etwa 8 Jahre vor | 0

Beantwortet
Which licence source has priority in the MLM_License_File?
I would say the preference would be individual license first and then network license. But anyway, you can set up the priori...

etwa 8 Jahre vor | 0

| akzeptiert

Beantwortet
reshape matrix without loop
a=[ 1 1 5 1 2 6 1 3 7 2 1 8 2 2 9]; MatrixSiz...

etwa 8 Jahre vor | 2

Beantwortet
Can you look at different data files within a Simulink model?
Use a "Variant Subsystem" block. https://www.mathworks.com/help/simulink/slref/variantsubsystem.html?s_tid=doc_ta

etwa 8 Jahre vor | 0

Beantwortet
Could anyone explain to me the method used by the ode23s function?
<https://blogs.mathworks.com/cleve/2014/05/26/ordinary-differential-equation-solvers-ode23-and-ode45/ ordinary-differential-equa...

etwa 8 Jahre vor | 0

| akzeptiert

Beantwortet
cd command not working
cd(test) cd('/Users/myusername/Documents/MATLAB') cd /Users/myusername/Documents/MATLAB

etwa 8 Jahre vor | 0

| akzeptiert

Beantwortet
When I type in my inputs in the function 'to' ,'subject', 'body' to send an email and hit run I'm not sure why I get an error message and it fails to send.
when you define a function, you write "function email(a,b,c)" with input argument variables. when you call and run the functi...

etwa 8 Jahre vor | 0

| akzeptiert

Beantwortet
get directory from edittext and use it in cd
I would suggest you use uigetdir(). Just run a=uigetdir and get a sense of it. You can pass the returned string a to the Editbox...

etwa 8 Jahre vor | 0

Beantwortet
How to randomly generate a row with restrictions?
b=repmat([1 0 0],1,41); B=zeros(1,204); B(sort(randperm(204,123)))=b

etwa 8 Jahre vor | 1

Beantwortet
About maximum value in matrix
use abs() and note that the second return of max() gives the indices. See if you can figure it out.

etwa 8 Jahre vor | 0

Mehr laden