Beantwortet
Using the piecewise function and integration function with fplot
syms t %set up capacitor graph V1 = (1/0.3e-9)*int(t*(5000/3),t); %Plot 0<t<3 V2 = (1/0.3e-9)*int(5e-3,t); %Plot 3<t<6 V3 = ...

mehr als 2 Jahre vor | 0

Beantwortet
How do I set slider step value in Matlab?
SliderStep = 0.04 gives you 26 steps because the change in the slider's value from one click is (Max-Min)*SliderStep = (12-(-12...

mehr als 2 Jahre vor | 2

| akzeptiert

Beantwortet
¿Como puedo resaltar la o las filas de una tabla en guide?
For a uitable in a figure (e.g., as created in GUIDE), in order to highlight certain rows, you can set the BackgroundColor prope...

mehr als 2 Jahre vor | 0

| akzeptiert

Beantwortet
remove the white space on table
Adjust the ColumnWidth and/or width (i.e., Position(3)) of the uitable. The sum of the column widths should be about 16 pixels l...

mehr als 2 Jahre vor | 0

| akzeptiert

Beantwortet
How can I get multiple values from a formula where the inputs are based on an array?
The problem is that MMES is a row vector, so SigmaFOS = max(MMES) is a scalar. See below for changes necessary to make SigmaFOS ...

mehr als 2 Jahre vor | 0

| akzeptiert

Beantwortet
annotation with both "doublearrow" and "textblock", with same data units
% From: Jorg Woehl in "Specify annotation position with respect to x- and y-axes values?" hf = figure; x = 0:180; f = @(x) 0.0...

mehr als 2 Jahre vor | 2

Beantwortet
using fprintf for matrix csv file
fid = fopen('Results.csv','wt'); ncol = 16; format_str = [repmat('%12.6f,',1,ncol) '\n']; for k = 1:100 A = (some equati...

mehr als 2 Jahre vor | 0

Beantwortet
using fprintf with scientific notation
x = 101325; y = 33.814; fprintf('%+.5E',x) fprintf('%+.6e',y)

mehr als 2 Jahre vor | 0

Beantwortet
Help using fprintf function
fprintf('%4d\t%6.4f\t%6.4f\t%6.4f\t%8.6f\t%8.6f\n',iter,xl,xu,xr,ea,es)

mehr als 2 Jahre vor | 1

| akzeptiert

Beantwortet
What is "peaks" in tutorialApp?
peaks is a built-in function: <https://www.mathworks.com/help/matlab/ref/peaks.html>

mehr als 2 Jahre vor | 0

Beantwortet
keep showing error at line 21 and the plot for CDF of capacity not appering?
There were several problems with the code. Compare the code below with yours to see the differences, and verify that my changes ...

mehr als 2 Jahre vor | 1

| akzeptiert

Beantwortet
Replace strings with a different string and save the data
I assume that you want to replace the C's with the specified elements (e.g., Fe, Al, Ni) at random according to the specified pr...

mehr als 2 Jahre vor | 0

Beantwortet
Record n values and once finished start replacing the oldest values with new ones
last10 = [0.99,0.99,1.01,1.00,1.02,0.99,0.99,1.05,1.08,1.10] new_value = 1.07; last10 = [last10(2:end) new_value]

mehr als 2 Jahre vor | 0

Beantwortet
Get Array Number when value changes - Code does not work
Three things work differently when you have numbers vs when you have character vectors: 1.) You cannot unique() a cell array of...

mehr als 2 Jahre vor | 0

Beantwortet
How can I change the state of multiple CheckBoxes in App designer?
I'll assume that the description, "tags like "app.CheckBox_X_Y", where X can have values from 1 to 50 and Y can have values from...

mehr als 2 Jahre vor | 1

| akzeptiert

Beantwortet
Drag and Drop Custom Blocks on UIAxes in MATLAB
"What I want is to make these movable. Or maybe to pick and drop from a sidebar? Is it possible to do so that I can place obstac...

mehr als 2 Jahre vor | 0

Beantwortet
How to delete file if if have contain wrong value
inputfolder = 'K:\Geonet data_2011\indata'; outputfolder = 'K:\Geonet data_2011\outdata'; numfiles = 1243; for k = 1:numfil...

mehr als 2 Jahre vor | 0

Beantwortet
How can I rearrange the order of elements in a string given a matrix with positions?
v = ["e1","e5","e7","e3"]; % these two lines replace your existing loop: Order = compose("e%d",1:16); [~,Positions] = ismem...

mehr als 2 Jahre vor | 0

Beantwortet
how do I concatenate mat files matlab
N = 200; % number of files (assumed to be named datafile_01.mat, _02.mat, ..., _10.mat, ..., _99.mat, _100.mat, ..., as you have...

mehr als 2 Jahre vor | 0

| akzeptiert

Beantwortet
Kronocker product of iteration sequence
A=[1 0 0;1 1 0;0 1 0]; I=[1 0;0 1]; F2=[2 1;1 2]; Instead of using numbered variables R1, R2, R3, use a cell array: [N1,N2] ...

mehr als 2 Jahre vor | 1

| akzeptiert

Beantwortet
How can I add title to plots before the loop
figure for i=1:10 ax1 = subplot(2,1,1) title(ax1,sprintf('%d',i)) ax2 = subplot(2,1,2); xlabel(...

mehr als 2 Jahre vor | 0

Beantwortet
remove zero padding for binary vector and string
case 1 a=[1 0 0 1 0 1 1 1 1 1 0 0 1 0 1 0 0 1 0 0 0 0 0 1 1 1 1 1 1 0 1 0 1 0 1 0 1 0 1 0 0 0 1 1 1 0 0 0 0 0 0 0 0]; d=[1 0 1...

mehr als 2 Jahre vor | 0

Beantwortet
error when copying contents of uitable
Use curly braces to access the contents of a cell array. s = {1 2 3; 4 5 6}; cname={'col1','col2','col3'}; size_s = size(s)...

mehr als 2 Jahre vor | 0

Beantwortet
3D plotting of boxes using coordinates in CSV file
solutionData = [ ... 4 0 0 0 0 15 0 0 0 20 0 15 20 25 0 0 25 15 0 25 0 20 25 15 20; ... 2 25 0 0 25 18 0 25 0 12 25 18...

mehr als 2 Jahre vor | 0

| akzeptiert

Beantwortet
Can anyone elaborate About MATLAB?
https://www.mathworks.com/products/matlab.html https://www.mathworks.com/products/matlab/programming-with-matlab.html https://...

mehr als 2 Jahre vor | 0

Beantwortet
create cell from array with specified size
mymatrix = (1:24).' specified_size = 4; assert(mod(numel(mymatrix),specified_size)==0, ... 'numel(mymatrix) is not a mu...

mehr als 2 Jahre vor | 0

Beantwortet
plot(fit, 'Style', 'Contour') resolution when using larger grids?
You can specify XLim and YLim in the plot() call, and doing that gives you the higher resolution contour. The problem then is th...

mehr als 2 Jahre vor | 1

| akzeptiert

Beantwortet
how to use arrayfun
TradeF = Eq.data(r1);

mehr als 2 Jahre vor | 0

| akzeptiert

Beantwortet
how to display a grayscale image in a monochrome color (other than white)
Like this? imagedata = randi([0,65535],512,512,'int16'); % random 512-by-512 int16 matrix figure; imshow(imagedata,[]) cm...

mehr als 2 Jahre vor | 2

Beantwortet
How to replace elements of one dimension of an n-D matrix based on values in the same dimension of another n-D matrix of equal dimensions?
Here are a few alternatives: 1: One-liner using linear indexing in x: x(floor((find(y(:,1,:)==1)-1)/size(y,1))*prod(size(y,[1 ...

mehr als 2 Jahre vor | 0

| akzeptiert

Mehr laden