Answered

I want to convert the cell array to struct but I dont know how to use the cell2struc command. I am new, please help me

Hi Manh, try these codes below. After running the code open s matrix there and this will be your structure. To use cell2struct c...

I want to convert the cell array to struct but I dont know how to use the cell2struc command. I am new, please help me

Hi Manh, try these codes below. After running the code open s matrix there and this will be your structure. To use cell2struct c...

8 månader ago | 0

| accepted

Answered

Generating random numbers with a different probabilities

Hi there. These codes below are completely original and made by me for you. Each time you need to enter a probability value to t...

Generating random numbers with a different probabilities

Hi there. These codes below are completely original and made by me for you. Each time you need to enter a probability value to t...

8 månader ago | 1

Answered

Matlab removes excel formulas when writing(saving) files?

Could you try to implement this code below to your system? [numbers, strings, raw] = xlsread('*.xlsx');

Matlab removes excel formulas when writing(saving) files?

Could you try to implement this code below to your system? [numbers, strings, raw] = xlsread('*.xlsx');

8 månader ago | 0

Answered

How to plot transfer functions?

Try these codes below please; clc; clear; close all; numerator = 1; denominator = [1,1,3,1]; sys = tf(numerator,denomina...

How to plot transfer functions?

Try these codes below please; clc; clear; close all; numerator = 1; denominator = [1,1,3,1]; sys = tf(numerator,denomina...

9 månader ago | 0

| accepted

Answered

Index exceeds the number of array elements

Hi could you try these codes? close all; clear; clc; format long g; format compact; im1 = imread('a.jpg'); %wczytanie ob...

Index exceeds the number of array elements

Hi could you try these codes? close all; clear; clc; format long g; format compact; im1 = imread('a.jpg'); %wczytanie ob...

9 månader ago | 0

Answered

Code output in other codes

Hi Armin, check the codes below please; clc; clear; close all; x1 = randi([1, 25], [20,20]) y1 = randi([1, 25], [20,20]) ...

Code output in other codes

Hi Armin, check the codes below please; clc; clear; close all; x1 = randi([1, 25], [20,20]) y1 = randi([1, 25], [20,20]) ...

9 månader ago | 0

| accepted

Answered

what's wrong in my code?

Hi Alesna, could you try my codes below? Good luck. clc; clear; close all; syms y(t) k t Dy=diff(y); k=sqrt(2); ode=dif...

what's wrong in my code?

Hi Alesna, could you try my codes below? Good luck. clc; clear; close all; syms y(t) k t Dy=diff(y); k=sqrt(2); ode=dif...

9 månader ago | 1

| accepted

Answered

How to add multiple scales on second y axis?

Hi Yasser, could you try these codes below? Good luck. clc; clear; close all; x1 = 0:0.1:40; y1 = 4.*cos(x1)./(x1+2); x2...

How to add multiple scales on second y axis?

Hi Yasser, could you try these codes below? Good luck. clc; clear; close all; x1 = 0:0.1:40; y1 = 4.*cos(x1)./(x1+2); x2...

9 månader ago | 0

Answered

EDIT NUMBERS IN EDITORS

Write these codes into your script and you will see and also search for transpose operation. Good luck. clc; clear; close all...

EDIT NUMBERS IN EDITORS

Write these codes into your script and you will see and also search for transpose operation. Good luck. clc; clear; close all...

9 månader ago | 0

Answered

What is this code is trying to do

rot=[2,4,7,3,1,5,6,8]; disp(rot); %%% Display rot matrix for i=1:8 %%% this loop wil...

What is this code is trying to do

rot=[2,4,7,3,1,5,6,8]; disp(rot); %%% Display rot matrix for i=1:8 %%% this loop wil...

9 månader ago | 1

| accepted

Answered

Can u please help me here, how to draw this type type of graph

Hi Parveiz, try these codes below please, good luck. clc; clear; close all; [X,Y,Z] = meshgrid(-2:.2:2); V = X.*exp(-X.^2...

Can u please help me here, how to draw this type type of graph

Hi Parveiz, try these codes below please, good luck. clc; clear; close all; [X,Y,Z] = meshgrid(-2:.2:2); V = X.*exp(-X.^2...

9 månader ago | 1

Answered

3D x,y,z surface plot

Hi Muhammad, try these codes below please. Good luck. X=[1.000, 1.250, 1.500, 1.250, 1.500, 1.750]'; Y=[1.000, 1.000, 1.000,...

3D x,y,z surface plot

Hi Muhammad, try these codes below please. Good luck. X=[1.000, 1.250, 1.500, 1.250, 1.500, 1.750]'; Y=[1.000, 1.000, 1.000,...

9 månader ago | 1

| accepted

Answered

How to change x-axis in kruskalwallis auto-generated boxplots?

Hi BN, try these codes below please. Good luck. clear; clc; A = rand(1000,1); B = ...

How to change x-axis in kruskalwallis auto-generated boxplots?

Hi BN, try these codes below please. Good luck. clear; clc; A = rand(1000,1); B = ...

9 månader ago | 1

| accepted

Answered

How to fix this error if my image is not two dimensional?

Hello, I used these codes below and it worked for me. Could you try it too? I only used .tif format image instead of .jpg image....

How to fix this error if my image is not two dimensional?

Hello, I used these codes below and it worked for me. Could you try it too? I only used .tif format image instead of .jpg image....

9 månader ago | 0

Answered

Continue in For loop

Hi Mert. Could you try like below. I just changed "for i=1:2:A(1,end)" into "for i=1:length(A)". A=[1 0 1 0 0 0 1]; for i=1:...

Continue in For loop

Hi Mert. Could you try like below. I just changed "for i=1:2:A(1,end)" into "for i=1:length(A)". A=[1 0 1 0 0 0 1]; for i=1:...

9 månader ago | 1

| accepted

Answered

how to write \tilde{R_1} in matlab legend, I tried with this not working

I tried this code below and it was working. Could you compare with your own code? clc; clear; close all; text(0.5, 0.5, '$...

how to write \tilde{R_1} in matlab legend, I tried with this not working

I tried this code below and it was working. Could you compare with your own code? clc; clear; close all; text(0.5, 0.5, '$...

9 månader ago | 0

Answered

How to improve the result of the performance of the gabor filter

Example below is a gabor filter example. When you change the wavelength and the orientation. You ll get images with different qu...

How to improve the result of the performance of the gabor filter

Example below is a gabor filter example. When you change the wavelength and the orientation. You ll get images with different qu...

9 månader ago | 0

Answered

How we can maximize PSNR between RGB image and binary(0,1) image?

I was not able to implement your codes into that probably psnr funtion only allows limited data types.

How we can maximize PSNR between RGB image and binary(0,1) image?

I was not able to implement your codes into that probably psnr funtion only allows limited data types.

9 månader ago | 0

Answered

euler's method

There are multiple solutions over internet but i was not able to implement your specific problem.

euler's method

There are multiple solutions over internet but i was not able to implement your specific problem.

9 månader ago | 0

Answered

euler's method

Let s assume that is your problem below; y''(x)+(1/10)*y''(x)+sin(y)=0 These codes below will solve your problem; syms ...

euler's method

Let s assume that is your problem below; y''(x)+(1/10)*y''(x)+sin(y)=0 These codes below will solve your problem; syms ...

9 månader ago | 1

Answered

Looking for a simulink cogeneration (combine Heating and power) model.

https://www.mathworks.com/matlabcentral/fileexchange/45929-decentralized-combined-heat-power-plant

Looking for a simulink cogeneration (combine Heating and power) model.

https://www.mathworks.com/matlabcentral/fileexchange/45929-decentralized-combined-heat-power-plant

9 månader ago | 1

| accepted

Answered

Need help with my code I have I don't know how to label the columns on it and change "table" to another function like disp(), display(), and fprintf() instead.

C=-50:10:150; F=(C*(9/5))+32; fprintf('HW #6 - Evan Melanson \n\n'); fprintf('Problem 1 \n\n'); oC=C'; oF=F'; fprintf('d...

Need help with my code I have I don't know how to label the columns on it and change "table" to another function like disp(), display(), and fprintf() instead.

C=-50:10:150; F=(C*(9/5))+32; fprintf('HW #6 - Evan Melanson \n\n'); fprintf('Problem 1 \n\n'); oC=C'; oF=F'; fprintf('d...

9 månader ago | 0

Answered

What's wrong in the code? I cant generate the same graph as the question required.

x = linspace(-5,5); k = sin(x.^2); l= exp(cos(x)); y = k.*l; plot(x,y) USE THIS WAY, IT HELPS. I THINK YOU WERE J...

What's wrong in the code? I cant generate the same graph as the question required.

x = linspace(-5,5); k = sin(x.^2); l= exp(cos(x)); y = k.*l; plot(x,y) USE THIS WAY, IT HELPS. I THINK YOU WERE J...

9 månader ago | 0

Answered

How to generate 3 plot? It only appear 1 plot from the coding.

x = linspace(0,10,50); y1 = sin(x); plot(x,y1) title('Combine Plots') hold on y2 = sin(x/2); plot(x,y2) y3 = 2*sin(...

How to generate 3 plot? It only appear 1 plot from the coding.

x = linspace(0,10,50); y1 = sin(x); plot(x,y1) title('Combine Plots') hold on y2 = sin(x/2); plot(x,y2) y3 = 2*sin(...

9 månader ago | 1

Answered

How we can maximize PSNR between RGB image and binary(0,1) image?

Converting segmented RGB images into GRAYSCALE form is really good idea to process them.

How we can maximize PSNR between RGB image and binary(0,1) image?

Converting segmented RGB images into GRAYSCALE form is really good idea to process them.

9 månader ago | 1

| accepted

Answered

Identify between different Images using Segmentation, Texture analysis and other basic methods

It is a good idea to classify the images by using SVM. Later by using predict command, we could guess which image is it. Good lu...

Identify between different Images using Segmentation, Texture analysis and other basic methods

It is a good idea to classify the images by using SVM. Later by using predict command, we could guess which image is it. Good lu...

9 månader ago | 0

Answered

error in Shearlet Transform Matlab

load mask [numRows,numCols] = size(circleGS); sls = shearletSystem('ImageSize',[numRows numCols],'FilterBoundary','truncated')...

error in Shearlet Transform Matlab

load mask [numRows,numCols] = size(circleGS); sls = shearletSystem('ImageSize',[numRows numCols],'FilterBoundary','truncated')...

9 månader ago | 0

Answered

Plotting a matrix of line plots

x1 = rand; y1 = rand; x2 = rand; y2 = rand; x3 = rand; y3 = rand; [X,Y] = meshgrid([x1 y1 x2 y2 x3 y3]); plot(X,Y) Add ...

Plotting a matrix of line plots

x1 = rand; y1 = rand; x2 = rand; y2 = rand; x3 = rand; y3 = rand; [X,Y] = meshgrid([x1 y1 x2 y2 x3 y3]); plot(X,Y) Add ...

9 månader ago | 0

Answered

how to plot Double y axis?

x = linspace(0,10); y = sin(x); yyaxis left plot(x,y) z = (8*x); yyaxis right plot(x,z) ylim([-150 150]) I put an ...

how to plot Double y axis?

x = linspace(0,10); y = sin(x); yyaxis left plot(x,y) z = (8*x); yyaxis right plot(x,z) ylim([-150 150]) I put an ...

9 månader ago | 0

Answered

How can I get multiple values from arrayfun?

clear clc a = 1:1000; b = linspace(100,200,1000); x1 = arrayfun( @(v,w) fminsearch(@(x) (x(1)-v).^2 + (x(2)-w).^2, [1;1...

How can I get multiple values from arrayfun?

clear clc a = 1:1000; b = linspace(100,200,1000); x1 = arrayfun( @(v,w) fminsearch(@(x) (x(1)-v).^2 + (x(2)-w).^2, [1;1...

9 månader ago | 0