Respondida
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...

más de 4 años hace | 0

| aceptada

Respondida
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...

más de 4 años hace | 0

Respondida
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...

más de 4 años hace | 0

Respondida
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...

más de 4 años hace | 0

Respondida
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()...

más de 4 años hace | 0

Respondida
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 ...

más de 4 años hace | 0

| aceptada

Respondida
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...

más de 4 años hace | 0

Respondida
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...

más de 4 años hace | 0

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

más de 4 años hace | 0

Respondida
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...

más de 4 años hace | 0

Respondida
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. ...

más de 4 años hace | 0

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

más de 4 años hace | 0

Respondida
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...

más de 4 años hace | 0

Respondida
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...

más de 4 años hace | 0

Respondida
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...

más de 4 años hace | 0

| aceptada

Respondida
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...

más de 4 años hace | 0

Respondida
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, ...

más de 4 años hace | 0

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

más de 4 años hace | 0

Respondida
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...

más de 4 años hace | 0

Respondida
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; ...

más de 4 años hace | 0

| aceptada

Respondida
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;...

más de 4 años hace | 0

Respondida
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...

más de 4 años hace | 0

Respondida
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...

más de 4 años hace | 0

Respondida
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...

más de 4 años hace | 0

Respondida
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...

más de 4 años hace | 0

| aceptada

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

más de 4 años hace | 0

Respondida
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; ...

más de 4 años hace | 0

Respondida
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...

más de 4 años hace | 0

| aceptada

Respondida
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...

más de 4 años hace | 0

Respondida
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...

casi 5 años hace | 0

Cargar más