Answered

inserting values in between two successive values in an array

This should get the job done: data=[-7.55;-7.62;-7.59;-7.75;-7.78;-7.69;-7.63;-7.69;-7.58;-7.95]; newdata=interp1(... 1:n...

inserting values in between two successive values in an array

This should get the job done: data=[-7.55;-7.62;-7.59;-7.75;-7.78;-7.69;-7.63;-7.69;-7.58;-7.95]; newdata=interp1(... 1:n...

23 dagar ago | 0

| accepted

Answered

Where can I publish an article containing original Matlab code with original numerical method ?

I agree with @Torsten, @John D'Errico, and @Adam Danz that in general your method (i.e. pseudo-code) along with your results are...

Where can I publish an article containing original Matlab code with original numerical method ?

I agree with @Torsten, @John D'Errico, and @Adam Danz that in general your method (i.e. pseudo-code) along with your results are...

24 dagar ago | 0

| accepted

Answered

histogram of a a function with two variable

A histogram in two dimensions: help histogram2 So now you only need to calculate the X and Y matrices based on your two vector...

histogram of a a function with two variable

A histogram in two dimensions: help histogram2 So now you only need to calculate the X and Y matrices based on your two vector...

25 dagar ago | 0

| accepted

Answered

How to bin data from a matrix (2D array)

If you have the image processing toolbox, you can use blockproc to do the calculation. If you don't mind the overhead, you could...

How to bin data from a matrix (2D array)

If you have the image processing toolbox, you can use blockproc to do the calculation. If you don't mind the overhead, you could...

25 dagar ago | 0

| accepted

Answered

Apps comiler in Mac version of Matlab

I don't know the actual answer, but you might try p-code. It is not fool-proof, but it is fairly tricky to find the way to decom...

Apps comiler in Mac version of Matlab

I don't know the actual answer, but you might try p-code. It is not fool-proof, but it is fairly tricky to find the way to decom...

27 dagar ago | 0

| accepted

Answered

For loop to iterate through variable

You painted yourself in a corner by storing data in a variable name. If you had used a cell array from the start, you could hav...

For loop to iterate through variable

You painted yourself in a corner by storing data in a variable name. If you had used a cell array from the start, you could hav...

28 dagar ago | 0

| accepted

Answered

I need average of all elements with same position of cell arrays.

You could reshape your data to a 3D array, which would allow you simply use mean. FillValue=0; M=cell(3,1); M{1}=[1 6000 -1...

I need average of all elements with same position of cell arrays.

You could reshape your data to a 3D array, which would allow you simply use mean. FillValue=0; M=cell(3,1); M{1}=[1 6000 -1...

29 dagar ago | 1

| accepted

Answered

How to run MATLAB code in Mathematica?

A quick google search suggests two options: Translate the code to Mathematica Use a tool like matlink (I don't know if that st...

How to run MATLAB code in Mathematica?

A quick google search suggests two options: Translate the code to Mathematica Use a tool like matlink (I don't know if that st...

29 dagar ago | 0

Submitted

isnetavl

Check for an internet connection by pinging one of Google's DNSes

29 dagar ago | 1 download |

Submitted

minify

Process Matlab code into a solid block of compact and unreadable but functionally equivalent code.

29 dagar ago | 9 downloads |

Submitted

ETA_disp

Display the estimated time of completion of a looping process

29 dagar ago | 1 download |

Submitted

Wayback Machine API

This functions acts as an API for the Wayback Machine (web.archive.org).

29 dagar ago | 1 download |

Answered

Downloading and saving Excel files using Matlab

It seems this website blocks requests when it detects non-human requests. You might be able to circumvent this by use the Wayba...

Downloading and saving Excel files using Matlab

It seems this website blocks requests when it detects non-human requests. You might be able to circumvent this by use the Wayba...

30 dagar ago | 0

Answered

theory parts from the documentation -usage

The answer is likely to depend on your jurisdiction. (I am not a lawyer, this is not legal advice) In general, facts are not su...

theory parts from the documentation -usage

The answer is likely to depend on your jurisdiction. (I am not a lawyer, this is not legal advice) In general, facts are not su...

30 dagar ago | 0

Answered

How to plot curves with different colors with "if" conditions

You have nested your if statements, which would have been very easy to spot if you had used the debugger to step through the cod...

How to plot curves with different colors with "if" conditions

You have nested your if statements, which would have been very easy to spot if you had used the debugger to step through the cod...

30 dagar ago | 0

| accepted

Answered

hi i would be thankful if you help me with my question

You can find guidelines for posting homework on this forum here. If you have trouble with Matlab basics you may consider doing t...

hi i would be thankful if you help me with my question

You can find guidelines for posting homework on this forum here. If you have trouble with Matlab basics you may consider doing t...

ungefär en månad ago | 0

| accepted

Answered

Fetch data from multi dimensional struct

Referencing the field will generate a comma separated list, which you can capture into a cell array like you would expect: %cre...

Fetch data from multi dimensional struct

Referencing the field will generate a comma separated list, which you can capture into a cell array like you would expect: %cre...

ungefär en månad ago | 0

Answered

Converting a function into an operator

You can also do the work yourself by implementing mtimes as a method (I mimiced the interface suggested by Matt which ignores th...

Converting a function into an operator

You can also do the work yourself by implementing mtimes as a method (I mimiced the interface suggested by Matt which ignores th...

ungefär en månad ago | 1

Answered

How to create a minesweeper board using a matrix

The name Matlab stands for 'matrix laboratory'. It would be a shame not to use the array processing powers. If you set the loca...

How to create a minesweeper board using a matrix

The name Matlab stands for 'matrix laboratory'. It would be a shame not to use the array processing powers. If you set the loca...

ungefär en månad ago | 1

Answered

How to delete/cancel trailing zeros in complex and imaginary numbers?

The way data is stored and the way it is displayed is not necessarilly connected. You can influence the way data is presented wi...

How to delete/cancel trailing zeros in complex and imaginary numbers?

The way data is stored and the way it is displayed is not necessarilly connected. You can influence the way data is presented wi...

ungefär en månad ago | 1

Answered

solve returns variable name instead of value

This is exactly as documented. syms x result=solve(4 == 2+x,x) res=double(result) %convert symbolic to double

solve returns variable name instead of value

This is exactly as documented. syms x result=solve(4 == 2+x,x) res=double(result) %convert symbolic to double

ungefär en månad ago | 0

Answered

Saving the outputs of multiple runs of a script

You should not be using a script outside of debugging. If you're only interested in the value of a single variable, you should m...

Saving the outputs of multiple runs of a script

You should not be using a script outside of debugging. If you're only interested in the value of a single variable, you should m...

ungefär en månad ago | 1

Answered

How to use the function quiver in app designer?

You can specify the Parent property: %load example data from the doc load('wind','x','y','u','v') X = x(11:22,11:22,1); Y = ...

How to use the function quiver in app designer?

You can specify the Parent property: %load example data from the doc load('wind','x','y','u','v') X = x(11:22,11:22,1); Y = ...

ungefär en månad ago | 0

| accepted

Answered

Choose 1 real solution between 4 solutions

You're using a syntax that is no longer valid in Matlab. Since you didn't specify your Matlab release (and posted your code as p...

Choose 1 real solution between 4 solutions

You're using a syntax that is no longer valid in Matlab. Since you didn't specify your Matlab release (and posted your code as p...

ungefär en månad ago | 0

| accepted

Answered

CAT arguments dimensions not consistent.

There are several issues with your code. After applying the correct indentation, here are my edits. The source of your error is...

CAT arguments dimensions not consistent.

There are several issues with your code. After applying the correct indentation, here are my edits. The source of your error is...

ungefär en månad ago | 1

| accepted