Respondida

Set up a function corresponding to this graph

Use the square function. The following should get you started: t = linspace(0,3*pi)'; x = square(t); plot(t,x) ylim([-2,2]...

Set up a function corresponding to this graph

Use the square function. The following should get you started: t = linspace(0,3*pi)'; x = square(t); plot(t,x) ylim([-2,2]...

más de 5 años hace | 0

Respondida

How do i graph various conditions in MATLAB

You can give the code below a try or post your own code so we can help you with your train of thought. x = 1:4000; y = zeros(...

How do i graph various conditions in MATLAB

You can give the code below a try or post your own code so we can help you with your train of thought. x = 1:4000; y = zeros(...

más de 5 años hace | 0

Respondida

M-file function

Your function is calling itself without approaching any convergance or something that will allow it to end. Therefore it will ru...

M-file function

Your function is calling itself without approaching any convergance or something that will allow it to end. Therefore it will ru...

casi 6 años hace | 0

| aceptada

Respondida

Read signal Data from Simulink

Use the "From Workspace" block. Doccumentation can be found here.

Read signal Data from Simulink

Use the "From Workspace" block. Doccumentation can be found here.

casi 6 años hace | 0

| aceptada

Respondida

How to remove a percentage of image counting from the bottom to top

Look at the example I wrote for you below. Use the size function and realize that imcrop takes an array in the form of [xPositio...

How to remove a percentage of image counting from the bottom to top

Look at the example I wrote for you below. Use the size function and realize that imcrop takes an array in the form of [xPositio...

casi 6 años hace | 1

| aceptada

Respondida

plot a smith chart

Look at the documentation and syntax located here: smithplot(frequency,data). You will find some examples as well.

plot a smith chart

Look at the documentation and syntax located here: smithplot(frequency,data). You will find some examples as well.

casi 6 años hace | 0

Respondida

can not get values

Your data set and interplation dont line up. The R variable you define is: R = 379 24 1000 ...

can not get values

Your data set and interplation dont line up. The R variable you define is: R = 379 24 1000 ...

casi 6 años hace | 0

Respondida

There is a error in my code. I have attached the equaion and my code. Kindly correct the part where i went wrong.

You never defined a "C" variable. You have C1, C2, etc... but not just "C". Additionally, you need to perform a summation in the...

There is a error in my code. I have attached the equaion and my code. Kindly correct the part where i went wrong.

You never defined a "C" variable. You have C1, C2, etc... but not just "C". Additionally, you need to perform a summation in the...

casi 6 años hace | 0

Respondida

How to draw the Graph of Ns for different values of M?

Try this (change the ii to satisfy whatever range of N you would like to observe): for ii = 0:0.1:1 Entropy(ii) end Wher...

How to draw the Graph of Ns for different values of M?

Try this (change the ii to satisfy whatever range of N you would like to observe): for ii = 0:0.1:1 Entropy(ii) end Wher...

casi 6 años hace | 0

Respondida

Creating a boxplot for every row in a matrix

Try this: A = randi(6,[100,20]); boxplot(A) If your plot starts to feel crowded consider using a subplot to split it up.

Creating a boxplot for every row in a matrix

Try this: A = randi(6,[100,20]); boxplot(A) If your plot starts to feel crowded consider using a subplot to split it up.

casi 6 años hace | 0

Respondida

Matlab needs to calculate distance and find pixel size

You need to know the distance between those two points. I attachted part of a presentation where I did just that. I placed three...

Matlab needs to calculate distance and find pixel size

You need to know the distance between those two points. I attachted part of a presentation where I did just that. I placed three...

casi 6 años hace | 0

| aceptada

Respondida

line length in image

Use bwdist() and look at the answer here for an example.

line length in image

Use bwdist() and look at the answer here for an example.

casi 6 años hace | 0

| aceptada

Respondida

Crop images using coordinates and save them

You will need to fill in the "hole" with white or black pixels. Give something like this a try: I = imread('test.png'); J = ...

Crop images using coordinates and save them

You will need to fill in the "hole" with white or black pixels. Give something like this a try: I = imread('test.png'); J = ...

casi 6 años hace | 0

Respondida

Cropping Watermarked image of 512 by % 512

I am assuming you want to crop about the center of the image. Give this a try (you might want to adjust using round, floor, ceil...

Cropping Watermarked image of 512 by % 512

I am assuming you want to crop about the center of the image. Give this a try (you might want to adjust using round, floor, ceil...

casi 6 años hace | 1

| aceptada

Respondida

Why is the line in my figure not showing up?

Create the plot after your loop (or dont use a loop at all) as so: ... end figure(1)) x = 1:length(TR1); plot(x,TR1,'-rx...

Why is the line in my figure not showing up?

Create the plot after your loop (or dont use a loop at all) as so: ... end figure(1)) x = 1:length(TR1); plot(x,TR1,'-rx...

casi 6 años hace | 1

| aceptada

Respondida

collapse across dimensions of a matrix

Give this a try: % Generate random matrix A = randi(10,[19 64]); B = cat(3,A,A,A,A); C = cat(4,B,B); % Get indices and se...

collapse across dimensions of a matrix

Give this a try: % Generate random matrix A = randi(10,[19 64]); B = cat(3,A,A,A,A); C = cat(4,B,B); % Get indices and se...

casi 6 años hace | 1

Respondida

keep the number give by bwlabel to one object constant in all images of an image sequence

Look at the example located here. If this does not work for you please post your images so that we can help you further.

keep the number give by bwlabel to one object constant in all images of an image sequence

Look at the example located here. If this does not work for you please post your images so that we can help you further.

casi 6 años hace | 0

Respondida

how to do FFT from signal figure

Follow the example here.

how to do FFT from signal figure

Follow the example here.

casi 6 años hace | 0

| aceptada

Respondida

Saving Matlab figure(Imagesc) to JPG without White borders

Look at this file

Saving Matlab figure(Imagesc) to JPG without White borders

Look at this file

casi 6 años hace | 0

| aceptada

Respondida

Does matlab run on a raspberry pi

Refer to the post here. You can use a pi for data acquisition and running stand alone files but you have to run matlab on an act...

Does matlab run on a raspberry pi

Refer to the post here. You can use a pi for data acquisition and running stand alone files but you have to run matlab on an act...

casi 6 años hace | 0

Respondida

Error when plotting in parfor loop

To save a figure in a parfor loop you must do the following as found here. Otherwise save the data and plot after as mentioned b...

Error when plotting in parfor loop

To save a figure in a parfor loop you must do the following as found here. Otherwise save the data and plot after as mentioned b...

casi 6 años hace | 0

Respondida

datastore for large structured data

If your file is to big to read into memory consider using the matfile function. You get to write the data straight to the file w...

datastore for large structured data

If your file is to big to read into memory consider using the matfile function. You get to write the data straight to the file w...

casi 6 años hace | 0

| aceptada

Respondida

how to 7004829X1 into 5000X1 blocks?

Try this (you will have to adjust for your larger vector) but should do the trick: A = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15]; ...

how to 7004829X1 into 5000X1 blocks?

Try this (you will have to adjust for your larger vector) but should do the trick: A = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15]; ...

casi 6 años hace | 0

Respondida

Standalone file on a Raspberry Pi 3

You cannot run MATLAB code on the Raspberry Pi so generating code in Simulink to run on the RPI3 is the way to go. You will have...

Standalone file on a Raspberry Pi 3

You cannot run MATLAB code on the Raspberry Pi so generating code in Simulink to run on the RPI3 is the way to go. You will have...

casi 6 años hace | 1

| aceptada

Respondida

Load an image and divide it into 8x8 matrices

Refer to the code here. You are having the errors as you are missing the third dimension of the matrix (the color space). The co...

Load an image and divide it into 8x8 matrices

Refer to the code here. You are having the errors as you are missing the third dimension of the matrix (the color space). The co...

casi 6 años hace | 1

Respondida

How can I create a gif that plays only once?

Using the code found from here I can confirm that if I use 0 as the 'loopcount' argument it plays once and inf it keeps repeatin...

How can I create a gif that plays only once?

Using the code found from here I can confirm that if I use 0 as the 'loopcount' argument it plays once and inf it keeps repeatin...

casi 6 años hace | 0

Respondida

How to fix faded link on old documents

Refer to the tutorials located here.

How to fix faded link on old documents

Refer to the tutorials located here.

casi 6 años hace | 0

Respondida

Hi all, can anyone help me generate a checkerboard where i can control each square color-wise in gray scale?

Use the checkboard function save it as an image and then adjust the greyscale as desired. Here is a basic example to get you goi...

Hi all, can anyone help me generate a checkerboard where i can control each square color-wise in gray scale?

Use the checkboard function save it as an image and then adjust the greyscale as desired. Here is a basic example to get you goi...

casi 6 años hace | 0

Respondida

How can i load a multiple 1D matlab file and store in single mat file?

Everything will be in a cell aray but this will do the trick: for ii = 1:numel(dir('*.mat')) result{ii} = load(strcat('dat...

How can i load a multiple 1D matlab file and store in single mat file?

Everything will be in a cell aray but this will do the trick: for ii = 1:numel(dir('*.mat')) result{ii} = load(strcat('dat...

casi 6 años hace | 0