Respondida
Error using sym/subsindex (line 853)
Hi, Here is the corrected solution: clearvars a = 2; b = 3; c = -9; d = 0; syms t y(t) il1(t) il2(t); y = [il1; il2];...

alrededor de 5 años hace | 1

Respondida
Readmatrix is changing the "size" of the data I am trying to retrieve from an Excel file?
Hi, This is where you have logical indexing that is removing all data points which are less than 0. B1pos = B1ffix(B1ffix > ...

alrededor de 5 años hace | 0

Respondida
D Flip flop using matlab code(not simulink)
Hi, Here is the fixed code: [x,y] = dflipflop(1101101101,1010101010) function [Q1,q1] = dflipflop(d,clk) %dflipflop Su...

alrededor de 5 años hace | 0

Respondida
.m file cannot open
Hi, There might a copuple of different cases of this issue. Easy solution can be to open that file with a notepad and then cop...

alrededor de 5 años hace | 0

Respondida
What is a best practice around directory structures and folders in MATLAB?
MATLAB's default folder is always good that does not get affected with new updates of MATLAB. Moreover, matlab's default folder ...

alrededor de 5 años hace | 0

Respondida
how to use MLSE after for Jafarkhani
Here is a good documentation how to employ MLSE(): https://www.mathworks.com/help/comm/ug/mlse-equalizers.html

alrededor de 5 años hace | 0

Respondida
Can someone help me? - Plotting complex number with index
Hi, Here is the answer to convert imaginary and real numbers from a floating point format into binary: N = 16; % Num...

alrededor de 5 años hace | 0

| aceptada

Respondida
How to code erf(z) summation series?
Hi, Here is the corrected code: clearvars; clc; close all N0 = zeros(1,21); %preallocate array for solutions of 1-erf(z) ...

alrededor de 5 años hace | 0

Respondida
the time cost for the same m-file changed largely
Hi, Have you done any memory allocation for your loop calcs? Have you moved all of plot commands outside of the loop? Plot t...

alrededor de 5 años hace | 1

Respondida
label dots with bits - Can someone help me?
Hi, (1) you need to create binary representation of your plotted points using dec2bin() for labels to display on the plot (2...

alrededor de 5 años hace | 1

Respondida
How to plot 32PSK modulating signal in time domain?
Did you convert binary values to decimal values? To convert binary values into decimal values bin2dec() can be employed.

alrededor de 5 años hace | 0

Respondida
analog image into digital using matlab code
Hi, Based on what you described, your exercise is composed of a few steps. (1) data acqusition using A2D converter (hardwar...

alrededor de 5 años hace | 0

Respondida
How to repeat each elements of matrix irregularly
Hi, This is an easy solution to your exercise. You can adjust it w.r.t your exercise conditions: A =[0.2978 -0.7649 -2.8...

alrededor de 5 años hace | 0

| aceptada

Respondida
Sum function handle in a for loop
Hi, Using symbolics might be an easy solution here: sigma=2; syms x syms b [1 4] syms mu [1 4 ] M =(b(1) .* exp(-(x -...

alrededor de 5 años hace | 0

| aceptada

Respondida
covid data in matlab
Hi, Have you managed to import data into matlab workspace? If not, you can employ: (1) readtable() or (2) xlsread(). The latt...

alrededor de 5 años hace | 0

Respondida
Can someone help me? - Plotting complex number with index
(1) Separate real and imaginary parts using real(), imag() (2) PLot them: Real vs. Imag (3) Convert the separated real and ima...

alrededor de 5 años hace | 1

Respondida
How can i get a RGB values from a illuminance(lux) values ?
Hi Use: hsv2rgb()

alrededor de 5 años hace | 0

Respondida
Sequence of linear sistem
Hi, you can solve this exercise in a relatively simple way: A = .. b = .. x(:,1) = linsolve(A, b); for ii = 2:N x(:,ii) ...

alrededor de 5 años hace | 0

| aceptada

Respondida
Find radius of circle and find curvature from images
Hi, Have you reviewed this help doc of mathworks on circle identification in images? https://www.mathworks.com/help/images/d...

alrededor de 5 años hace | 0

Respondida
find minimum of function with four variables using simplex search method of nelder and mead
Hi, There are some variables undefined in your defined function handle f.

alrededor de 5 años hace | 0

Respondida
Creating a hammer projection
Here is a script to generate hammer projection: https://www.mathworks.com/matlabcentral/fileexchange/45673-sky-map-function

alrededor de 5 años hace | 0

Respondida
What should be the best approch to solve a 2D hyperbolic PDE (i.e. wave equn) in a polar coordnate?
Hi, You can employ del2() and diff() built in fcns of matlab.

alrededor de 5 años hace | 0

Respondida
PV/T MATLAB R2021a Simulation Data Recovery
Hi, Here is a very nice help documentation of mathworks: https://www.mathworks.com/help/physmod/sps/ug/photovoltaic-therma...

alrededor de 5 años hace | 0

Respondida
Plot level curves, at level 1,2,3 and 4, for the surfaces below using contour. Use a meshgrid(-2:0.05:2).
Hi (1) Initiate: x, y using meshgrid() (2) Compute f1(x, y), f2(x, y), f3(x, y) (3) Use subplot(mnp) (4) Use mesh() or sur...

alrededor de 5 años hace | 0

Respondida
How to draw a high-contrast spectrogram?
Hi, Use colormap()

alrededor de 5 años hace | 0

Respondida
For loop using two variables
Hi, Here is the corrected code: xx=zeros(numel(va), nume(na)); for va=1:1500 for na=1:30 xx(va...

alrededor de 5 años hace | 0

Respondida
Why am I getting the error "Array indices must be positive integers or logical values."?
Hi, You have overlooked .* after y: kfinal=(x.*(u.*x-v.*y)-y.*(u.*y+v.*x))./(x.^2+y.^2)+a.^2.*(x.*(u.*x-v.*y)+y.*(u.*y+v.*x)...

alrededor de 5 años hace | 0

| aceptada

Respondida
error finding placement of specific number in a vector
Hi, Your data might be in a floating point format and if that is the case, then you need to be careful with logical indexing....

alrededor de 5 años hace | 0

Respondida
solving coupled system of second order differential equations
Hi, You can employ ode solvers (ode23, ode23tb, ode45, ode113, etc) as suggested or write scripts using function handles or a...

alrededor de 5 años hace | 2

| aceptada

Respondida
how can i insert in plot different values
Hi, Here is a simple solution: Names={'One', 'Two', 'Three', 'Four', 'Five'}; X = randi([0, 13], 5, 15); for N = 1: 5 ...

alrededor de 5 años hace | 0

| aceptada

Cargar más