Answered
How to plot transcendental equation?
Here is how it can be solved and plotted: clc clearvars close all nf= 1.3; ns=1.5; nc=1; rho=1; hf=1.5; lambda = 100:35...

4 years ago | 0

| accepted

Answered
How to copy variable titles from one table and copy them in another table
You should employ renamevars(), e.g.: clearvars; clc T = table([3; 4; 2; 1; -1;]); T.A = {'C1'; 'D1'; 'E1'; 'F1'; 'H1'}; T.B...

4 years ago | 0

Answered
Convert tablet to matrix
You can consider to convert it into cell array and matrix arrays, e.g.: CLS = table2array(T(:,1)) % Cell Array HRS = table2...

4 years ago | 0

Answered
Phase angle calculation confusion
Note that the phase shift and phase angle are NOT the same thing. Above, you are computing the phase shift (pa) that is not a Ph...

4 years ago | 0

Answered
Creating image from cell array of states and years
Your data array type is not quite clear from your provided snapshot. If your data is as shown in the snapshot and then imagesc()...

4 years ago | 0

Answered
how can i automatically save the image after every shot ?
Here is the completed part of the code: ... global Snapshot; % Edited/corrected part for image collection for ii = 1:10 ...

4 years ago | 0

| accepted

Answered
Creating image from cell array of states and years
The error is originated from your data X that does not present appropriate data format for imagesc(). Could you pl., upload your...

4 years ago | 0

Answered
Fit curve to a model problem
There are a couple of other fit model fcns of the toolbox that can be employed with your exercise. They are nlinfit() and nlinto...

4 years ago | 0

Answered
how can i automatically save the image after every shot ?
... % Edit this part for ii = 1:10 imgName = [MyFolder, '\ImageReal_', num2str(ii), '.jpg'] end

4 years ago | 0

Answered
Loop script, changes colours and save each image as jpeg
Is this what you want to achieve: r=1:50; for ii=1:numel(r) Tree(r(ii)) end function Tree(r) figure('Position',[50,5...

4 years ago | 0

Answered
The fminsearch is not working for my matlab but it is for others, is there something wrong with my settings and how can I change it?
You may have another function file called FindError with different number of input args that might be overshaddowing this on. ...

4 years ago | 0

Answered
i have to get combine correct figure
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % EXAMPLE 3-3: Calculating the Voltage Losses for a Polarization Curve % UnitSystem SI %%%...

4 years ago | 0

Answered
Why does solving the heat equation with MATLAB (pdepe) yield a completely different result than the Heisler chart (analytical solution)?
In fact, in your matlab code solution, you have obtained the solution in the two corners T = 27.019 C (about) that is approx equ...

4 years ago | 0

Answered
i have to get combine correct figure
Here is how you can attain all three plots in one fig.: ... plot(i,V_out,'b-o', i, V_act, 'r-d', i, V_ohmic, 'g--s') disp(V...

4 years ago | 0

Answered
Fourier series plot as sums of sines and cosines
This can be done in a few different ways, such as vectorization, [for .. end] and [while .. end] loops. E.g.: clc; clearvars; c...

4 years ago | 0

| accepted

Answered
How to measure the size of the red blots in the image?
In your exercise, starting with the image pixel values impixel() and employining logical indexing would be a good solution. Then...

4 years ago | 0

Answered
Retreiving equations from a matrix
Here is the corrected code: clearvars syms T22 T32 T33 T23 %% Note how your equations are set up B =[50, ...

4 years ago | 0

Answered
Conversion to struct from double is not possible.
Use elementwise operation: ... xp=xp+xmin.*d(i,:); % Elementwise end

4 years ago | 0

Answered
Conversion to struct from double is not possible.
The error is coming from your problem exercise fcn @funkcja1. That would be helpful to see funkcja1 to give you proper hints h...

4 years ago | 0

Answered
How to remove background color from an image?
D = imread('https://www.mathworks.com/matlabcentral/answers/uploaded_files/784688/image.png'); subplot(211) imshow(D) I = D; ...

4 years ago | 0

| accepted

Answered
How to implement iterations of varying numbers?
You can use sum(sum()) OR You may consider usig [while .. end] loop for sum calculations, e.g: H = 0 N = numel(xi); jj=1;...

4 years ago | 0

Answered
Can we interpolate some data using neural netwroks in matlab?
Yes, it is plausible to perform interpolation using neural networks in matlab using fitnet() function. You can learn how to empl...

4 years ago | 0

Answered
Remove unwanted frequencies from an audio signal
You need to compute a signle sided FFT. Here is how it can be done.: [S,Fs] = audioread('speach.m4a'); % load audio file L = l...

4 years ago | 0

Answered
Input struct in function
data.fluid.rho = 890; data.accumulator.V_N2 = 10e-3; data.accumulator.P_N2 = 2.5e6; data.accumulator.p0 = 21e6; data.accum...

4 years ago | 0

Answered
Phase portraits of differential equations
Step 1. Take a derivative of your function 1 (F1) and 2 (F2) and save them dF1 and dF2. You can use syms x and diff() here. Ste...

4 years ago | 0

| accepted

Answered
65,000 x 306 xlsx import problem
Use readmatrix() or readtable() which are efficient and fast.

4 years ago | 0

Answered
How to remove background color from an image?
D = imread('https://www.mathworks.com/matlabcentral/answers/uploaded_files/784688/image.png'); subplot(211) imshow(D) I = D; ...

4 years ago | 0

Answered
DFT takes too long to run
First of all it looks like that the heavy calc burden is occuring within [for .. end] loop. Therefore, a(n) and b(n) should be c...

4 years ago | 0

| accepted

Answered
How to plot a tangent line between two lines
Here is how it can be done with a relatively simple polyfit() and polyval() fcns along with syms and diff(): % Required Data G...

4 years ago | 0

Answered
Help me to run the code
Some of the assigned variables don't get their values from the second [if .. end] and [for end] operations, e.g.: pvt_row Thus...

4 years ago | 0

Load more