Réponse apportée
How to call an array by its indice
regaeig - don't try to call the above arrays by their indices. This can lead to errors, confusion, etc. and has been discussed i...

plus de 7 ans il y a | 0

| A accepté

Réponse apportée
Assignment question based on excel file I/O
Ajai - if you try to compare strings using the == operator, then you will see this error if the two strings being compared are o...

plus de 7 ans il y a | 1

Réponse apportée
Save output data in a vector format while loop
Ahmad - since your function signature defines the output parameters, then you can update these parameters rather than using them...

plus de 7 ans il y a | 0

| A accepté

Réponse apportée
How do you make a checkerboard of size 40x40 using in-built matlab function
Keena - this seems like a homework question so please see checkerboard which has several examples on how to create checkerboards...

plus de 7 ans il y a | 0

Réponse apportée
Issue regarding mahalanobis distance function
Marc - please clarify what you mean by i want to compare the line standard deviation and mean with the first line. If X is your ...

plus de 7 ans il y a | 0

Réponse apportée
What type of code should i use and how to use it?
Saiyed - if Acceleration is the array with all of the data that you want to classify, then you could loop over each element in t...

plus de 7 ans il y a | 0

| A accepté

Réponse apportée
How can I write a series function?
Alaska - this seems like a homework question. Presumably n starts at one and then goes to what exactly? If you know the upper bo...

plus de 7 ans il y a | 0

Réponse apportée
importdata silently misreads text file data
Rahul - in the file you have attached, I do see the duplicated data at these lines 6740 2018-05-21 11:03:53.885769 6741 2018-0...

plus de 7 ans il y a | 0

| A accepté

Réponse apportée
Storing matlab variables for future use
Diptangshu - use save to write the output from the first simulation to file, and then use load to read that data from file for y...

plus de 7 ans il y a | 0

| A accepté

Réponse apportée
graph the function using ezplot() and plot()
Jay - are you observing an error? If so, what is it? Or do not use the syms x and just call ezplot(@(x) -3*x^3+5*x ,[-2.5, 2.5...

plus de 7 ans il y a | 1

Réponse apportée
I am trying to check if a value of a vector is equal, but it is a word not a number. how can I do that?
Ashley - how are you iterating over your cell array? It looks like all of your elements are strings (character arrays) so you sh...

plus de 7 ans il y a | 0

Réponse apportée
Hello, I am using inputdlg and asking two questions.
The code could be more like x = inputdlg({'Day of travel', 'Hour of travel'}, 'Peak/Off-Peak', [1 30; 1 30]) day = x{1}; hour...

plus de 7 ans il y a | 0

| A accepté

Réponse apportée
LOWEST MULTIPLE WITH 9s and 0s
Spiro - consider the line of code if remainder == 0 && remainder == 9 Your remainder cannot be both 0 and 9...it should be one...

plus de 7 ans il y a | 0

Réponse apportée
save output for specific folder
Suhas - uigetdir returns a directory only so you need to specify a file name too. Perhaps something like folderToSaveFileTo = u...

plus de 7 ans il y a | 1

| A accepté

Réponse apportée
Summation with FOR loop question
Oliver - since this is most likely homework and I'm assuming that you have been instructed to use a for loop, see for loop to re...

plus de 7 ans il y a | 2

Réponse apportée
I have 06 popup menu and I want to get its values ​​to calculate DATE_START and DATE_END
Mustapha - if you are going to use GUIDE to build your GUI, then rather than using global variables to share information between...

plus de 7 ans il y a | 1

| A accepté

Réponse apportée
LineWidth PROPERTY "plot command error"
Look closely at your line of code plot(SNR_db ,Pd_NSP_cat_mean(:,1),'g','LineWidth ',2.5) There is an extra space after LineWi...

plus de 7 ans il y a | 1

| A accepté

Réponse apportée
Unbalanced or Unexpected Paranthesis or Bracket Error
Anil - look carefully at this line of code [theta,se,t]=qreg(tb_26wk,(ones(2585(tb_26wk));tb_13wk); q(0.1)); As Nathan has al...

plus de 7 ans il y a | 0

Réponse apportée
While Loop Question - Will not Properly Execute
Josh - consider your conditions for the while loop while (y ~= 1) || (y ~= 2) which is saying that if the input is not 1 (fema...

plus de 7 ans il y a | 0

| A accepté

Réponse apportée
While Loop Question - Will not properly execute
Josh - you probably want to use OR instead of AND while (inches < 59) || (inches > 78) Note also how we use < and > since 59 a...

plus de 7 ans il y a | 1

| A accepté

Réponse apportée
How can I take input image from user and Display
Prayag - assuming that the user actually chooses a file via image=uigetfile([folder '\' ext]) ; then image (this is poorly nam...

plus de 7 ans il y a | 2

| A accepté

Réponse apportée
How do I repeat a column vector to make into one longer column vector?
Georgina - try using repmat as z = rand(24, 1); y = repmat(z, 30, 1);

plus de 7 ans il y a | 0

Réponse apportée
https://pubs.acs.org/doi/abs/10.1021/j100540a008 - Official article link for implementing Gillespie algoirthm
Kevin - you will need to review the following block of code mu = sum(r(2)*a0 <= cumsum(a)); t = t + tau; switch ...

plus de 7 ans il y a | 0

Réponse apportée
Undefined function or variable 'analyzeNetwork' error in transfer learning.
IT - according to Analyze deep learning network architecture, the analyzeNetwork function was introduced into MATLAB in version ...

plus de 7 ans il y a | 0

| A accepté

Réponse apportée
How to read and pre-process the multiple images and write in specific location?
Regina - in your line of code imwrite(I2,fullfile('C:\Users\LENOVO\Desktop\','*.png')); which file are you trying to write to?...

plus de 7 ans il y a | 0

| A accepté

Réponse apportée
Modified but still get errors. Is it more clear to help me?
Stelios - please look at this code handles.r1 = uicontrol('Style',... 'radiobutton',... '...

plus de 7 ans il y a | 0

Réponse apportée
FPRINTF to display different numbers of values every time
Spiro - perhaps try storing the prime factors in an array and print out that array once you have exited the while loop. For exam...

plus de 7 ans il y a | 0

Réponse apportée
Newton's Method for finding zeros
Lucas - what errors are you observing? Please copy and paste the full error message to your question. Do you need to use the Sym...

plus de 7 ans il y a | 0

Réponse apportée
Looping all audio files through a FFT and saving the figure
William - perhaps something like the following will help function loadWavAndPerformFFT(fullPathToFolder) wavFiles = dir (f...

plus de 7 ans il y a | 0

| A accepté

Réponse apportée
Creating a function that has an input from another algorithm
arun - why not make your Centredetect.m into a function that can then call your other function. So something like function Cent...

plus de 7 ans il y a | 0

Charger plus