Feeds
답변 있음
Division with negative powers
u = [0 0 1 0 1]; v = [1 4 4 4 3]; Result = filter(u,v,[1, zeros(1,7)]) ans = 0 0 1 -4 13 -40 121 -364
Division with negative powers
u = [0 0 1 0 1]; v = [1 4 4 4 3]; Result = filter(u,v,[1, zeros(1,7)]) ans = 0 0 1 -4 13 -40 121 -364
거의 7년 전 | 1
| 수락됨
답변 있음
How to add 'Description' to '.jpeg'?
If you're only interested in the 'Comment' field, then you can set it directly: imwrite(i,'figC.jpg', 'Comment', 'Made with...
How to add 'Description' to '.jpeg'?
If you're only interested in the 'Comment' field, then you can set it directly: imwrite(i,'figC.jpg', 'Comment', 'Made with...
거의 7년 전 | 0
| 수락됨
답변 있음
How to make array with first values of matrix
% Input A = [1 2 3 4 5 6 7 8 9 10;2 2 3 3 4 5 5 2 3 3]'; % Result B = A([boolean(1); diff(A(:,2))~=0],1);
How to make array with first values of matrix
% Input A = [1 2 3 4 5 6 7 8 9 10;2 2 3 3 4 5 5 2 3 3]'; % Result B = A([boolean(1); diff(A(:,2))~=0],1);
거의 7년 전 | 0
답변 있음
How do I read strings with textscan?
Have you tried specifying the delimiter? formatSpec = '%d %s %f %f %f %f %f %f %f %f %f'; C = textscan(fid,formatSpec,15...
How do I read strings with textscan?
Have you tried specifying the delimiter? formatSpec = '%d %s %f %f %f %f %f %f %f %f %f'; C = textscan(fid,formatSpec,15...
거의 7년 전 | 0
답변 있음
Help with dec2hex (case sensitive and Zero)
You could change the line: CarsHex=dec2hex(CarsDecimal); to: CarsHex=lower(arrayfun(@(x) (dec2hex(x)), CarsDecimal,...
Help with dec2hex (case sensitive and Zero)
You could change the line: CarsHex=dec2hex(CarsDecimal); to: CarsHex=lower(arrayfun(@(x) (dec2hex(x)), CarsDecimal,...
거의 7년 전 | 1
| 수락됨
답변 있음
not enough input argument
Your code, which I've included below takes two inputs, x and y, however you don't use the first input 'x' anywhere in your code,...
not enough input argument
Your code, which I've included below takes two inputs, x and y, however you don't use the first input 'x' anywhere in your code,...
거의 7년 전 | 0
답변 있음
Why this code is error???
Because given your definitions of x and y, the expression _3+(-x)+(-y)_ results in [3 1 -1 -3], and you cannot calculate the fac...
Why this code is error???
Because given your definitions of x and y, the expression _3+(-x)+(-y)_ results in [3 1 -1 -3], and you cannot calculate the fac...
대략 7년 전 | 0
답변 있음
Suppose I have a matrix of size(3,3).This is up-scaled by 2 making it (6,6).So there would be a number of vacant values between each element of the initial (3,3) matrix.Then how do you fill up the 0 values in addmatrixR by bicubic/liner interpolation
Just use interp2 on the original matrix, like so: prevR = magic(3) ans = 8 1 6 3 5...
Suppose I have a matrix of size(3,3).This is up-scaled by 2 making it (6,6).So there would be a number of vacant values between each element of the initial (3,3) matrix.Then how do you fill up the 0 values in addmatrixR by bicubic/liner interpolation
Just use interp2 on the original matrix, like so: prevR = magic(3) ans = 8 1 6 3 5...
7년 초과 전 | 1
답변 있음
What is the matrix code for column vectors
There are a few ways to do this, for example: x = [u' v (u' + v)] The apostrophe can be used to transpose a matrix. You ...
What is the matrix code for column vectors
There are a few ways to do this, for example: x = [u' v (u' + v)] The apostrophe can be used to transpose a matrix. You ...
7년 초과 전 | 0
답변 있음
How can I find a sub-folder in the (just in the) current directory ?
You can specify _exist_ to only look in the current directory. For example: lFolder = 'MyFolder'; if(exist([cd filesep l...
How can I find a sub-folder in the (just in the) current directory ?
You can specify _exist_ to only look in the current directory. For example: lFolder = 'MyFolder'; if(exist([cd filesep l...
7년 초과 전 | 0
| 수락됨
답변 있음
How to convert Matlab figure to excel sheet ?
See this related question: <https://uk.mathworks.com/matlabcentral/answers/100687-how-do-i-extract-data-from-matlab-figures>
How to convert Matlab figure to excel sheet ?
See this related question: <https://uk.mathworks.com/matlabcentral/answers/100687-how-do-i-extract-data-from-matlab-figures>
7년 초과 전 | 0
답변 있음
Why function blpsrv is 'undefined' after Datafeed Toolbox is installed
See the product requirements at this <https://uk.mathworks.com/products/availability.html#DF link> It states that Bloomberg d...
Why function blpsrv is 'undefined' after Datafeed Toolbox is installed
See the product requirements at this <https://uk.mathworks.com/products/availability.html#DF link> It states that Bloomberg d...
7년 초과 전 | 0
답변 있음
Extract group of identical values from an array
a = [0 0 0 1 1 1 0 0 0 0 0 1 1 1 1 0 0 1 1]; nStart = find(diff([0 a 0]) == 1); nEnd = find(diff([0 a 0]) == -1)...
Extract group of identical values from an array
a = [0 0 0 1 1 1 0 0 0 0 0 1 1 1 1 0 0 1 1]; nStart = find(diff([0 a 0]) == 1); nEnd = find(diff([0 a 0]) == -1)...
7년 초과 전 | 0
답변 있음
Which version of system generator supported by MATLAB 2016a ?
See the following link: <https://www.xilinx.com/support/answers/55830.html AR# 55830> It states that for Vivado System Genera...
Which version of system generator supported by MATLAB 2016a ?
See the following link: <https://www.xilinx.com/support/answers/55830.html AR# 55830> It states that for Vivado System Genera...
7년 초과 전 | 0
| 수락됨
답변 있음
How do I import a timestamp from Excel/csv?
Try this: [NUMERIC, TXT, RAW] = xlsread('My_Spreadsheet_Name'); You'll find the timestamps in both the TXT and RAW outp...
How do I import a timestamp from Excel/csv?
Try this: [NUMERIC, TXT, RAW] = xlsread('My_Spreadsheet_Name'); You'll find the timestamps in both the TXT and RAW outp...
7년 초과 전 | 1
답변 있음
which versions are compatible for matlab, intel visual fortran and visual studio
Follow this link: <https://uk.mathworks.com/support/sysreq/previous_releases.html System Requirements & Platform Availability> ...
which versions are compatible for matlab, intel visual fortran and visual studio
Follow this link: <https://uk.mathworks.com/support/sysreq/previous_releases.html System Requirements & Platform Availability> ...
7년 초과 전 | 0
답변 있음
how can I extract first number of cell?
a ={[8,21,291,94,455,241,227,36,130] [15,248,455,241,227,36,130] [21,291,94,455,241,227,36,130] [36,130]}; *Question 1:* ...
how can I extract first number of cell?
a ={[8,21,291,94,455,241,227,36,130] [15,248,455,241,227,36,130] [21,291,94,455,241,227,36,130] [36,130]}; *Question 1:* ...
7년 초과 전 | 2
| 수락됨
답변 있음
I have a data set like this, How can i delete raw ofs values less than 10, and T values which are zero, How can i sum s values which are related to same T values ?
One way to do it: data = [878.00 9.00 1.00 12.00 166.00 12.00 ...
I have a data set like this, How can i delete raw ofs values less than 10, and T values which are zero, How can i sum s values which are related to same T values ?
One way to do it: data = [878.00 9.00 1.00 12.00 166.00 12.00 ...
대략 9년 전 | 0
| 수락됨
답변 있음
How can I change tunable parameters in generated C++ class from private to public?
If you set parameter member visibility option to 'public' this will move the tunable parameters structure from private to public...
How can I change tunable parameters in generated C++ class from private to public?
If you set parameter member visibility option to 'public' this will move the tunable parameters structure from private to public...
대략 9년 전 | 1
| 수락됨
답변 있음
I am unable to identify the two simulink blocks that are shown in the snapshot of a Control System Simulink Model.
The first block is the 'Display' block. See <http://mathworks.com/help/simulink/slref/display.html> The second block is the '...
I am unable to identify the two simulink blocks that are shown in the snapshot of a Control System Simulink Model.
The first block is the 'Display' block. See <http://mathworks.com/help/simulink/slref/display.html> The second block is the '...
대략 9년 전 | 0
답변 있음
how to retrieve the Simulink execution order from the workspace
As far as I know there isn't really an easy way to do this (i.e. using get_param or similar). Instead you have to debug your mod...
how to retrieve the Simulink execution order from the workspace
As far as I know there isn't really an easy way to do this (i.e. using get_param or similar). Instead you have to debug your mod...
대략 9년 전 | 0
| 수락됨
답변 있음
HELP PLEASE!! How do I print matlab "1:5 multiply increases each line"
Do you mean like this? clc fprintf(' SGD USD GBP EURO \n') for x= 1 : 5 USD = 0.69 * 2 * x; GBP = 0...
HELP PLEASE!! How do I print matlab "1:5 multiply increases each line"
Do you mean like this? clc fprintf(' SGD USD GBP EURO \n') for x= 1 : 5 USD = 0.69 * 2 * x; GBP = 0...
대략 9년 전 | 1
답변 있음
In Matlab r2010b, how to find that string contains japanese character?
Depends on what you define as Japanese. The Hiragana characters have an Unicode range from 12352-12447, while the Katagana chara...
In Matlab r2010b, how to find that string contains japanese character?
Depends on what you define as Japanese. The Hiragana characters have an Unicode range from 12352-12447, while the Katagana chara...
대략 9년 전 | 3
답변 있음
how to create a data buffer in simulink
I believe the _Tapped Delay_ block should do what you are requesting. You can find this block in the Simulink Library Browser un...
how to create a data buffer in simulink
I believe the _Tapped Delay_ block should do what you are requesting. You can find this block in the Simulink Library Browser un...
대략 9년 전 | 1
| 수락됨
답변 있음
Summing different set of arrays.
nYear = 2002; nValue = 14; x = [7 10 2001 24 10 5 1 7 10 2001 14 15 2 1 7 10 2001 14 13 2 9 ...
Summing different set of arrays.
nYear = 2002; nValue = 14; x = [7 10 2001 24 10 5 1 7 10 2001 14 15 2 1 7 10 2001 14 13 2 9 ...
9년 초과 전 | 0
| 수락됨
답변 있음
how to convert model from continuous state space with disturbance to discrete
% Create state space model sys = ss(A,B,C,D); % Convert to discrete, where dt is your discrete time-step (in seconds...
how to convert model from continuous state space with disturbance to discrete
% Create state space model sys = ss(A,B,C,D); % Convert to discrete, where dt is your discrete time-step (in seconds...
9년 초과 전 | 2
답변 있음
Cutting a certain pattern from an array
A = [1 2 3 4 5 6 0 0 0 0 1 2 3 4 5 6 7 8 9 10 0 0 0 0]; B = [0 0 0 0]; C = A(setxor(cell2mat(arrayfun(@(x)(x:x+lengt...
Cutting a certain pattern from an array
A = [1 2 3 4 5 6 0 0 0 0 1 2 3 4 5 6 7 8 9 10 0 0 0 0]; B = [0 0 0 0]; C = A(setxor(cell2mat(arrayfun(@(x)(x:x+lengt...
9년 초과 전 | 1
| 수락됨
답변 있음
How to implement the counter (really simple)?
Infeasibles = any((A<=0) | (B>100),2);
How to implement the counter (really simple)?
Infeasibles = any((A<=0) | (B>100),2);
9년 초과 전 | 0
답변 있음
Why does char give me an empty output?
This is because ASCII characters 1 to 7 are not visible characters. See the 'Dec' column: <http://www.asciitable.com/>
Why does char give me an empty output?
This is because ASCII characters 1 to 7 are not visible characters. See the 'Dec' column: <http://www.asciitable.com/>
9년 초과 전 | 1