Beantwortet
Color quadrant of ellipse
To generate something like the plot shared in your comment, you can plot with specified colors and markers: a = 2; b = 1; c =...

mehr als 2 Jahre vor | 1

| akzeptiert

Beantwortet
Color quadrant of ellipse
Use patch. Example: a = 2; b = 1; c = [0 0]; Npts = 101; % must have mod(Npts,4)==1 for this to work right t = linspace(...

mehr als 2 Jahre vor | 0

Beantwortet
Need help with fprintf within a loop.
for i=2:216 n_b=o_b+(o_b*0.005)+m_c; fprintf("Month %d = $%.2f \n", i, n_b); end

mehr als 2 Jahre vor | 1

| akzeptiert

Beantwortet
question related with 8-PSK modulation
With M = 8, you have log2(M) == 3 bits per symbol. Later you generate 1000 bits, but this is not an integer number of symbols at...

mehr als 2 Jahre vor | 1

| akzeptiert

Beantwortet
findobj not working with UIAxis
The 'Type' and the class of something are two different things. The value of the uiaxes 'Type' property is 'axes', so axesInT...

mehr als 2 Jahre vor | 0

Beantwortet
Why is matlab printing all number of digit.
"why [is] matlab displaying all the number of digits on the y axis[?]" Because the range of the y-limits is very small, about 3...

mehr als 2 Jahre vor | 0

Beantwortet
How to ignore special characters and retrieve the data prior to the character
The following code replaces any * or # characters in a text file with spaces (note that this replaces the existing file with a n...

mehr als 2 Jahre vor | 0

| akzeptiert

Beantwortet
Does this plot look right?
It is ok. You can see more clearly that the signal has content only at 1Hz by using a stem plot: % Define the time vector Fs =...

mehr als 2 Jahre vor | 0

Beantwortet
How to do this below?
One way: a = [0 0 1 1 1 0 0 1 1 1 1 0 0 0] b = zeros(1,numel(a)); s_idx = strfind([0 a],[0 1]); e_idx = strfind([a 0],[1 0...

mehr als 2 Jahre vor | 0

| akzeptiert

Beantwortet
How to use freqz to plot the frequency response from neg frequency to pos frequency
Here's one way: f_sampling = 40e3; % sampling frquency f_pass = 10e3; % pass-band frequency f_stop = 15e3; % stop-band freque...

mehr als 2 Jahre vor | 0

Beantwortet
Fill the graph with legend
num_simulations = 1000; %Common parameters Discount_Rate_min = 0.06; % assume 6-8% Discount_Rate_max = 0.08; Discoun...

mehr als 2 Jahre vor | 0

Beantwortet
how to set a range of a scatterplot in matlab app designer?
scatter(app.UIAxes, X, Y, 'filled') app.UIAxes.YLim = [0 500];

mehr als 2 Jahre vor | 0

Beantwortet
plot area between 2 curves, not working
There is a NaN in each of curve1 and curve2. NaNs make patches unrenderable, so you need to remove the NaNs or replace them with...

mehr als 2 Jahre vor | 0

Beantwortet
getting error unrecognized method property or field
The code says L_Active = app.RelativeLigandConcentrationActivetoEC50EditField.Value; but that component is called ...

mehr als 2 Jahre vor | 0

| akzeptiert

Beantwortet
Excel to timetable, problem with datetime
Change the InputFormat to "''dd-MMM-yyyy''" to match what's in the files. unzip('Excel Data.zip') sheetnames = {'189x', '190...

mehr als 2 Jahre vor | 0

Beantwortet
Trying to set up a matrix, getting error message
Check the size of Matrix. You may be able to use a different function to read your file, e.g., readmatrix instead of fopen/fsca...

mehr als 2 Jahre vor | 0

| akzeptiert

Beantwortet
Variable precision point for fprintf command set by user input
Here's what the documentation for fprintf has to say about this: "When you specify * as the field precision operator, the other...

mehr als 2 Jahre vor | 1

Beantwortet
How can solve this error when using phased.CFAR, please? ("Error using step Expected Idx to be an array with all of the values <= 1)
If you pass to cfar a column vector as the first argument, then it runs without error: clc;clear;clf fs = 500e9; % sampling fr...

mehr als 2 Jahre vor | 0

| akzeptiert

Beantwortet
How to plot an array in 3D?
"I would like to plot it each line on a separate axis number and all lines on the z-axis, like a 3D plot, but based on this 2D a...

mehr als 2 Jahre vor | 0

Beantwortet
How do I put a variable input inside a char vector?
CarNumber = input('Please enter the car number: '); fprintf('Car number %d is driving the fastest\n', CarNumber);

mehr als 2 Jahre vor | 0

| akzeptiert

Beantwortet
surface and plot3 linking edges that should not be linked on the plot
SystemLearning = readtable('SystemLearning.csv','VariableNamingRule','preserve'); x = SystemLearning{:,1}; y = SystemLearnin...

mehr als 2 Jahre vor | 0

| akzeptiert

Beantwortet
area between a curve and a linear function
y_downwards_limit = linspace(gerade_punkt2(1),gerade_punkt2(2),numel(Temparea)).'; area_between_curves = trapz(Temparea, DSCa...

mehr als 2 Jahre vor | 1

Beantwortet
confirm valid file identifier before flcose?
try fclose(fid); catch % file already closed, do nothing end

mehr als 2 Jahre vor | 0

Beantwortet
How to get graphics array content App Designed
strcmp(get(ParentPanel.Children,'Type'),'uipanel')

mehr als 2 Jahre vor | 0

| akzeptiert

Beantwortet
error in creating function
plot(x,hw2_part1d(x),'k-');grid;hold on % ^^^ call the function with x as input

mehr als 2 Jahre vor | 0

| akzeptiert

Beantwortet
transition probability matrix and for loop
transMatRD = cell(5); % 5x5 cell array for i=1:25 transMatRD{i} = transprob(...) end

mehr als 2 Jahre vor | 0

| akzeptiert

Beantwortet
Push Buttons are not working properly when more than two axes are added to the created app in app designer.
@Muhammad Sagheer: I think I see the problem you are talking about now: after 40 or so iterations, if you click pause, the code ...

mehr als 2 Jahre vor | 0

Beantwortet
How to scatter in a grid ?
https://www.mathworks.com/help/matlab/ref/histcounts2.html

mehr als 2 Jahre vor | 1

| akzeptiert

Beantwortet
How to select non-string variables convertvars( ) argument?
c = {1,2,3;'a','b','c'; "d", "e", "f"}' t = cell2table(c) convertvars(t, @(x)~isstring(x), 'string')

mehr als 2 Jahre vor | 1

| akzeptiert

Beantwortet
Turning string into a variable name for a function to use
I understand that f2load(ci) is a string, and you want to refer to the table variable whose name is that string. One way to do ...

mehr als 2 Jahre vor | 0

| akzeptiert

Mehr laden