Answered

generating Sine wave in Graph

You have 5 data points and you ve to interpolate the data between them see interp1 (focus on methods) For plotting in blue cro...

generating Sine wave in Graph

You have 5 data points and you ve to interpolate the data between them see interp1 (focus on methods) For plotting in blue cro...

3 mois ago | 0

Answered

Superheterodyne Receiver Using RF Budget Analyzer App

The paper implemented in example is https://ieeexplore.ieee.org/document/5688819 see Table II of paper (you can also view it ...

Superheterodyne Receiver Using RF Budget Analyzer App

The paper implemented in example is https://ieeexplore.ieee.org/document/5688819 see Table II of paper (you can also view it ...

3 mois ago | 0

Answered

Warning: Matrix is singular, close to singular or badly scaled. Results may be inaccurate. RCOND = NaN.

Y=gamma(X) Y = Inf Inf Inf Inf 9.33262154439440e+155 Inf Inf Inf Inf Inf Inf Inf Inf Inf Inf Inf Inf 3.80892263763056e+26...

Warning: Matrix is singular, close to singular or badly scaled. Results may be inaccurate. RCOND = NaN.

Y=gamma(X) Y = Inf Inf Inf Inf 9.33262154439440e+155 Inf Inf Inf Inf Inf Inf Inf Inf Inf Inf Inf Inf 3.80892263763056e+26...

3 mois ago | 1

Answered

App Designer Edit Numeric how to express test

it is because app.Obj is empty. it has no value. First check what is app.Obj? maybe what you are trying to do is app.d=app.d(a...

App Designer Edit Numeric how to express test

it is because app.Obj is empty. it has no value. First check what is app.Obj? maybe what you are trying to do is app.d=app.d(a...

3 mois ago | 1

Answered

how do I add colours on mesh?

Currently i changed EdgeColor for every iteration by setting it to rand rgb values. you can create an array equal to length of s...

how do I add colours on mesh?

Currently i changed EdgeColor for every iteration by setting it to rand rgb values. you can create an array equal to length of s...

3 mois ago | 0

| accepted

Answered

hold on does not work

ax = axes(); creates new axes on current figure. so call it once hold(ax) will hold on or hold off the axes. when you call it...

hold on does not work

ax = axes(); creates new axes on current figure. so call it once hold(ax) will hold on or hold off the axes. when you call it...

3 mois ago | 0

| accepted

Answered

How can I change data directly from the plot ?

There are two axes in your figure (two subplots) and each axes contains three line access the gcf f = gcf; Now to see how man...

How can I change data directly from the plot ?

There are two axes in your figure (two subplots) and each axes contains three line access the gcf f = gcf; Now to see how man...

3 mois ago | 0

| accepted

Answered

Summation of specific range of 2d array

I donot understand what you are trying to do in the code. There are much simpler ways to do it. By looking in your code i think...

Summation of specific range of 2d array

I donot understand what you are trying to do in the code. There are much simpler ways to do it. By looking in your code i think...

3 mois ago | 0

| accepted

Answered

How to list supported font styles?

https://www.mathworks.com/help/matlab/ref/listfonts.html

How to list supported font styles?

https://www.mathworks.com/help/matlab/ref/listfonts.html

3 mois ago | 1

| accepted

Answered

Storing unique hour and minute values

clc; clear; data = readtable('A_minute.xlsx'); % step 2: store date and time data as a datenum (DaT) and then convert to ...

Storing unique hour and minute values

clc; clear; data = readtable('A_minute.xlsx'); % step 2: store date and time data as a datenum (DaT) and then convert to ...

3 mois ago | 0

| accepted

Answered

How to import text file in GUI and link it with another .m program

https://www.mathworks.com/help/matlab/ref/fscanf.html you have the filename and pathname, build full file name from parts ful...

How to import text file in GUI and link it with another .m program

https://www.mathworks.com/help/matlab/ref/fscanf.html you have the filename and pathname, build full file name from parts ful...

3 mois ago | 0

| accepted

Answered

put each column of a matrix into different cells

Use num2cell. it is easy a = [1 2 3 4; 123 4 5 6; 52 5 4 7; 2 5 8 7]; b = num2cell(a,1) b = 1×4 cell array {4×1 doubl...

put each column of a matrix into different cells

Use num2cell. it is easy a = [1 2 3 4; 123 4 5 6; 52 5 4 7; 2 5 8 7]; b = num2cell(a,1) b = 1×4 cell array {4×1 doubl...

3 mois ago | 0

| accepted

Answered

I have three different images and I want to take a small cross-section from all the three and then plot it on the same graph in order to make a comparison. Can anyone help me?

im1 = imresize(imread('cameraman.tif'),[600 600]); figure,imshow(im1),axis on im1_seg = im1(:,330:353); figure,imshow(im1_seg...

I have three different images and I want to take a small cross-section from all the three and then plot it on the same graph in order to make a comparison. Can anyone help me?

im1 = imresize(imread('cameraman.tif'),[600 600]); figure,imshow(im1),axis on im1_seg = im1(:,330:353); figure,imshow(im1_seg...

3 mois ago | 0

Answered

Saving Multiple Values in a single time step in Simulink.

store all the values you have in for loop in an array and save that array using to workspace block see the example project

Saving Multiple Values in a single time step in Simulink.

store all the values you have in for loop in an array and save that array using to workspace block see the example project

3 mois ago | 0

| accepted

Answered

Updating the histogram in a correlation matrix after creating the matrix plot

[r,p,h] = corrplot(Mat_All_1_4_5, 'varNames', VariableNames);% change here pass handle output h contains handles to plotted gra...

Updating the histogram in a correlation matrix after creating the matrix plot

[r,p,h] = corrplot(Mat_All_1_4_5, 'varNames', VariableNames);% change here pass handle output h contains handles to plotted gra...

3 mois ago | 0

| accepted

Answered

How to join two points, on a 'map', created with the command 'ginput'?

one way to do that is using line and then getting the frame harta = imread('harta.jpg'); imshow(harta) [xA,yA]=ginput(1); [x...

How to join two points, on a 'map', created with the command 'ginput'?

one way to do that is using line and then getting the frame harta = imread('harta.jpg'); imshow(harta) [xA,yA]=ginput(1); [x...

3 mois ago | 1

| accepted

Answered

Plot some part of a correlation matrix

Access all objects with tag 'PlotMatrixScatterAx' using findobj ax = findobj(fh,'Tag','PlotMatrixScatterAx'); Run for loop for...

Plot some part of a correlation matrix

Access all objects with tag 'PlotMatrixScatterAx' using findobj ax = findobj(fh,'Tag','PlotMatrixScatterAx'); Run for loop for...

3 mois ago | 0

| accepted

Answered

how to control the length of indexed array element?

you cannot feed 0 as array index it will give error for loop runs from 0 to length of m which will make it run for 5 iterations...

how to control the length of indexed array element?

you cannot feed 0 as array index it will give error for loop runs from 0 to length of m which will make it run for 5 iterations...

3 mois ago | 0

Answered

How do I change the properties of a series od data in a plot with multiple series of data in it ?

Open the figure f =openfig('W_1e-6_5e-9.fig'); access its axis either by gca or by figure handle f axes = gca; Axes has thre...

How do I change the properties of a series od data in a plot with multiple series of data in it ?

Open the figure f =openfig('W_1e-6_5e-9.fig'); access its axis either by gca or by figure handle f axes = gca; Axes has thre...

3 mois ago | 0

| accepted

Answered

Uitable rowname with special characters - inputdlg

https://stackoverflow.com/questions/41632071/tex-interpreter-in-matlab-uitable https://ch.mathworks.com/matlabcentral/fileexcha...

Uitable rowname with special characters - inputdlg

https://stackoverflow.com/questions/41632071/tex-interpreter-in-matlab-uitable https://ch.mathworks.com/matlabcentral/fileexcha...

3 mois ago | 0

| accepted

Answered

Read *.mat files inside a zip file without extracting(/unzipping) the zip file

https://ch.mathworks.com/matlabcentral/answers/10945-read-files-in-zip-file-without-unzipping#answer_15061 https://ch.mathworks...

Read *.mat files inside a zip file without extracting(/unzipping) the zip file

https://ch.mathworks.com/matlabcentral/answers/10945-read-files-in-zip-file-without-unzipping#answer_15061 https://ch.mathworks...

3 mois ago | 1

| accepted

Answered

Adding a new value to an array within a loop

because you are passing m to t1_0 and value of m is constant through out the for loop. The index of your for loop is i in this c...

Adding a new value to an array within a loop

because you are passing m to t1_0 and value of m is constant through out the for loop. The index of your for loop is i in this c...

3 mois ago | 1

Answered

Ticks on second y-axis

Either use plotyy or yyaxis I am demonstrating how to do it with plotyy z=plotyy(x,y1,x,y2,@bar,@bar); % plot, save axes ...

Ticks on second y-axis

Either use plotyy or yyaxis I am demonstrating how to do it with plotyy z=plotyy(x,y1,x,y2,@bar,@bar); % plot, save axes ...

3 mois ago | 0

| accepted

Answered

Transparency of Image overlay on Google Earth (kmz file)

Use export_fig to save transparent png

Transparency of Image overlay on Google Earth (kmz file)

Use export_fig to save transparent png

3 mois ago | 1

Answered

How to scale values in y-axis to be 1-100%?

clear x = [1, 2, 3, 4, 5, 6, 7, 8, 9]; y = [5, 50, 200, 180, 100, 60, 53, 0, 2]; figure ax = axes; plot(x,y); set(ax, '...

How to scale values in y-axis to be 1-100%?

clear x = [1, 2, 3, 4, 5, 6, 7, 8, 9]; y = [5, 50, 200, 180, 100, 60, 53, 0, 2]; figure ax = axes; plot(x,y); set(ax, '...

3 mois ago | 1

| accepted

Answered

Variable names whch include numerics

I know the most inefficient way to do that. (eval) varNames1 = rand(20,1); varNames2 = rand(20,1); varNames3 = rand(20,1); f...

Variable names whch include numerics

I know the most inefficient way to do that. (eval) varNames1 = rand(20,1); varNames2 = rand(20,1); varNames3 = rand(20,1); f...

3 mois ago | 0

| accepted

Answered

After the FFT(Frequency-Amplitude) of the seismic wave(Time-Acceleration), I want to reconstruct the seismic wave(Time-Acceleration) by IFFT again.

COM=ifft(Y,NFFT)*n;% divide in fft, multiply in ifft figure; COMreal = COM(1:length(Time)); % pick the data equal to actual da...

After the FFT(Frequency-Amplitude) of the seismic wave(Time-Acceleration), I want to reconstruct the seismic wave(Time-Acceleration) by IFFT again.

COM=ifft(Y,NFFT)*n;% divide in fft, multiply in ifft figure; COMreal = COM(1:length(Time)); % pick the data equal to actual da...

3 mois ago | 0

Answered

How to get rid of 3D coordinate system symbol/object from pdegplot output.

b=findobj(gca,'Type','Quiver'); Now b has the property of both Quiver. set there visibilty to off or whatever you want (use set...

How to get rid of 3D coordinate system symbol/object from pdegplot output.

b=findobj(gca,'Type','Quiver'); Now b has the property of both Quiver. set there visibilty to off or whatever you want (use set...

3 mois ago | 1

| accepted

Answered

how can i overcome this error ? why i am getting error like this ?

watershed is some mfile in your code and not a function. You are trying to execute it as a function which is why it is giving er...

how can i overcome this error ? why i am getting error like this ?

watershed is some mfile in your code and not a function. You are trying to execute it as a function which is why it is giving er...

3 mois ago | 0

Answered

i am trying to make a calculator in matlab gui and i add + or - and i want to add int and diff so i write the 5 lines of codes

Anonymous Functions suppose i want to create an anonymous function which subtract two inputs An_fn = @(x,y) x-y; It is equi...

i am trying to make a calculator in matlab gui and i add + or - and i want to add int and diff so i write the 5 lines of codes

Anonymous Functions suppose i want to create an anonymous function which subtract two inputs An_fn = @(x,y) x-y; It is equi...

3 mois ago | 0

| accepted