Answered
How can I receive a particular device signals using USRP?
If you have the cooperation of the device you want to talk to, then see techniques such as those described at https://www.mathwo...

2 years ago | 0

Answered
I am plotting probability plots, but I want different colors for different data. All data are of different size ?
https://www.mathworks.com/help/stats/probplot.html#bu27cw3-1 is an example that shows adding a line to a probplot(), and one of ...

2 years ago | 0

| accepted

Answered
Have fimplicit have the axis in the order of the function handle inputs, even when not every variable is used in the expression.
Your code already plots a horizontal line like you want. my_function = @(x,y) y fimplicit(my_function, '-*')

2 years ago | 0

Answered
To plot 1D temperature distribution plot versus lenght of the channel of the fin
L=0.1; n=10; T0=0; T1s=40; T2s=20; dx=L/n; alpha=0.0001; t_final=60; dt=0.1; x = dx/2:dx:L-dx/2; %important change ...

2 years ago | 0

| accepted

Answered
Solution of symbolic fourth order polynomial equation
You can get the complete symbolic solution... or a placeholder form that in practice is much more convenient. syms lambda A B C...

2 years ago | 0

Answered
How do I write this conditional constraint for an optimization problem in MATLAB? 0 <= x1 <= a*x1 . If a= 0, x1=0 and when a=1 then Matlab must find x1.
Optimize twice, once with x1 forced to 0, and the second time with x1 set to a lower bound of 0 and an upper bound of infinity. ...

2 years ago | 0

Answered
Data type converts from integer to array
Because R is a vector and you have r = floor(2 * R) / 4; which uses the vector R and assigns the result to r m...

2 years ago | 0

| accepted

Answered
Why won't the arrays I make work in the functions I created where I need to find pressure?
D = calc_dome_height(x); That overwrites all of D for every iteration of the for loop, so at the end of the for loop, D is ...

2 years ago | 0

Answered
Use "find" function in "datetime"
T = [datetime(2016,2,18); datetime(2016, 2, 18, 0, 0, 0.1)] id = find(T == '2016-02-18 00:00:00') Both entries display the sam...

2 years ago | 1

| accepted

Answered
What is missing from MATLAB #2 - the next decade edition
I'm sure I mentiond this at some point... but it would be useful if you could substitute a logical index for more than one dimen...

2 years ago | 3

Answered
Using clickableLegend() with Errorbar() for Interactive Data Highlighting and Display
For reasons I do not currently understand, when you use the multi-output version of legend() on an errorbar object, no text labe...

2 years ago | 0

| accepted

Answered
Scatter not showing full precision of data.
format long g whos -file data.mat load('data.mat'); duz = diff(unique(zrate)) ; min(duz) min(zrate), max(zrate) You may ha...

2 years ago | 1

| accepted

Answered
Error in bvp4c code
ya is a scalar. You construct an anonymous function that ignores its parameters and passes ya to a function. Inside the called f...

2 years ago | 0

Answered
Keep getting error about invalid parameter name.
T = table(a, a_t, p, d, 'variablenames', v_n);

2 years ago | 0

Answered
How to add a high-speed test in a self-defined FAST feature detector function?
if intensityD(:,:,1) > threshold high_speed_count(:,:) = high_speed_count(:,:) + 1; end That code is equivalent to if al...

2 years ago | 0

| accepted

Answered
Use sky colormap in old Matlab version
Generation: C = [0, 447/1000, 741/1000]; now for any fraction F between .1 and 1, 1-(1-baseColor)*F subdivide the range .1 t...

2 years ago | 0

Answered
I am trying to have a user input a part of a file name which will open the whole file.
trackfile = "Track P" + tracknum + ".csv"; [fid, msg] = fopen(trackfile, "r"); if fid < 0 error('Could not open file "%s"...

2 years ago | 0

| accepted

Answered
数组索引必须为正整数或逻辑值。
T=100e-6; %脉冲宽度100us B=10e9; %频带宽度1G...

2 years ago | 0

| accepted

Answered
Finding Coefficients for the particular solution
% y'' +3y'+3.25y = 3cos(x)-1.5sin(x) syms y(x) dy = diff(y); d2y = diff(dy); eqn = d2y + 3*dy + 3.25 * y == 3*cos(x) - 1.5*s...

2 years ago | 0

Answered
Operands to the logical AND (&&) and OR (||) operators must be convertible to logical scalar values. Use the ANY or ALL functions to reduce operands to logical scalar values.
[t, y] = ode45(@(t, y) ode_LR(t, y, kf_1, kb_1), timespan, [Receptor_concentration; C_LigandReceptor_0]); The output t will be ...

2 years ago | 0

Answered
Rotate an object based on regionprops Orientation, MinFeret and MaxFeret angles
close all; clear; clc; I = (insertText(zeros(150,150),[0 0],'B','BoxOpacity',0,'FontSize',70,'TextColor...

2 years ago | 0

| accepted

Answered
help correct the error
Nx = 50; % Number of grid points in x-direction Ny = 50; % Number of grid points in y-direction Nz = 50; % Number of grid poin...

2 years ago | 0

Answered
int integral with three parameters
Infinite number of solutions. H = 50; z = H/2; Z = z/H; Pe = 4; syms x y Z_p R_p = ((x^2 + y^2)^0.5)/H; R = (sqrt(R_p +...

2 years ago | 1

| accepted

Answered
Error using () Subscripting into a table...
You are passing a table() object as a parameter to dot() It looks like either stress_vectors or else slip_panes is a table() ob...

2 years ago | 1

| accepted

Answered
Loading in a table that has multiple values in a single cell seperated by a comma
You are trying to use ismember() to compare two tables directly. ismember() only permits that if all of the same variables occur...

2 years ago | 0

Answered
significant figures from h5read() output
str2num(vals(i)) would be a number -- an error if vals(i) is not character vector or string scalar. If it is a character vector ...

2 years ago | 0

| accepted

Answered
i cant find the error in line num 14 ([b, a] = butter(6, normalizedCutoffFreq,'low'); )
You would get an error in the call to butter() (but not in earlier lines) in the case that the frequency of the stored data in t...

2 years ago | 0

Answered
how can Matlab's filter() function generate the output y[n] when the input is given by the plot in the image with input long enough to see all the non-zero values of y[n].
Since no constraints are given on what the output signal should look like, you might as well make the output be exactly the same...

2 years ago | 0

Answered
MEX -setup does not see my compiler
There were very few instances in which a version of MATLAB supported a compiler named with a year later than the release year of...

2 years ago | 0

| accepted

Answered
Unable to perform assignment because the indices on the left side are not compatible with the size of the right side.
clc;clear;format compact; syms V P=[0.98 1.97 4.93 9.86 49.36 98.69]; %atm T=[573 573 573 573 573 573]; %K R=461.5; %Pa*m3/m...

2 years ago | 0

Load more