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

más de 7 años hace | 1

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

más de 7 años hace | 1

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

más de 7 años hace | 1

| aceptada

Pregunta


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

más de 7 años hace | 2 respuestas | 1

2

respuestas

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

más de 7 años hace | 2

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

más de 7 años hace | 2

| aceptada

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

más de 7 años hace | 2

| aceptada

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

más de 7 años hace | 4

| aceptada

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

más de 7 años hace | 2

| aceptada

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

más de 7 años hace | 3

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

más de 7 años hace | 2

| aceptada

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

más de 7 años hace | 2

Respondida
How to make a crop image with a white color result ?
Do you want white space or not any space over cropped area. Refer this. Since you have not pasted the original image, I am tak...

más de 7 años hace | 3

| aceptada

Respondida
How to write Output text file in Tabular format in matlab??
I am taking a random data to give you an example. A=rand(1,61); B=rand(1,61); C=rand(1,61); AA=[A' B' C'] dlmwr...

más de 7 años hace | 2

Respondida
excel data into a single columns using loop
What do you mean by equal spacing between each column. You cannot keep blank any element in matrix. You can do in cell. Here is ...

más de 7 años hace | 2

| aceptada

Respondida
sir, can you please help me to convert this python code into matlab
Commented lines are the python code and uncommented lines are the matlab codes. There are few python functions which you have us...

más de 7 años hace | 2

| aceptada

Respondida
Apply a mask of smaller size onto an image of a larger size
Just crop the data itself before using imshow. clc clear RGB=imread('f010.png'); subplot(1,2,1) imshow(RGB) ...

más de 7 años hace | 3

Respondida
How to write a MATLAB program which calculates the exact values for the geometric series?
a=1; %first term r=1/7; n=5; %number of values in geometric series s = a*r.^(0:n-1) If you want sum, then write ...

más de 7 años hace | 3

| aceptada

Respondida
help with griddata (interpolate 2D data)
Since you have not uploaded any data set, I am taking an example to resolve your issue. lon=[65:95]; lat=[0:35]; ...

más de 7 años hace | 2

Respondida
How collect three different .mat files in one .mat file?
Just load the data. Once you can see all the variables in workspace, just write save('file.mat')

más de 7 años hace | 2

Respondida
How to plot graph x,y for text file
A=load('test.txt'); plot(A(:,1),A(:,2))

más de 7 años hace | 5

| aceptada

Respondida
Choosing not number elements from matrix to use in title figures and plots
isletter gives the logical values where ever the letter is in your string. Use this is extract only letters and put this as titl...

más de 7 años hace | 3

| aceptada

Respondida
i have a matlab code for feature extraction, how i apply this code to all my dataset in a file .without applying it one at atime.
F=dir('*.nc') % write extension for i =1:length(F) % write your commands. call the filename as F(i).name F(i).name ...

más de 7 años hace | 2

| aceptada

Respondida
How to read multi three dimensions netcdf files in a loop and append their third dimensions?
Store it in fourth dimension "the size of each file in 21 x 23 x 248" for ii = 1:length(files) my_new_matrix(:,:,:,...

más de 7 años hace | 2

| aceptada

Respondida
i want to store 3 attributes in 3 columns of excel sheet and 10 times
f1='13_1_1'; f2='13_1_2'; a=0; A={f1,f2,a} xlswrite('sample.xlsx',A,'sheet1 ','A1') You can easily put th...

más de 7 años hace | 3

Respondida
second-degree linear system
Firstly make all equation equal to 0. Write this in a function and save this as as first.m function F = first(x) F(1)=...

más de 7 años hace | 2

Respondida
append data in excel sheet
Just write the cell name at the time of using xlswrite A=rand(6,12)+10 %random data xlswrite('sample.xlsx',A,'sheet na...

más de 7 años hace | 2

Respondida
How to get rid of empty space and unit in my output
Merge both two columns into one and then write into text file. See this example. column1={'A','B','C','D','E','F','G',...

más de 7 años hace | 2

Respondida
plz explain the code
contour_thres = 0.005; asssigning the value in contour_thres thres_func = @(x) (x<contour_thres); creating a an...

más de 7 años hace | 3

| aceptada

Cargar más