Risposto
how can i read large data in loop
F=dir('*.edf') for i=1:length(F) [data1, header] = ReadEDF(F(i).name); %do you usual calculation ...

quasi 6 anni fa | 1

| accettato

Domanda


Am I doing something wrong in cody submission?
I have solved couple of question on cody and cross checked my prog on matlab which showing exactly the same output which the que...

quasi 6 anni fa | 1 risposta | 1

1

risposta

Risposto
How to save output into tiff?
Sample image is attached. file=imread('sample.png'); imwrite(file,'sample2.tiff','tiff');

quasi 6 anni fa | 2

Risposto
how to vectorize for loop in this section
Refer this simple example to get your problem resolved. A = [97 89 84; 95 82 92; 64 80 99;76 77 67;... 88 59 74; 78 66 ...

quasi 6 anni fa | 1

Risposto
Making a simple counter by code to be put in simulink
Refer to these links. This links will definitely going to help you. <http://ctms.engin.umich.edu/CTMS/index.php?aux=Basics_Si...

quasi 6 anni fa | 1

Risposto
Add table to an image
Up to my knowledge, you can not add matlab table over an image. But you can use text command to do the same. Here is an example....

quasi 6 anni fa | 1

Risposto
how can I convert a geospacial sst map from 4km to 6 km or vice versa
clc clear lon=[65:.04:70]; lat=[0:0.04:5]; %on 4km resolution sst_4km=randi(27,126,126); lon1=[65:.06:70]; l...

quasi 6 anni fa | 1

Risposto
saving a matrix from a loop into a structure
I hope this simple example helps you to resolve your problem of saving a matrix in a structure from a loop. clc clear ...

quasi 6 anni fa | 1

Risposto
Why doesn't my graph display a line?
Its because t and N have different dimension. Refer this problem. I have done little change to make it understandable. c...

quasi 6 anni fa | 2

| accettato

Risposto
Multiple x axis top and bottom and left and right y axis
You can use as many Y axis you want with the help of add axis function available on matlab file exchange. Get <https://in.mathwo...

quasi 6 anni fa | 2

Risposto
set color in contour plot with specified colormap
clc clear contourf(randi(6,5,5)) colormap(jet(5)) colorbar

quasi 6 anni fa | 2

Risposto
Trying to do bisection, new to MATLAB
As your equation negative value at both ends. So bisection can not be possible for your equation. I am giving this example by ta...

quasi 6 anni fa | 2

Risposto
Is it possible to combine every value in the same table?
" I am trying to calculate the total amount of precipitation shown on the radar" Just load the pcp variable and sum up all elem...

quasi 6 anni fa | 2

| accettato

Risposto
Impulse Response Convolution Plot
t=[-2*pi:2*pi] f=@(x) x.^3; h= 2*f(t)+ 2*f(t-pi) plot(t,h)

quasi 6 anni fa | 2

| accettato

Risposto
How can I combine 20 2D grayscale images (30*30 each) horizontally side by side from a 3D volumetric grayscale image (30*30*20)?
Use reshape command, A=rand(30,30,20); AA=reshape(A,30,[],1); All 20 images are settled side wise in AA

quasi 6 anni fa | 2

| accettato

Risposto
How to omit repeated element in matrix
Hope it helps. E=[1 2;1 5;2 3;2 4;2 5;3 4;4 5;4 7;4 9;5 6;6 11;6 12;6 13; 7 8;7 9;9 10;9 14;10 11;12 13;13 14] aa=unique...

quasi 6 anni fa | 1

Risposto
Confusion matrix misclassification problem
To get rid of singeton matrix, use squeeze or purmute. A=randi(10,25,1,20); size(A) ans = 25 1 20 ...

quasi 6 anni fa | 0

| accettato

Risposto
How do I find the integral of the modulus of a transfer function over all frequencies?
Since you have not provided your equation, I am giving an random example, fun = @(x) exp(x.^2).*log(x).^2; q = integra...

quasi 6 anni fa | 1

Risposto
HOW Plot the Cubic Spline together with the data points (1; 0:5), (2; 1=3), (3; 0:25) and (4; 0:2)?
Since the data in your question is not so clear, I am taking an example to clear your doubts. x = [1:10]; y=randi(1...

quasi 6 anni fa | 1

Risposto
How to solve second diffrential equation that look like this ?
Hi Nora Khaled, refer these links: <https://www.mathworks.com/help/symbolic/solve-a-single-differential-equation.html> <ht...

quasi 6 anni fa | 1

Risposto
How can I get a noise free binary image? Specifically, what type of filters do I need to use to reduce noise?
I hope these links help you. <https://in.mathworks.com/matlabcentral/answers/56974-how-to-reduce-noise-in-image#answer_68932>...

quasi 6 anni fa | 1

| accettato

Domanda


Activity list is not updating
From the last 15 hours, I have contributed in term of comments and answers. But I am neither getting mail for the updates not it...

quasi 6 anni fa | 2 risposte | 1

2

risposte

Risposto
what does it mean by index exceed matrics dimension
"index exceed matrix dimension" means that the index which you are trying of extract from matrix is out of the size of matrix. ...

quasi 6 anni fa | 2

Risposto
how to take average with specific condition and write to excel file again ?
clc clear A=xlsread('testM.xls'); AA=A(:,2:end); AAA=squeeze(nanmean(reshape(AA,4,[],6),1)) xlswrite('testM.xls...

quasi 6 anni fa | 2

| accettato

Risposto
How can I store fitdist output as a variable in a matrix please?
Since you have not provided the data, I am taking random data to run loops. clc clear for i=1:200 pd = fitdist...

quasi 6 anni fa | 2

| accettato

Risposto
3D surface plots
I have made few modifications. In your program, you are not saving the output of P for each diameter and gear ratio. clear ...

quasi 6 anni fa | 4

| accettato

Risposto
How do I create a new matrix based on elements from a previous matrix?
depth=[1 2 3 4 5 6 7 8] year=[2007 1960 1915 1871 1828 1785 1735 1680] depth2=[3 4 5 7 8] year2=arrayfun(@(x) year(de...

quasi 6 anni fa | 2

| accettato

Risposto
How to write a .txt file in this way?
name={'pre','post','shift'} A={rand(1,12),rand(1,12),rand(1,12)} %taking a random data for pre, post and shift for kk=1:...

quasi 6 anni fa | 3

Risposto
how to use cell array in stateflow?
Param1 = {1,2,3,4,5,6,7,8,9,10}; B1=arrayfun(@(x) num2str(x) , cell2mat(Param1),'uni',0) Param2 = {7,6,5,4,3,2,1}; B2...

quasi 6 anni fa | 2

| accettato

Risposto
How to write an output text file in a tabular form in matlab??
X= [0.22, 0.3456,0.5567]' ; Y= [0.1123,1.9823,1.2345]' ; Z= [0.34,0.332,0.897]' ; AA=[X Y Z] B=arrayfun(@(x) n...

quasi 6 anni fa | 2

Carica altro