Feeds
질문
save with "'-append" on table increase file size without modification of the variable
I create a table of 100x100, then save it: t = array2table(rand(100)); save('table.mat', 't') The file weight 76 Ko. Then, wi...
3개월 전 | 답변 수: 1 | 0
1
답변질문
Can't find matlab.uitest.lock
I'm using uitest framework to test an UI. During the tests, I need the user to interact with a pop-up (uiconfirm). So I used m...
1년 초과 전 | 답변 수: 1 | 0
1
답변질문
Parallel Computing Toolbox & Web App Server
From https://fr.mathworks.com/support/requirements/matlab-web-app-server.html, I know that Parallel Computing Toolbox works on a...
거의 4년 전 | 답변 수: 1 | 0
1
답변질문
Prevent execution of a block if link to library is not resolved
I'm trying to protect some custom Simscape blocks (*.ssc) to run if the link to my library is not resolved. This behaviour can ...
거의 4년 전 | 답변 수: 1 | 0
1
답변답변 있음
plotting xyz direction as legend
Look for the text function. You cannot directly set a legend the way you want, but with this function you will be able to write...
plotting xyz direction as legend
Look for the text function. You cannot directly set a legend the way you want, but with this function you will be able to write...
대략 4년 전 | 0
답변 있음
Name-value pairs
isdouble is not a MATLAB function. Try this : isa(YourVar, 'double')
Name-value pairs
isdouble is not a MATLAB function. Try this : isa(YourVar, 'double')
대략 4년 전 | 2
답변 있음
How to avoid the rounding off of data ?
There is no problem here, the default display format is set to short. Try : format long l = 2.093750000000000e+09;; l/10^9 ...
How to avoid the rounding off of data ?
There is no problem here, the default display format is set to short. Try : format long l = 2.093750000000000e+09;; l/10^9 ...
대략 4년 전 | 0
답변 있음
modify all numbers from same column in workspace
% Your vectecor v = [1 2 3 1 2]; % Simply add 1 to your vector v_plus_one = v + 1; v_plus_one = 2 3 4 ...
modify all numbers from same column in workspace
% Your vectecor v = [1 2 3 1 2]; % Simply add 1 to your vector v_plus_one = v + 1; v_plus_one = 2 3 4 ...
대략 4년 전 | 0
| 수락됨
답변 있음
Warning: Matrix is singular to working precision.
The operator to inverse a matrix is inv. If you want to divide your matrices element wise, you have to add a "." in front of "...
Warning: Matrix is singular to working precision.
The operator to inverse a matrix is inv. If you want to divide your matrices element wise, you have to add a "." in front of "...
대략 4년 전 | 0
| 수락됨
답변 있음
How to convert MATLAB plots to xls (Excel) sheets ?
You can access data of a plot with the line handle. For instance : % Current figure handle (or use openfig if you saved the fig...
How to convert MATLAB plots to xls (Excel) sheets ?
You can access data of a plot with the line handle. For instance : % Current figure handle (or use openfig if you saved the fig...
4년 초과 전 | 0
| 수락됨
답변 있음
What does M([1:1 2:3], [1:0 2:3]) mean?
This select = M([1:1 2:3], [1:0 2:3]) is awfully written, it means select = M(1:3, [2 3]) select is the lines 1 to 3 ...
What does M([1:1 2:3], [1:0 2:3]) mean?
This select = M([1:1 2:3], [1:0 2:3]) is awfully written, it means select = M(1:3, [2 3]) select is the lines 1 to 3 ...
4년 초과 전 | 0
| 수락됨
답변 있음
App Designer UITable RowName
You are doing it right using appdesigner. Programatically, row name can take several format (cell-str, matrix, categorical...), ...
App Designer UITable RowName
You are doing it right using appdesigner. Programatically, row name can take several format (cell-str, matrix, categorical...), ...
4년 초과 전 | 0
답변 있음
How to Disable Button in Dialog Box
You cannot disable a button using questdlg function. The only thing you can do is to remove the option. If you do want a grayed...
How to Disable Button in Dialog Box
You cannot disable a button using questdlg function. The only thing you can do is to remove the option. If you do want a grayed...
4년 초과 전 | 0
| 수락됨
답변 있음
How to avoid patch color being included in legend ?
You need to explicit legend and object handle for each line / patch when calling legend function hY = plot(x,y,'r'); hold on ...
How to avoid patch color being included in legend ?
You need to explicit legend and object handle for each line / patch when calling legend function hY = plot(x,y,'r'); hold on ...
4년 초과 전 | 0
답변 있음
lines through markers on legend
You specified '--' option for your line style in 3rd argument of plot. If you want full lines, use '-' instead. x=-10:0.1:10; ...
lines through markers on legend
You specified '--' option for your line style in 3rd argument of plot. If you want full lines, use '-' instead. x=-10:0.1:10; ...
4년 초과 전 | 1
답변 있음
Concatenation of 3D Matrices
This should do the trick r = 2; %'update rate' n = 644; %total number of entries A = rand(3,3,n); %creating 3x3x644 3D-matrix...
Concatenation of 3D Matrices
This should do the trick r = 2; %'update rate' n = 644; %total number of entries A = rand(3,3,n); %creating 3x3x644 3D-matrix...
4년 초과 전 | 1
| 수락됨
답변 있음
How to plot multiple lines in predefined colors ?
CM = jet(2); x = linspace(1,10,10); y1 = x.^2; y2 =x.^3; plot(x, y1, 'Color', CM(1,:)); hold on plot(x, y2, 'Color', CM(2...
How to plot multiple lines in predefined colors ?
CM = jet(2); x = linspace(1,10,10); y1 = x.^2; y2 =x.^3; plot(x, y1, 'Color', CM(1,:)); hold on plot(x, y2, 'Color', CM(2...
4년 초과 전 | 1
답변 있음
How to open multiple figures and combine them into a new figure
According to your figures, I came with that : % Get figure handles to merge hFig_1 = openfig(fullfile(pwd, 'figure_1.fig')); ...
How to open multiple figures and combine them into a new figure
According to your figures, I came with that : % Get figure handles to merge hFig_1 = openfig(fullfile(pwd, 'figure_1.fig')); ...
4년 초과 전 | 1
답변 있음
Use sprintf in callback function to get an output variable
function countclicks(gcbo,eventdata,handles) strSelectionType = get(gcf,'SelectionType'); XY = get(gca,'CurrentPoint')...
Use sprintf in callback function to get an output variable
function countclicks(gcbo,eventdata,handles) strSelectionType = get(gcf,'SelectionType'); XY = get(gca,'CurrentPoint')...
4년 초과 전 | 0
답변 있음
Error using vertcat. Dimensions of arrays being concatenated are not consistent.
You can merge table with outerjoin function. Table1 = outerjoin(Table1, Table2, 'MergeKeys',true)
Error using vertcat. Dimensions of arrays being concatenated are not consistent.
You can merge table with outerjoin function. Table1 = outerjoin(Table1, Table2, 'MergeKeys',true)
4년 초과 전 | 0
| 수락됨
답변 있음
How can I assign strings from array to variable name from another array with same size?
You forgot the quote in your right side assignement Matrix_parameter_string = ["calbelength","cablecrosssection","fuseboxname"]...
How can I assign strings from array to variable name from another array with same size?
You forgot the quote in your right side assignement Matrix_parameter_string = ["calbelength","cablecrosssection","fuseboxname"]...
4년 초과 전 | 0
| 수락됨
답변 있음
How to load files(xls, xlsx, etc.) in the current directory to the workspace
load() function is for MAT file or ASCII file; For Excel workbook, you can use readcell, readtable or readmatrix according to y...
How to load files(xls, xlsx, etc.) in the current directory to the workspace
load() function is for MAT file or ASCII file; For Excel workbook, you can use readcell, readtable or readmatrix according to y...
4년 초과 전 | 0
| 수락됨
답변 있음
Making a GUI to zoom in on x-axis range
If you are in R2018a+, you can use uidatepicker component for user to chose a date. Then refresh XLim property of your axes in ...
Making a GUI to zoom in on x-axis range
If you are in R2018a+, you can use uidatepicker component for user to chose a date. Then refresh XLim property of your axes in ...
4년 초과 전 | 0
답변 있음
How can one generate a matrix that the first column is larger than the second column?
m = randn(1000, 2); m = [max(m,[],2), min(m,[],2)];
How can one generate a matrix that the first column is larger than the second column?
m = randn(1000, 2); m = [max(m,[],2), min(m,[],2)];
4년 초과 전 | 0
| 수락됨
답변 있음
How to Use arrayfun with a Multivariate Function of n Variables?
arrayfun is generally not faste than a for loop, becaut it has an internal for loop. read this for more details : https://fr.mat...
How to Use arrayfun with a Multivariate Function of n Variables?
arrayfun is generally not faste than a for loop, becaut it has an internal for loop. read this for more details : https://fr.mat...
4년 초과 전 | 1
답변 있음
How to store the output of a function?
You can modify the function to output Pn function [AnDarksamtest, Pn] = AnDarksamtest(X,alpha) The function itself is well-doc...
How to store the output of a function?
You can modify the function to output Pn function [AnDarksamtest, Pn] = AnDarksamtest(X,alpha) The function itself is well-doc...
4년 초과 전 | 1
| 수락됨
답변 있음
Plot function in app designer error "Not enough input arguments."
x and y are structures, you need to select the correct field. For instance : plot(app.UIAXes, x.freq_MHZ, i.iLdB)
Plot function in app designer error "Not enough input arguments."
x and y are structures, you need to select the correct field. For instance : plot(app.UIAXes, x.freq_MHZ, i.iLdB)
4년 초과 전 | 0
| 수락됨
답변 있음
Can I put different figures in the same window next to each other?
You can use subplot to create axes in tiled positions. % Example from documentation subplot(2,1,1); x = linspace(0,10); y1 =...
Can I put different figures in the same window next to each other?
You can use subplot to create axes in tiled positions. % Example from documentation subplot(2,1,1); x = linspace(0,10); y1 =...
4년 초과 전 | 1
| 수락됨
답변 있음
Best way to present histogram with different realisation number
You can normalize directly with histogram function by changing Normalization property. h1 = histogram(x1, 'Normalization', 'pro...
Best way to present histogram with different realisation number
You can normalize directly with histogram function by changing Normalization property. h1 = histogram(x1, 'Normalization', 'pro...
4년 초과 전 | 0
| 수락됨
답변 있음
code for verifying whether 𝑓 is odd or even.
% Test if myVal is even bIsEven = ~mod(myVal, 2) And you can read mod and rem
code for verifying whether 𝑓 is odd or even.
% Test if myVal is even bIsEven = ~mod(myVal, 2) And you can read mod and rem
4년 초과 전 | 0